[PATCH] bsp/tms570: Add -mbe32 to LINKFLAGS

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Sep 19 12:00:36 UTC 2022


There is not just big-endian on ARM.  We have two variants BE32
(obsolete) and BE8.  The Cortex-R5F processor supports only BE8,
however, some TMS570 variants are BE32 internally.  In GCC 8 and later,
the --be8 option is passed to the linker based on the selected
architecture or CPU.  Use BE32 by default for the TMS570 BSP.
---
 spec/build/bsps/arm/tms570/grp.yml          |  2 ++
 spec/build/bsps/arm/tms570/optlinkflags.yml | 17 +++++++++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 spec/build/bsps/arm/tms570/optlinkflags.yml

diff --git a/spec/build/bsps/arm/tms570/grp.yml b/spec/build/bsps/arm/tms570/grp.yml
index 862136f7f0..60d82270c0 100644
--- a/spec/build/bsps/arm/tms570/grp.yml
+++ b/spec/build/bsps/arm/tms570/grp.yml
@@ -38,6 +38,8 @@ links:
   uid: optscibaud
 - role: build-dependency
   uid: opttms570ls3137
+- role: build-dependency
+  uid: optlinkflags
 - role: build-dependency
   uid: ../../linkcmds
 - role: build-dependency
diff --git a/spec/build/bsps/arm/tms570/optlinkflags.yml b/spec/build/bsps/arm/tms570/optlinkflags.yml
new file mode 100644
index 0000000000..bf700031b7
--- /dev/null
+++ b/spec/build/bsps/arm/tms570/optlinkflags.yml
@@ -0,0 +1,17 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-string: null
+- split: null
+- env-append: LINKFLAGS
+build-type: option
+copyrights:
+- Copyright (C) 2022 embedded brains GmbH (http://www.embedded-brains.de)
+default:
+- -mbe32
+default-by-variant: []
+description: |
+  TMS570-specific flags passed to the linker.
+enabled-by: true
+links: []
+name: TMS570_LINKFLAGS
+type: build
-- 
2.35.3



More information about the devel mailing list