diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-12-21 15:16:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2024-01-15 10:33:13 +0100 |
commit | 437da01f80cb2368beeed2aef69a5e8339caf2c5 (patch) | |
tree | 3e4806682fdedc122ad8f8bc828040e61a0f65f2 /spec/build | |
parent | bsp/tms570: Add variant enable to build (diff) | |
download | rtems-437da01f80cb2368beeed2aef69a5e8339caf2c5.tar.bz2 |
bsp/tms570: Add linkcmds.memory
Remove obsolete tms570ls3137_hdk_with_loader BSP variant. With the new
memory origin/size build options this variant is no longer required.
Update #4982.
Diffstat (limited to 'spec/build')
-rw-r--r-- | spec/build/bsps/arm/tms570/bspls3137hdkwithloader.yml | 21 | ||||
-rw-r--r-- | spec/build/bsps/arm/tms570/grp.yml | 14 | ||||
-rw-r--r-- | spec/build/bsps/arm/tms570/linkcmdsmemory.yml | 27 | ||||
-rw-r--r-- | spec/build/bsps/arm/tms570/obj.yml | 1 | ||||
-rw-r--r-- | spec/build/bsps/arm/tms570/optmemflashorigin.yml | 18 | ||||
-rw-r--r-- | spec/build/bsps/arm/tms570/optmemflashsize.yml | 20 | ||||
-rw-r--r-- | spec/build/bsps/arm/tms570/optmemsdramorigin.yml | 18 | ||||
-rw-r--r-- | spec/build/bsps/arm/tms570/optmemsdramsize.yml | 18 | ||||
-rw-r--r-- | spec/build/bsps/arm/tms570/optmemsramorigin.yml | 18 | ||||
-rw-r--r-- | spec/build/bsps/arm/tms570/optmemsramsize.yml | 20 |
10 files changed, 153 insertions, 22 deletions
diff --git a/spec/build/bsps/arm/tms570/bspls3137hdkwithloader.yml b/spec/build/bsps/arm/tms570/bspls3137hdkwithloader.yml deleted file mode 100644 index 90069533a1..0000000000 --- a/spec/build/bsps/arm/tms570/bspls3137hdkwithloader.yml +++ /dev/null @@ -1,21 +0,0 @@ -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -arch: arm -bsp: tms570ls3137_hdk_with_loader -build-type: bsp -cflags: [] -copyrights: -- Copyright (C) 2020 embedded brains GmbH & Co. KG -cppflags: [] -enabled-by: true -family: tms570 -includes: [] -install: [] -links: -- role: build-dependency - uid: ../../opto2 -- role: build-dependency - uid: ../../tstsmallmem -- role: build-dependency - uid: grp -source: [] -type: build diff --git a/spec/build/bsps/arm/tms570/grp.yml b/spec/build/bsps/arm/tms570/grp.yml index a31553c4e1..05f5eb13fc 100644 --- a/spec/build/bsps/arm/tms570/grp.yml +++ b/spec/build/bsps/arm/tms570/grp.yml @@ -43,6 +43,20 @@ links: - role: build-dependency uid: optlinkflags - role: build-dependency + uid: optmemflashorigin +- role: build-dependency + uid: optmemflashsize +- role: build-dependency + uid: optmemsdramorigin +- role: build-dependency + uid: optmemsdramsize +- role: build-dependency + uid: optmemsramorigin +- role: build-dependency + uid: optmemsramsize +- role: build-dependency + uid: linkcmdsmemory +- role: build-dependency uid: ../../linkcmds - role: build-dependency uid: ../../obj diff --git a/spec/build/bsps/arm/tms570/linkcmdsmemory.yml b/spec/build/bsps/arm/tms570/linkcmdsmemory.yml new file mode 100644 index 0000000000..33a87513bd --- /dev/null +++ b/spec/build/bsps/arm/tms570/linkcmdsmemory.yml @@ -0,0 +1,27 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: config-file +content: | + MEMORY { + ROM_INT : ORIGIN = ${TMS570_MEMORY_FLASH_ORIGIN:#010x}, LENGTH = ${TMS570_MEMORY_FLASH_SIZE:#010x} + RAM_INT : ORIGIN = ${TMS570_MEMORY_SRAM_ORIGIN:#010x}, LENGTH = ${TMS570_MEMORY_SRAM_SIZE:#010x} + RAM_EXT : ORIGIN = ${TMS570_MEMORY_SDRAM_ORIGIN:#010x}, LENGTH = ${TMS570_MEMORY_SDRAM_SIZE:#010x} + } + + tms570_memory_flash_begin = ORIGIN (ROM_INT); + tms570_memory_flash_end = ORIGIN (ROM_INT) + LENGTH (ROM_INT); + tms570_memory_flash_size = LENGTH (ROM_INT); + + tms570_memory_sram_begin = ORIGIN (RAM_INT); + tms570_memory_sram_end = ORIGIN (RAM_INT) + LENGTH (RAM_INT); + tms570_memory_sram_size = LENGTH (RAM_INT); + + tms570_memory_sdram_begin = ORIGIN (RAM_EXT); + tms570_memory_sdram_end = ORIGIN (RAM_EXT) + LENGTH (RAM_EXT); + tms570_memory_sdram_size = LENGTH (RAM_EXT); +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +enabled-by: true +install-path: ${BSP_LIBDIR} +links: [] +target: linkcmds.memory +type: build diff --git a/spec/build/bsps/arm/tms570/obj.yml b/spec/build/bsps/arm/tms570/obj.yml index 46e4eea116..d6a4255a52 100644 --- a/spec/build/bsps/arm/tms570/obj.yml +++ b/spec/build/bsps/arm/tms570/obj.yml @@ -68,7 +68,6 @@ install: - bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk - bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_intram - bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_sdram - - bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_with_loader links: [] source: - bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c diff --git a/spec/build/bsps/arm/tms570/optmemflashorigin.yml b/spec/build/bsps/arm/tms570/optmemflashorigin.yml new file mode 100644 index 0000000000..c25e230f5c --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemflashorigin.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_FLASH_ORIGIN +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x00000000 +description: | + Origin of the internal flash memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_FLASH_ORIGIN +type: build diff --git a/spec/build/bsps/arm/tms570/optmemflashsize.yml b/spec/build/bsps/arm/tms570/optmemflashsize.yml new file mode 100644 index 0000000000..defd82876e --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemflashsize.yml @@ -0,0 +1,20 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_FLASH_SIZE +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: TMS570_VARIANT_4357 + value: 0x00400000 +- enabled-by: true + value: 0x00300000 +description: | + Size in bytes of the internal flash memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_FLASH_SIZE +type: build diff --git a/spec/build/bsps/arm/tms570/optmemsdramorigin.yml b/spec/build/bsps/arm/tms570/optmemsdramorigin.yml new file mode 100644 index 0000000000..2220fc07a0 --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemsdramorigin.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_SDRAM_ORIGIN +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x80000000 +description: | + Origin of the external SDRAM memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_SDRAM_ORIGIN +type: build diff --git a/spec/build/bsps/arm/tms570/optmemsdramsize.yml b/spec/build/bsps/arm/tms570/optmemsdramsize.yml new file mode 100644 index 0000000000..e41cd24c40 --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemsdramsize.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_SDRAM_SIZE +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x00800000 +description: | + Size in bytes of the external SDRAM memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_SDRAM_SIZE +type: build diff --git a/spec/build/bsps/arm/tms570/optmemsramorigin.yml b/spec/build/bsps/arm/tms570/optmemsramorigin.yml new file mode 100644 index 0000000000..198eda69af --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemsramorigin.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_SRAM_ORIGIN +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: 0x08000000 +description: | + Origin of the internal SRAM memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_SRAM_ORIGIN +type: build diff --git a/spec/build/bsps/arm/tms570/optmemsramsize.yml b/spec/build/bsps/arm/tms570/optmemsramsize.yml new file mode 100644 index 0000000000..515819daad --- /dev/null +++ b/spec/build/bsps/arm/tms570/optmemsramsize.yml @@ -0,0 +1,20 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- env-assign: null +- format-and-define: TMS570_MEMORY_SRAM_SIZE +build-type: option +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +default: +- enabled-by: TMS570_VARIANT_4357 + value: 0x00080000 +- enabled-by: true + value: 0x00040000 +description: | + Size in bytes of the internal SRAM memory. +enabled-by: true +format: '{:#010x}' +links: [] +name: TMS570_MEMORY_SRAM_SIZE +type: build |