...
Code Block |
---|
proc include_dtsi {dtsi_file} { if {[file exists $dtsi_file]} { file copy -force $dtsi_file my_dts set fp [open my_dts/system-top.dts r] set file_data [read $fp] close $fp set fileId [open my_dts/system-top.dts "w"] set data [split $file_data "\n"] foreach line $data { puts $fileId $line } puts $fileId "#include \"$dtsi_file\"" close $fileId } } |
Download and compiling the DTC:
Code Block |
---|
git clone https://git.kernel.org/pub/scm/utils/dtc/dtc.git
cd dtc
make
export PATH=$PATH:<path to dtc> |
Creating A Makefile to build the DTS
...