diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-03-27 20:43:36 +0900 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-04-02 16:42:08 +0200 |
commit | a436bb7b806383ae0593cab53d17fc9676270cd3 (patch) | |
tree | 4d51b1a8b5474fd0d3000f5026032efc71a961b0 /arch/um/Makefile | |
parent | 7aacad53aeb57b7ff52399f56eb6d7d4010e72e9 (diff) | |
download | linux-a436bb7b806383ae0593cab53d17fc9676270cd3.tar.gz linux-a436bb7b806383ae0593cab53d17fc9676270cd3.tar.bz2 linux-a436bb7b806383ae0593cab53d17fc9676270cd3.zip |
kbuild: use relative path more to include Makefile
Prior to this commit, it was impossible to use relative path to
include Makefiles from the top level Makefile because the option
"--include-dir=$(srctree)" becomes effective when Make enters into
sub Makefiles.
To use relative path in any places, this commit moves the option
above the "sub-make" target.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r-- | arch/um/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index e4b1a9639c4d..17d4460b1af3 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile @@ -43,8 +43,8 @@ endif HOST_DIR := arch/$(HEADER_ARCH) -include $(srctree)/$(ARCH_DIR)/Makefile-skas -include $(srctree)/$(HOST_DIR)/Makefile.um +include $(ARCH_DIR)/Makefile-skas +include $(HOST_DIR)/Makefile.um core-y += $(HOST_DIR)/um/ @@ -73,7 +73,7 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ $(filter -I%,$(CFLAGS)) -D_FILE_OFFSET_BITS=64 -idirafter include #This will adjust *FLAGS accordingly to the platform. -include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) +include $(ARCH_DIR)/Makefile-os-$(OS) KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \ -I$(srctree)/$(HOST_DIR)/include/uapi \ |