Browse Source

feat: create tcl scripts to create and import hardware platform and projects

master
Dennis Buchhorn 2 years ago
parent
commit
58db07bee9
2 changed files with 32 additions and 0 deletions
  1. +11
    -0
      tcl_scripts/import_platform_and_projects.tcl.gitsubstitute
  2. +21
    -0
      tcl_scripts/platform_create.tcl.gitsubstitute

+ 11
- 0
tcl_scripts/import_platform_and_projects.tcl.gitsubstitute View File

@ -0,0 +1,11 @@
setws {$$${GITSUBSTITUTE_REPO_ROOT}}
##########################################################################################
# !!! Leave the 'hw_platform' unchanged !!!
# Replace the other projects with your app name
##########################################################################################
importprojects ./hw_platform
importprojects ./REPLACE_WITH_YOUR_APP_NAME_system
importprojects ./REPLACE_WITH_YOUR_APP_NAME

+ 21
- 0
tcl_scripts/platform_create.tcl.gitsubstitute View File

@ -0,0 +1,21 @@
setws {$$${GITSUBSTITUTE_REPO_ROOT}}
##########################################################################################
# Place your custom drivers here
# Copy or uncomment the example line
##########################################################################################
#repo -set {$$${GITSUBSTITUTE_REPO_ROOT}/extern/REPLACE_WITH_PATH_TO_DRIVER}
##########################################################################################
# !!! Leave 'name' unchanged (hw_platform) !!!
# Set the path to the .xsa hardware description file
# Maybe you need to change the other parameters (proc, os, arch, fsbl-target)
##########################################################################################
platform create\
-name {hw_platform}\
-hw {$$${GITSUBSTITUTE_REPO_ROOT}/extern/REPLACE_WITH_PATH_TO_XSA_FILE}\
-proc {psu_cortexa53_0}
-os {standalone}\
-arch {64-bit}\
-fsbl-target {psu_cortexa53_0}\
-out {$$${GITSUBSTITUTE_REPO_ROOT}}

Loading…
Cancel
Save