diff options
author | Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> | 2020-05-12 15:51:18 +0100 |
---|---|---|
committer | Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> | 2020-05-26 12:23:49 +0100 |
commit | 3c99b4cbc48610db055a9e2ed5a099cc4f3d08fd (patch) | |
tree | 3a04ee83ff4ce9820f4b6ad5d073c979456e0f3c | |
parent | 28acf3c0b1ff8a5b7d27c893c5a552b885800e2c (diff) |
corstone7xx: adding support for multiple machines
When setting the machine using export MACHINE=<machine name>
the run_model.sh script detects that and uses the corresponding paths
Change-Id: I6da905439041edba51d8569af151b9acd3887582
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
-rwxr-xr-x | run_model.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/run_model.sh b/run_model.sh index bad192c..822d762 100755 --- a/run_model.sh +++ b/run_model.sh @@ -30,8 +30,16 @@ cs700="Corstone-700" a5ds="CA5DS" if [[ $1 =~ $cs700 ]]; then - OUTDIR=${BASEDIR}/../build-iota-tiny/tmp-iota_tiny/deploy/images/corstone700 - DIRNAME=corstone700 + + if [ -z "$MACHINE" ]; then + MACHINE="corstone7xx-fvp-initramfs" + fi + + echo "Corstone7xx: using $MACHINE machine" + + OUTDIR=${BASEDIR}/../build-iota-tiny/tmp-iota_tiny/deploy/images/${MACHINE} + DIRNAME=${MACHINE} + else OUTDIR=${BASEDIR}/../build-iota-tiny/tmp-iota_tiny/deploy/images/a5ds DIRNAME=a5ds @@ -43,7 +51,7 @@ then echo "================== Launching Corstone700 Model ===============================" $1 \ -C se.trustedBootROMloader.fname="${OUTDIR}/se_romfw.bin" \ - -C board.flashloader0.fname="${OUTDIR}/iota-tiny-image-corstone700.wic" \ + -C board.flashloader0.fname="${OUTDIR}/iota-tiny-image-${MACHINE}.wic.nopt" \ -C extsys_harness0.extsys_flashloader.fname="${OUTDIR}/es_flashfw.bin" \ -C board.xnvm_size=64 \ $2 |