Skip to content

Instantly share code, notes, and snippets.

@nv-h
Created October 12, 2018 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nv-h/0a81e41061540a6932e0803a6478a2ed to your computer and use it in GitHub Desktop.
Save nv-h/0a81e41061540a6932e0803a6478a2ed to your computer and use it in GitHub Desktop.
Zynq FSBL script
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
setws .
projects -clean -type app -name fsbl
# 引数で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