Created
October 12, 2018 02:35
-
-
Save nv-h/0a81e41061540a6932e0803a6478a2ed to your computer and use it in GitHub Desktop.
Zynq FSBL script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setws . | |
set symbol [configapp -app fsbl define-compiler-symbols] | |
if {[string first "FSBL_DEBUG_INFO" $symbol] == -1} { | |
configapp -app fsbl -add define-compiler-symbols FSBL_DEBUG_INFO | |
projects -clean -type app -name fsbl | |
} | |
projects -build -type app -name fsbl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setws . | |
projects -clean -type app -name fsbl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 引数でdevice-tree-xlnxリポジトリのパスをもらう | |
set repo_path [lindex $argv 0] | |
setws . | |
# hwを開く前にリポジトリを読み込み | |
repo -set $repo_path | |
# hdfファイルからhwプロジェクトを作成 | |
createhw -name fsbl_hw -hwspec ../hdf/system.hdf | |
# devicetree sourceを作成(別途調整と、dtcによるビルドが必要) | |
createbsp -name devicetree_bsp -hwproject fsbl_hw -proc ps7_cortexa9_0 -os device_tree | |
# fsblを作成 | |
createapp -name fsbl -app {Zynq FSBL} -hwproject fsbl_hw -proc ps7_cortexa9_0 | |
# fsblで情報を表示するようにする(ブートソース確認用) | |
configapp -app fsbl -add define-compiler-symbols FSBL_DEBUG | |
projects -clean -type app -name fsbl | |
projects -build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment