You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2021/09/06 07:01:37 UTC
[mynewt-core] branch master updated: rust_blinky: support building
rust code for cortex m33
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 9cfc5ec rust_blinky: support building rust code for cortex m33
9cfc5ec is described below
commit 9cfc5ec4c34e35910f0f8d6d280f359c1f1d9244
Author: Per <pe...@stuffmatic.com>
AuthorDate: Fri Sep 3 22:41:53 2021 +0200
rust_blinky: support building rust code for cortex m33
---
apps/rust_blinky/cargo_build.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/apps/rust_blinky/cargo_build.sh b/apps/rust_blinky/cargo_build.sh
index 230d59a..0a57067 100755
--- a/apps/rust_blinky/cargo_build.sh
+++ b/apps/rust_blinky/cargo_build.sh
@@ -22,6 +22,12 @@ if [[ ${MYNEWT_VAL_ARCH_NAME} == '"cortex_m0"' ]]; then
TARGET="thumbv6m-none-eabi"
elif [[ ${MYNEWT_VAL_ARCH_NAME} == '"cortex_m3"' ]]; then
TARGET="thumbv7m-none-eabi"
+elif [[ ${MYNEWT_VAL_ARCH_NAME} == '"cortex_m33"' ]]; then
+ if [[ $MYNEWT_VAL_HARDFLOAT -eq 1 ]]; then
+ TARGET="thumbv8m.main-none-eabihf"
+ else
+ TARGET="thumbv8m.main-none-eabih"
+ fi
elif [[ ${MYNEWT_VAL_ARCH_NAME} == '"cortex_m4"' || ${MYNEWT_VAL_ARCH_NAME} == '"cortex_m7"' ]]; then
if [[ $MYNEWT_VAL_HARDFLOAT -eq 1 ]]; then
TARGET="thumbv7em-none-eabihf"