All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tero Kristo <t-kristo@ti.com>
To: catalin.marinas@arm.com, will.deacon@arm.com,
	linux@armlinux.org.uk, frowand.list@gmail.com,
	robh+dt@kernel.org
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/7] arm64: dts: add support for per sub-dir makefiles for DT building
Date: Tue, 28 Aug 2018 15:32:10 +0300	[thread overview]
Message-ID: <1535459532-17211-6-git-send-email-t-kristo@ti.com> (raw)
In-Reply-To: <1535459532-17211-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: [PATCH 5/7] arm64: dts: add support for per sub-dir makefiles for DT building
Date: Tue, 28 Aug 2018 15:32:10 +0300	[thread overview]
Message-ID: <1535459532-17211-6-git-send-email-t-kristo@ti.com> (raw)
In-Reply-To: <1535459532-17211-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

  parent reply	other threads:[~2018-08-28 12:32 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-28 12:32 [PATCH 0/7] ARM32/64: DT overlay build support Tero Kristo
2018-08-28 12:32 ` Tero Kristo
2018-08-28 12:32 ` [PATCH 1/7] kbuild: add support for building %.dtbo targets Tero Kristo
2018-08-28 12:32   ` Tero Kristo
2018-08-28 12:32 ` [PATCH 2/7] ARM: dts: add support for building DT overlays Tero Kristo
2018-08-28 12:32   ` Tero Kristo
2018-08-28 12:32 ` [PATCH 3/7] ARM: dts: add support for individual build flags for DT subdirs Tero Kristo
2018-08-28 12:32   ` Tero Kristo
2018-08-28 12:32 ` [PATCH 4/7] arm64: dts: add support for building DT overlays Tero Kristo
2018-08-28 12:32   ` Tero Kristo
2018-08-28 12:32 ` Tero Kristo [this message]
2018-08-28 12:32   ` [PATCH 5/7] arm64: dts: add support for per sub-dir makefiles for DT building Tero Kristo
2018-08-28 12:32 ` [PATCH 6/7] ARM: dts: ti: add support for building Texas Instruments specific overlays Tero Kristo
2018-08-28 12:32   ` Tero Kristo
2018-08-28 12:32 ` [PATCH 7/7] arm64: ti: add support for building Texas instruments overlays Tero Kristo
2018-08-28 12:32   ` Tero Kristo
2018-08-29 18:40 ` [PATCH 0/7] ARM32/64: DT overlay build support Frank Rowand
2018-08-29 18:40   ` Frank Rowand
2018-08-30 17:12   ` Tero Kristo
2018-08-30 17:12     ` Tero Kristo
2018-08-30 20:32     ` Frank Rowand
2018-08-30 20:32       ` Frank Rowand
2018-09-03  9:03       ` Tero Kristo
2018-09-03  9:03         ` Tero Kristo
2018-09-03 17:26         ` Frank Rowand
2018-09-03 17:26           ` 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=1535459532-17211-6-git-send-email-t-kristo@ti.com \
    --to=t-kristo@ti.com \
    --cc=catalin.marinas@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=frowand.list@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux@armlinux.org.uk \
    --cc=robh+dt@kernel.org \
    --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: link
Be 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.