[rtems commit] bsp/tms570: Add -mbe32 to LINKFLAGS

Sebastian Huber sebh at rtems.org
Tue Sep 20 08:25:17 UTC 2022


Module:    rtems
Branch:    master
Commit:    9a5512042063348c0b57293f01e179deefe4bd71
Changeset: http://git.rtems.org/rtems/commit/?id=9a5512042063348c0b57293f01e179deefe4bd71

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Sep 19 13:51:49 2022 +0200

bsp/tms570: Add -mbe32 to LINKFLAGS

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.

In GCC, see:

commit 63d03dcecdafe34715282a5155cfc2162375feca
Author: Richard Earnshaw <rearnsha at arm.com>
Date:   Mon Jul 3 13:22:05 2017 +0000

     [arm] Clean up generation of BE8 format images.

---

 spec/build/bsps/arm/tms570/grp.yml          |  2 ++
 spec/build/bsps/arm/tms570/optlinkflags.yml | 17 +++++++++++++++++
 2 files changed, 19 insertions(+)

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



More information about the vc mailing list