devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frank Rowand <frowand.list@gmail.com>
To: Tero Kristo <t-kristo@ti.com>,
	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: Re: [RESEND PATCHv2 4/4] arm64: dts: add support for per sub-dir makefiles for DT building
Date: Wed, 5 Sep 2018 13:37:26 -0700	[thread overview]
Message-ID: <8ef6d1a9-f038-c83b-24f7-fe42a8fdad0e@gmail.com> (raw)
In-Reply-To: <1536048344-9995-5-git-send-email-t-kristo@ti.com>

On 09/04/18 01:05, Tero Kristo wrote:
> 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
>  
> 

same comment as for patch 2/4

      reply	other threads:[~2018-09-05 20:37 UTC|newest]

Thread overview: 17+ 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 ` [PATCHv2 1/4] ARM: dts: add support for building DT overlays 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 ` [PATCHv2 3/4] arm64: dts: add support for building DT overlays Tero Kristo
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   ` [RESEND PATCHv2 1/4] ARM: dts: add support for building DT overlays Tero Kristo
2018-09-05 20:36     ` Frank Rowand
2018-09-05 21:13       ` Rob Herring
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-05 20:36     ` Frank Rowand
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-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-05 20:37     ` Frank Rowand [this message]

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=8ef6d1a9-f038-c83b-24f7-fe42a8fdad0e@gmail.com \
    --to=frowand.list@gmail.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=t-kristo@ti.com \
    --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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).