kbuild: use relative path to include Makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 27 Mar 2015 11:43:35 +0000 (20:43 +0900)
committerMichal Marek <mmarek@suse.cz>
Thu, 2 Apr 2015 14:42:08 +0000 (16:42 +0200)
The "MAKEFLAGS += --include-dir=$(srctree)" line in the top Makefile
allows us to do this.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
arch/arm/boot/Makefile
arch/ia64/kernel/Makefile
scripts/Makefile.dtbinst
scripts/Makefile.fwinst

index ec2f8065f955c5c31a69888bf261c58ea56ffb6d..9eca7aee927f3081975d7372a66a358565c33c56 100644 (file)
@@ -12,7 +12,7 @@
 #
 
 ifneq ($(MACHINE),)
-include $(srctree)/$(MACHINE)/Makefile.boot
+include $(MACHINE)/Makefile.boot
 endif
 
 # Note: the following conditions must always be true:
index 20678a9ed11a83081083b2aca0ac8bd84b5b9fcb..47e8aff03591441aa445473621e397f295b0417d 100644 (file)
@@ -51,7 +51,7 @@ obj-$(CONFIG_BINFMT_ELF)      += elfcore.o
 CFLAGS_traps.o  += -mfixed-range=f2-f5,f16-f31
 
 # The gate DSO image is built using a special linker script.
-include $(srctree)/arch/ia64/kernel/Makefile.gate
+include arch/ia64/kernel/Makefile.gate
 # tell compiled for native
 CPPFLAGS_gate.lds += -D__IA64_GATE_PARAVIRTUALIZED_NATIVE
 
index 909ed7a2ac61142371ee4c19f10096f3a1a07c46..7cbff167341f4ab5f21f7d1896fe9ad4a1576afa 100644 (file)
@@ -18,7 +18,7 @@ export dtbinst-root ?= $(obj)
 
 include include/config/auto.conf
 include scripts/Kbuild.include
-include $(srctree)/$(obj)/Makefile
+include $(obj)/Makefile
 
 PHONY += __dtbs_install_prep
 __dtbs_install_prep:
index 5b698add4f31ca634a273ae890cf52471ce85537..baf5eaedb2782625bebe1cc8984cff5c2440d6a4 100644 (file)
@@ -13,7 +13,7 @@ src := $(obj)
 -include $(objtree)/.config
 
 include scripts/Kbuild.include
-include $(srctree)/$(obj)/Makefile
+include $(obj)/Makefile
 
 include scripts/Makefile.host