Commit 29e911ef authored by Shuah Khan's avatar Shuah Khan

selftests: Fix kselftest O=objdir build from cluttering top level objdir

make kselftest-all O=objdir builds create generated objects in objdir.
This clutters the top level directory with kselftest objects. Fix it
to create sub-directory under objdir for kselftest objects.
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 1ae81d78
...@@ -85,7 +85,7 @@ override LDFLAGS = ...@@ -85,7 +85,7 @@ override LDFLAGS =
override MAKEFLAGS = override MAKEFLAGS =
endif endif
# Append kselftest to KBUILD_OUTPUT to avoid cluttering # Append kselftest to KBUILD_OUTPUT and O to avoid cluttering
# KBUILD_OUTPUT with selftest objects and headers installed # KBUILD_OUTPUT with selftest objects and headers installed
# by selftests Makefile or lib.mk. # by selftests Makefile or lib.mk.
ifdef building_out_of_srctree ifdef building_out_of_srctree
...@@ -93,7 +93,7 @@ override LDFLAGS = ...@@ -93,7 +93,7 @@ override LDFLAGS =
endif endif
ifneq ($(O),) ifneq ($(O),)
BUILD := $(O) BUILD := $(O)/kselftest
else else
ifneq ($(KBUILD_OUTPUT),) ifneq ($(KBUILD_OUTPUT),)
BUILD := $(KBUILD_OUTPUT)/kselftest BUILD := $(KBUILD_OUTPUT)/kselftest
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment