kselftests: add bash/ncurses runtime dependency for futex test
PATCH 1/1 kselftests: add bash/ncurses runtime dependency for futex test
futex test requires tput at runtime.
Signed-off-by Fathi Boudra <[email protected]>
--- recipes-kernel/kselftests/kselftests_4.9.bb | 1 + 1 file changed, 1 insertion(+)
recipes-kernel/kselftests/kselftests_4.9.bb +1 -0
@@ -142,6 +142,7 @@ FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug" RDEPENDS_${PN}-cpu-hotplug += "bash" RDEPENDS_${PN}-efivarfs += "bash" +RDEPENDS_${PN}-futex += "bash ncurses" RDEPENDS_${PN}-memory-hotplug += "bash" RDEPENDS_${PN}-net += "bash" RDEPENDS_${PN}-vm += "bash"
Signature · 1 line
2.11.0
PATCH 1/1 kselftests: fix futex functional tests build
Recursive makefile is broken because it's using the same TARGETS variable as selftests topdir and prevent to build futex functional tests:
make[2]: Nothing to be done for `all'.
Rename the variable to F_TARGETS in the futex functional tests Makefile.
Signed-off-by Fathi Boudra <[email protected]>
--- recipes-kernel/kselftests/kselftests_4.9.bb | 1 + 1 file changed, 1 insertion(+)
recipes-kernel/kselftests/kselftests_4.9.bb +1 -0
@@ -59,6 +59,7 @@ do_configure () { sed "s|^CC = .*||g" -i ${S}/tools/testing/selftests/memfd/Makefile sed "s|^CC := .*||g" -i ${S}/tools/testing/selftests/powerpc/switch_endian/Makefile sed "s|gcc|\$(CC)|g" -i ${S}/tools/testing/selftests/breakpoints/Makefile + sed "s|TARGETS|F_TARGETS|g" -i ${S}/tools/testing/selftests/futex/functional/Makefile sed "s|^LDFLAGS += -lpthread|LDLIBS += -lpthread|g" -i ${S}/tools/testing/selftests/seccomp/Makefile sed "s|^LDFLAGS += -lrt -lpthread|LDLIBS += -lrt -lpthread|g" -i ${S}/tools/testing/selftests/timers/Makefile sed "s|BINARIES|TEST_PROGS|g" -i ${S}/tools/testing/selftests/sigaltstack/Makefile
Signature · 1 line
2.11.0
sorry, resent by mistake.
Quoted 22 lines · Fathi Boudra
futex test requires tput at runtime.
Signed-off-by Fathi Boudra <[email protected]>--- recipes-kernel/kselftests/kselftests_4.9.bb | 1 + 1 file changed, 1 insertion(+)recipes-kernel/kselftests/kselftests_4.9.bb +1
-1@@ -142,6 +142,7 @@ FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug" RDEPENDS_${PN}-cpu-hotplug += "bash" RDEPENDS_${PN}-efivarfs += "bash" +RDEPENDS_${PN}-futex += "bash ncurses" RDEPENDS_${PN}-memory-hotplug += "bash" RDEPENDS_${PN}-net += "bash" RDEPENDS_${PN}-vm += "bash" --2.11.0