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 -
【作者】sky
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.