]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/testing/selftests/Makefile
Merge remote-tracking branch 'kselftest/next'
[karo-tx-linux.git] / tools / testing / selftests / Makefile
index 9af1df28bb26731c5ba207ba65b733dec92ea0b4..06333fe1f8dbdd4b7e8a8090d83dac8996693455 100644 (file)
@@ -5,6 +5,7 @@ TARGETS += exec
 TARGETS += firmware
 TARGETS += ftrace
 TARGETS += kcmp
+TARGETS += kdbus
 TARGETS += memfd
 TARGETS += memory-hotplug
 TARGETS += mount
@@ -22,6 +23,14 @@ TARGETS += vm
 TARGETS_HOTPLUG = cpu-hotplug
 TARGETS_HOTPLUG += memory-hotplug
 
+# Clear LDFLAGS and MAKEFLAGS if called from main
+# Makefile to avoid test build failures when test
+# Makefile doesn't have explicit build rules.
+ifeq (1,$(MAKELEVEL))
+undefine LDFLAGS
+override MAKEFLAGS =
+endif
+
 all:
        for TARGET in $(TARGETS); do \
                make -C $$TARGET; \