From 58db07bee9899797b20e3b1a6e0b977b028bb0c8 Mon Sep 17 00:00:00 2001 From: Dennis Buchhorn Date: Tue, 18 Jan 2022 11:22:12 +0100 Subject: [PATCH] feat: create tcl scripts to create and import hardware platform and projects --- ...rt_platform_and_projects.tcl.gitsubstitute | 11 ++++++++++ tcl_scripts/platform_create.tcl.gitsubstitute | 21 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 tcl_scripts/import_platform_and_projects.tcl.gitsubstitute create mode 100644 tcl_scripts/platform_create.tcl.gitsubstitute diff --git a/tcl_scripts/import_platform_and_projects.tcl.gitsubstitute b/tcl_scripts/import_platform_and_projects.tcl.gitsubstitute new file mode 100644 index 0000000..91ccc32 --- /dev/null +++ b/tcl_scripts/import_platform_and_projects.tcl.gitsubstitute @@ -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 diff --git a/tcl_scripts/platform_create.tcl.gitsubstitute b/tcl_scripts/platform_create.tcl.gitsubstitute new file mode 100644 index 0000000..5286cd3 --- /dev/null +++ b/tcl_scripts/platform_create.tcl.gitsubstitute @@ -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}}