linux 单独编译dts【转】

转自:https://www.cnblogs.com/hzijone/p/15561281.html

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 -

posted @ 2022-01-26 01:59  Sky&Zhang  阅读(433)  评论(0编辑  收藏  举报