From 9a5512042063348c0b57293f01e179deefe4bd71 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 19 Sep 2022 13:51:49 +0200 Subject: 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 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(+) create mode 100644 spec/build/bsps/arm/tms570/optlinkflags.yml (limited to 'spec/build/bsps') 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 -- cgit v1.2.3