e-tipsmemo

ごった煮

Vivado fsbl build batchmode③

http://e-tipsmemo.hatenablog.com/entry/2018/06/11/000000e-tipsmemo.hatenablog.com

の続きでfsblと言っているが、
device-treeをhsiから作る。

これはそこまで苦労しなかった。

前提

WSLが入っている。とか
WSLが入っているならdevice-tree-compilerが入っているか、とか
hsiへのパスが通っているとか

tcl script


xilinxのdevice-tree-generatorのリポジトリをクローンした場所

このあとにdtcを使えば終了

dts:
	cmd.exe /c 'hsi -mode tcl -source .\dts.tcl'

dtb: dts
	$(shell dtc -I dts -O dtb -o $(dt_dir)/devicetree.dtb $(dt_dir)/system-top.dts)
	$(shell dtc -I dtb -O dts -o $(dt_dir)/devicetree.dts $(dt_dir)/devicetree.dtb)

makeの書き方・・?