From: Tero Kristo <t-kristo@ti.com> To: catalin.marinas@arm.com, will.deacon@arm.com, linux@armlinux.org.uk, robh+dt@kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, tony@atomide.com, linux-arm-kernel@lists.infradead.org Subject: [PATCHv2 4/4] arm64: dts: add support for per sub-dir makefiles for DT building Date: Fri, 31 Aug 2018 15:47:46 +0300 [thread overview] Message-ID: <1535719666-13595-5-git-send-email-t-kristo@ti.com> (raw) In-Reply-To: <1535719666-13595-1-git-send-email-t-kristo@ti.com> Currently the makefile for arm64 builds all the DT files based on rules in the arch/arm64/boot/dts/Makefile, as this is statically passed via the $(build)= parameter. Change the $(build) parameter to actually point to the subdir itself, so the makefile from that subdir can be used to set-up build flags etc., for example setting up DTC_FLAGS. The patsubst magic is used to strip the trailing "/" from the path, as that confuses the kbuild system. Signed-off-by: Tero Kristo <t-kristo@ti.com> --- arch/arm64/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index f04c814..2ac4358 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -128,7 +128,7 @@ zinstall install: $(Q)$(MAKE) $(build)=$(boot) $@ %.dtb %.dtbo: scripts - $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ + $(Q)$(MAKE) $(build)=$(patsubst %/,%,$(boot)/dts/$(dir $@)) $(boot)/dts/$@ PHONY += dtbs dtbs_install -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
WARNING: multiple messages have this Message-ID (diff)
From: t-kristo@ti.com (Tero Kristo) To: linux-arm-kernel@lists.infradead.org Subject: [PATCHv2 4/4] arm64: dts: add support for per sub-dir makefiles for DT building Date: Fri, 31 Aug 2018 15:47:46 +0300 [thread overview] Message-ID: <1535719666-13595-5-git-send-email-t-kristo@ti.com> (raw) In-Reply-To: <1535719666-13595-1-git-send-email-t-kristo@ti.com> Currently the makefile for arm64 builds all the DT files based on rules in the arch/arm64/boot/dts/Makefile, as this is statically passed via the $(build)= parameter. Change the $(build) parameter to actually point to the subdir itself, so the makefile from that subdir can be used to set-up build flags etc., for example setting up DTC_FLAGS. The patsubst magic is used to strip the trailing "/" from the path, as that confuses the kbuild system. Signed-off-by: Tero Kristo <t-kristo@ti.com> --- arch/arm64/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index f04c814..2ac4358 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -128,7 +128,7 @@ zinstall install: $(Q)$(MAKE) $(build)=$(boot) $@ %.dtb %.dtbo: scripts - $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ + $(Q)$(MAKE) $(build)=$(patsubst %/,%,$(boot)/dts/$(dir $@)) $(boot)/dts/$@ PHONY += dtbs dtbs_install -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
next prev parent reply other threads:[~2018-08-31 12:47 UTC|newest] Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-08-31 12:47 [PATCHv2 0/4] ARM build infra changes to support building .dtbos Tero Kristo 2018-08-31 12:47 ` Tero Kristo 2018-08-31 12:47 ` [PATCHv2 1/4] ARM: dts: add support for building DT overlays Tero Kristo 2018-08-31 12:47 ` Tero Kristo 2018-08-31 12:47 ` [PATCHv2 2/4] ARM: dts: add support for individual build flags for DT subdirs Tero Kristo 2018-08-31 12:47 ` Tero Kristo 2018-08-31 12:47 ` [PATCHv2 3/4] arm64: dts: add support for building DT overlays Tero Kristo 2018-08-31 12:47 ` Tero Kristo 2018-08-31 12:47 ` Tero Kristo [this message] 2018-08-31 12:47 ` [PATCHv2 4/4] arm64: dts: add support for per sub-dir makefiles for DT building Tero Kristo 2018-09-04 8:05 ` [RESEND PATCHv2 0/4] ARM build infra changes to support building .dtbos Tero Kristo 2018-09-04 8:05 ` Tero Kristo 2018-09-04 8:05 ` [RESEND PATCHv2 1/4] ARM: dts: add support for building DT overlays Tero Kristo 2018-09-04 8:05 ` Tero Kristo 2018-09-05 20:36 ` Frank Rowand 2018-09-05 20:36 ` Frank Rowand 2018-09-05 21:13 ` Rob Herring 2018-09-05 21:13 ` Rob Herring 2018-09-06 21:00 ` Frank Rowand 2018-09-06 21:00 ` Frank Rowand 2018-09-04 8:05 ` [RESEND PATCHv2 2/4] ARM: dts: add support for individual build flags for DT subdirs Tero Kristo 2018-09-04 8:05 ` Tero Kristo 2018-09-05 20:36 ` Frank Rowand 2018-09-05 20:36 ` Frank Rowand 2018-09-05 21:38 ` Rob Herring 2018-09-05 21:38 ` Rob Herring 2018-09-04 8:05 ` [RESEND PATCHv2 3/4] arm64: dts: add support for building DT overlays Tero Kristo 2018-09-04 8:05 ` Tero Kristo 2018-09-05 20:36 ` Frank Rowand 2018-09-05 20:36 ` Frank Rowand 2018-09-04 8:05 ` [RESEND PATCHv2 4/4] arm64: dts: add support for per sub-dir makefiles for DT building Tero Kristo 2018-09-04 8:05 ` Tero Kristo 2018-09-05 20:37 ` Frank Rowand 2018-09-05 20:37 ` Frank Rowand
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1535719666-13595-5-git-send-email-t-kristo@ti.com \ --to=t-kristo@ti.com \ --cc=catalin.marinas@arm.com \ --cc=devicetree@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux@armlinux.org.uk \ --cc=mark.rutland@arm.com \ --cc=robh+dt@kernel.org \ --cc=tony@atomide.com \ --cc=will.deacon@arm.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.