summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2017-09-07 19:57:43 -0600
committerShuah Khan <shuahkh@osg.samsung.com>2017-09-21 07:55:37 -0600
commit52fd1d082398b928a86d4fdf33c9f3abe1bf7914 (patch)
treefa7f541bcb97bef902a170b98175abce2f90cda3 /tools
parent8050ef2b83a18f628f9501af958fbff39443d58d (diff)
downloadlinux-rpi-52fd1d082398b928a86d4fdf33c9f3abe1bf7914.tar.gz
linux-rpi-52fd1d082398b928a86d4fdf33c9f3abe1bf7914.tar.bz2
linux-rpi-52fd1d082398b928a86d4fdf33c9f3abe1bf7914.zip
selftests: Makefile: clear LDFLAGS for make O=dir use-case
kselftest target fails when object directory is specified to relocate objects. Inherited "LDFLAGS = -m" fails the test builds. Clear it. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index 26ce4f7168be..f4368db011ea 100644
--- a/tools/testing/selftests/Makefile
+++ b/tools/testing/selftests/Makefile
@@ -52,6 +52,10 @@ override LDFLAGS =
override MAKEFLAGS =
endif
+ifneq ($(KBUILD_SRC),)
+override LDFLAGS =
+endif
+
BUILD := $(O)
ifndef BUILD
BUILD := $(KBUILD_OUTPUT)