diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-09-19 13:51:49 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-09-20 10:34:35 +0200 |
commit | 9a5512042063348c0b57293f01e179deefe4bd71 (patch) | |
tree | a282769b1740b9058a55e6a099f9903272fd1e19 /spec/build/bsps/arm | |
parent | bsps/riscv/riscv: Fix fe310_uart_read (diff) | |
download | rtems-9a5512042063348c0b57293f01e179deefe4bd71.tar.bz2 |
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@arm.com>
Date: Mon Jul 3 13:22:05 2017 +0000
[arm] Clean up generation of BE8 format images.
Diffstat (limited to 'spec/build/bsps/arm')
-rw-r--r-- | spec/build/bsps/arm/tms570/grp.yml | 2 | ||||
-rw-r--r-- | spec/build/bsps/arm/tms570/optlinkflags.yml | 17 |
2 files changed, 19 insertions, 0 deletions
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 @@ -39,6 +39,8 @@ links: - role: build-dependency uid: opttms570ls3137 - role: build-dependency + uid: optlinkflags +- role: build-dependency uid: ../../linkcmds - role: build-dependency uid: ../../obj 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 |