]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "selftests: Fix O= and KBUILD_OUTPUT handling for relative paths"
authorShuah Khan <skhan@linuxfoundation.org>
Thu, 28 Nov 2019 23:03:21 +0000 (16:03 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 28 Nov 2019 23:27:44 +0000 (16:27 -0700)
This reverts commit 58a4454a1ca518ac09ab6fe6eea4b90bbc123d01.

This patch breaks several CI use-cases that run kselftest builds
without using main Makefile. This fix depends on abs_objtree which
is undefined when kselftest build is invoked on selftests Makefile
without going through the main Makefile.

Revert this for now as this patch impacts selftest runs.

Fixes: 58a4454a1ca5 ("selftests: Fix O= and KBUILD_OUTPUT handling for relative paths")
Reported-by: Cristian Marussi <cristian.marussi@arm.com>
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/Makefile

index 6e762c42d7589ad5dde38d52a82480a896b573f7..503a93afd452cc254ff870475e1c39844f4df884 100644 (file)
@@ -86,10 +86,10 @@ override LDFLAGS =
 endif
 
 ifneq ($(O),)
-       BUILD := $(abs_objtree)
+       BUILD := $(O)
 else
        ifneq ($(KBUILD_OUTPUT),)
-               BUILD := $(abs_objtree)/kselftest
+               BUILD := $(KBUILD_OUTPUT)/kselftest
        else
                BUILD := $(shell pwd)
                DEFAULT_INSTALL_HDR_PATH := 1
@@ -102,7 +102,6 @@ include $(top_srcdir)/scripts/subarch.include
 ARCH           ?= $(SUBARCH)
 export KSFT_KHDR_INSTALL_DONE := 1
 export BUILD
-#$(info abd_objtree = $(abs_objtree) BUILD = $(BUILD))
 
 # build and run gpio when output directory is the src dir.
 # gpio has dependency on tools/gpio and builds tools/gpio