* [PATCH 0/4] kbuild: refactor Makefile inclusion
@ 2015-03-27 11:43 Masahiro Yamada
2015-03-27 11:43 ` [PATCH 1/4] kbuild: use relative path to include Makefile Masahiro Yamada
2015-04-02 15:27 ` [PATCH 0/4] kbuild: refactor Makefile inclusion Michal Marek
0 siblings, 2 replies; 3+ messages in thread
From: Masahiro Yamada @ 2015-03-27 11:43 UTC (permalink / raw)
To: linux-arm-kernel
Masahiro Yamada (4):
kbuild: use relative path to include Makefile
kbuild: use relative path more to include Makefile
kbuild: include $(src)/Makefile rather than $(obj)/Makefile
kbuild: ia64: use $(src)/Makefile.gate rather than particular path
Makefile | 22 ++++++++++------------
arch/arm/boot/Makefile | 2 +-
arch/ia64/kernel/Makefile | 2 +-
arch/mips/Makefile | 2 +-
arch/um/Makefile | 6 +++---
arch/x86/Makefile | 2 +-
arch/x86/Makefile.um | 2 +-
scripts/Makefile.dtbinst | 2 +-
scripts/Makefile.fwinst | 2 +-
9 files changed, 20 insertions(+), 22 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/4] kbuild: use relative path to include Makefile
2015-03-27 11:43 [PATCH 0/4] kbuild: refactor Makefile inclusion Masahiro Yamada
@ 2015-03-27 11:43 ` Masahiro Yamada
2015-04-02 15:27 ` [PATCH 0/4] kbuild: refactor Makefile inclusion Michal Marek
1 sibling, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2015-03-27 11:43 UTC (permalink / raw)
To: linux-arm-kernel
The "MAKEFLAGS += --include-dir=$(srctree)" line in the top Makefile
allows us to do this.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
arch/arm/boot/Makefile | 2 +-
arch/ia64/kernel/Makefile | 2 +-
scripts/Makefile.dtbinst | 2 +-
scripts/Makefile.fwinst | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile
index ec2f806..9eca7ae 100644
--- a/arch/arm/boot/Makefile
+++ b/arch/arm/boot/Makefile
@@ -12,7 +12,7 @@
#
ifneq ($(MACHINE),)
-include $(srctree)/$(MACHINE)/Makefile.boot
+include $(MACHINE)/Makefile.boot
endif
# Note: the following conditions must always be true:
diff --git a/arch/ia64/kernel/Makefile b/arch/ia64/kernel/Makefile
index 20678a9..47e8aff 100644
--- a/arch/ia64/kernel/Makefile
+++ b/arch/ia64/kernel/Makefile
@@ -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
diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst
index 909ed7a..7cbff16 100644
--- a/scripts/Makefile.dtbinst
+++ b/scripts/Makefile.dtbinst
@@ -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:
diff --git a/scripts/Makefile.fwinst b/scripts/Makefile.fwinst
index 5b698ad..baf5eae 100644
--- a/scripts/Makefile.fwinst
+++ b/scripts/Makefile.fwinst
@@ -13,7 +13,7 @@ src := $(obj)
-include $(objtree)/.config
include scripts/Kbuild.include
-include $(srctree)/$(obj)/Makefile
+include $(obj)/Makefile
include scripts/Makefile.host
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 0/4] kbuild: refactor Makefile inclusion
2015-03-27 11:43 [PATCH 0/4] kbuild: refactor Makefile inclusion Masahiro Yamada
2015-03-27 11:43 ` [PATCH 1/4] kbuild: use relative path to include Makefile Masahiro Yamada
@ 2015-04-02 15:27 ` Michal Marek
1 sibling, 0 replies; 3+ messages in thread
From: Michal Marek @ 2015-04-02 15:27 UTC (permalink / raw)
To: linux-arm-kernel
On 2015-03-27 12:43, Masahiro Yamada wrote:
> Masahiro Yamada (4):
> kbuild: use relative path to include Makefile
> kbuild: use relative path more to include Makefile
> kbuild: include $(src)/Makefile rather than $(obj)/Makefile
> kbuild: ia64: use $(src)/Makefile.gate rather than particular path
Applied to kbuild.git#kbuild.
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-02 15:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-27 11:43 [PATCH 0/4] kbuild: refactor Makefile inclusion Masahiro Yamada
2015-03-27 11:43 ` [PATCH 1/4] kbuild: use relative path to include Makefile Masahiro Yamada
2015-04-02 15:27 ` [PATCH 0/4] kbuild: refactor Makefile inclusion Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).