Skip to content

Commit 0e536e2

Browse files
committed
Merge tag 'linux-kselftest-4.0-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fix from Shuah Khan. * tag 'linux-kselftest-4.0-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests: Fix build failures when invoked from kselftest target
2 parents d6702d8 + 67d8712 commit 0e536e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/testing/selftests/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ TARGETS += vm
2222
TARGETS_HOTPLUG = cpu-hotplug
2323
TARGETS_HOTPLUG += memory-hotplug
2424

25+
# Clear LDFLAGS and MAKEFLAGS if called from main
26+
# Makefile to avoid test build failures when test
27+
# Makefile doesn't have explicit build rules.
28+
ifeq (1,$(MAKELEVEL))
29+
undefine LDFLAGS
30+
override MAKEFLAGS =
31+
endif
32+
2533
all:
2634
for TARGET in $(TARGETS); do \
2735
make -C $$TARGET; \

0 commit comments

Comments
 (0)