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 9/22/2015 3:40 AM, David Gibson wrote:
> 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.

Yes! :-)  Just here for the convenience of anyone who wants to test
the earlier patches.

I will stop including this patch when I drop the "RFC" from the title.


> 
>> ---
>>  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
>>  # ---------------------------------------------------------------------------
> 

--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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