kbuild: replace KBUILD_SRCTREE with boolean building_out_of_srctree
[linux-2.6-block.git] / tools / testing / selftests / Makefile
index 9781ca79794af774ca86b3ef0708283cfa73db0a..25b43a8c2b15903a15a712e611f3e7e982f8921d 100644 (file)
@@ -74,7 +74,7 @@ endif
 # Append kselftest to KBUILD_OUTPUT to avoid cluttering
 # KBUILD_OUTPUT with selftest objects and headers installed
 # by selftests Makefile or lib.mk.
-ifneq ($(KBUILD_SRC),)
+ifdef building_out_of_srctree
 override LDFLAGS =
 endif