summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@foss.st.com>2021-04-14 09:41:09 +0200
committerChristophe Lyon <christophe.lyon@foss.st.com>2021-07-06 13:15:43 +0000
commit94cdcfafa79be7d3b7e7a5e26af1e7a80d510fcb (patch)
tree0640aba98c7430f2607ba150cdbd5f61e71e4db0
parent1c61a1935d6f3b5df6b13392ede3bfb7bc7fe2d2 (diff)
build-cross-gcc.sh: Fix support for system simulator with -mcpu in targetboard
Related to the recent commit where we drop -mcpu from targetboard flags.
-rwxr-xr-xbuild-cross-gcc.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/build-cross-gcc.sh b/build-cross-gcc.sh
index 7bf5fd9..b973463 100755
--- a/build-cross-gcc.sh
+++ b/build-cross-gcc.sh
@@ -725,7 +725,11 @@ if test "${do_check:-yes}" = "yes"; then
case ${simu} in
*-system)
case "$target:$cpu:$targetboard" in
- arm-none-eabi:cortex-m33:*|arm-none-eabi:*:*cortex-m33*|arm-none-eabi:cortex-m55:*|arm-none-eabi:*:*cortex-m55*)
+ arm-none-eabi:cortex-m33:*|\
+ arm-none-eabi:*:*cortex-m33*|\
+ arm-none-eabi:*:*armv8-m.main*|\
+ arm-none-eabi:cortex-m55:*|\
+ arm-none-eabi:*:*cortex-m55*)
QEMU_BOARD=musca-b1
STACK=0x1a480000
cat ${mydir}/qemu-system-wrapper.sh | \
@@ -1281,7 +1285,11 @@ if test "${do_check:-yes}" = "yes"; then
case ${simu} in
*-system)
case "$target:$cpu:$targetboard" in
- arm-none-eabi:cortex-m33:*|arm-none-eabi:*:*cortex-m33*|arm-none-eabi:cortex-m55:*|arm-none-eabi:*:*cortex-m55*)
+ arm-none-eabi:cortex-m33:*|\
+ arm-none-eabi:*:*cortex-m33*|\
+ arm-none-eabi:*:*armv8-m.main*|\
+ arm-none-eabi:cortex-m55:*|\
+ arm-none-eabi:*:*cortex-m55*)
cp ${mydir}/musca-b1.ld ${sysroot}/lib/
cp ${mydir}/musca-b1.specs ${sysroot}/lib/
TARGLIST="$TARGLIST/--specs=musca-b1.specs"