mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-16 06:17:51 +00:00
48392e5a6f
* Adjust md5sum/sha256sum for the updated tarball
* Add new dependencies:
- numactl, used by net tests (for libnuma)
- util-linux, used by gpio tests (for libmount)
* Get rid of the TARGETS list, manually maintained. Rely on the top-level
Makefile to call all the TARGETS. As a result, TARGETS isn't passed to
EXTRA_OEMAKE anymore.
* Update EXTRA-OEMAKE:
- pass V=1 to be more verbose in the logs
- pass LD to fix gpio tests and avoid to use native linker causing a
build failure in cross-compilation environment.
* Call headers_install in do_compile() to make sure to install the user
space API used by some tests but not properly declared as a build
dependency.
* Add new packages: bpf, gpio and sync tests.
* Allow empty package for bpf. It fails to build and need to be fixed.
* Add sudo to vm package RDEPENDS.
* Add breakpoints package on Aarch64. An arch specific test has been
added, though it is currently broken due to missing TRAP_BRANCH and
TRAP_HWBKPT definitions in glibc siginfo.
* Add ipc package on Aarch64.
* Get rid of do_configure() and convert the Makefiles fixes to patches,
easier to upstream.
* Add patches to fix gpio and net tests. Also add a partial patch for
breakpoints on Aarch64, not applied for now because we need the glibc
fixes counterpart (see explanation above).
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
54 lines
1.5 KiB
Diff
54 lines
1.5 KiB
Diff
From: Fathi Boudra <fathi.boudra@linaro.org>
|
|
Subject: [PATCH] selftests: gpio: use pkg-config
|
|
|
|
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
|
|
---
|
|
---
|
|
tools/testing/selftests/gpio/Makefile | 31 ++++++++++++++++++-------------
|
|
1 file changed, 18 insertions(+), 13 deletions(-)
|
|
|
|
--- a/tools/testing/selftests/gpio/Makefile
|
|
+++ b/tools/testing/selftests/gpio/Makefile
|
|
@@ -1,23 +1,28 @@
|
|
+CFLAGS += -O2 -g -std=gnu99 -Wall
|
|
+CFLAGS += -I../../../../usr/include/
|
|
+CFLAGS += $(shell pkg-config --cflags mount)
|
|
+LDLIBS += $(shell pkg-config --libs mount)
|
|
|
|
TEST_PROGS := gpio-mockup.sh
|
|
-TEST_FILES := gpio-mockup-sysfs.sh $(BINARIES)
|
|
-BINARIES := gpio-mockup-chardev
|
|
+TEST_PROGS_EXTENDED := gpio-mockup-chardev
|
|
+TEST_FILES := gpio-mockup-sysfs.sh
|
|
|
|
-include ../lib.mk
|
|
+GPIODIR := ../../../gpio
|
|
+GPIOOBJ := gpio-utils.o
|
|
+GPIOINC := gpio.h
|
|
|
|
-all: $(BINARIES)
|
|
+all: $(GPIOINC) $(TEST_PROGS_EXTENDED)
|
|
|
|
clean:
|
|
- $(RM) $(BINARIES)
|
|
-
|
|
-CFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/
|
|
-LDLIBS += -lmount -I/usr/include/libmount
|
|
+ $(RM) $(TEST_PROGS_EXTENDED)
|
|
+ $(MAKE) -C $(GPIODIR) clean
|
|
|
|
-$(BINARIES): ../../../gpio/gpio-utils.o ../../../../usr/include/linux/gpio.h
|
|
+include ../lib.mk
|
|
|
|
-../../../gpio/gpio-utils.o:
|
|
- make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C ../../../gpio
|
|
+$(TEST_PROGS_EXTENDED): $(GPIODIR)/$(GPIOOBJ)
|
|
|
|
-../../../../usr/include/linux/gpio.h:
|
|
- make -C ../../../.. headers_install INSTALL_HDR_PATH=$(shell pwd)/../../../../usr/
|
|
+$(GPIODIR)/$(GPIOOBJ):
|
|
+ $(MAKE) -C $(GPIODIR)
|
|
|
|
+$(GPIOINC):
|
|
+ $(MAKE) -C ../../../.. headers_install
|