Re: [RFC PATCH v2 3/3] dtc: linux kernel build process to create annotated .dts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Sep 21, 2015 at 10:39:46PM -0700, Frank Rowand wrote:
> From: Frank Rowand <frank.rowand@xxxxxxxxxxxxxx>
> 
> Add a new temp file in the build directory arch/${arch}/boot/dts/
> that contains the expanded device tree source with source file locations.
> 
> Requires a new version of the dtc compiler that understands the
> --annotate flag.
> 
> Not-signed-off-by: Frank Rowand <frank.rowand@xxxxxxxxxxxxxx>

Bit weird having a patch against an entirely different project / tree
in the same series, but the patch itself looks file.

> ---
>  scripts/Makefile.lib |    3 +++
>  1 file changed, 3 insertions(+)
> 
> Index: b/scripts/Makefile.lib
> ===================================================================
> --- a/scripts/Makefile.lib
> +++ b/scripts/Makefile.lib
> @@ -287,12 +287,15 @@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
>  	$(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 \
>  		-i $(dir $<) $(DTC_FLAGS) \
>  		-d $(depfile).dtc.tmp $(dtc-tmp) ; \
> +	$(objtree)/scripts/dtc/dtc --annotate -O dts -o $(dtc-annotate-tmp) \
> +		 $(dtc-tmp) ; \
>  	cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
>  
>  $(obj)/%.dtb: $(src)/%.dts FORCE
>  	$(call if_changed_dep,dtc)
>  
>  dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
> +dtc-annotate-tmp = $(subst $(comma),_,$(dot-target).annotate.dts.tmp)
>  
>  # Bzip2
>  # ---------------------------------------------------------------------------

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: pgpHZusE5kccW.pgp
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux