转自: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 -