linux 单独编译dts

 

 

1、跳转到dts根目录下

执行命令预处理

cpp -I ../../../../include/ -I .  -E -P -x assembler-with-cpp pioneer3-ssc020a-s01a-demo.dts pioneer3-ssc020a-s01a-demo.dts.pre

 

 

编译:

../../../../scripts/dtc/dtc -O dtb -I dts -o pioneer3-ssc020a-s01a-demo.dtb.bak pioneer3-ssc020a-s01a-demo.dts.pre

 

反编译

../../../../scripts/dtc/dtc -O dts -I dtb -o pioneer3-ssc020a-s01a-demo.dts.pre  pioneer3-ssc020a-s01a-demo.dtb.bak 

 

预处理与编译一起执行

cpp -I ../../../../include/ -I . -E -P -x assembler-with-cpp pioneer3-ssc020a-s01a-demo.dts  | ../../../../scripts/dtc/dtc -O dtb -I dts -o pioneer3-ssc020a-s01a-demo.dtb.bak -

 

 

 

 

 

参考文章:https://sourcelink.top/2019/08/22/dts-compare/

 

posted @ 2021-11-16 15:06  cogitoergosum  阅读(792)  评论(0编辑  收藏  举报