From 336823191ab3c22f45c4ef9ac6ebaa936c5f5ff0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 Jan 2023 10:03:27 +0100 Subject: build: Format build items Use yaml.dump(data, default_flow_style=False, allow_unicode=True) with a custom representer for integer default values to format all build items. --- spec/build/bsps/arm/imxrt/linkcmds.yml | 6 +++--- spec/build/bsps/arm/imxrt/linkcmdsmemory.yml | 6 +++--- spec/build/bsps/arm/imxrt/optlinkcmds.yml | 12 ++++++------ spec/build/bsps/arm/imxrt/optmemdtcmsz.yml | 14 +++++++------- spec/build/bsps/arm/imxrt/optmemextramnocachesz.yml | 14 +++++++------- spec/build/bsps/arm/imxrt/optmemextramorigin.yml | 12 ++++++------ spec/build/bsps/arm/imxrt/optmemextramsz.yml | 16 ++++++++-------- spec/build/bsps/arm/imxrt/optmemflashcfgsz.yml | 16 ++++++++-------- spec/build/bsps/arm/imxrt/optmemflashivtsz.yml | 16 ++++++++-------- spec/build/bsps/arm/imxrt/optmemflashorigin.yml | 14 +++++++------- spec/build/bsps/arm/imxrt/optmemflashsz.yml | 16 ++++++++-------- spec/build/bsps/arm/imxrt/optmemitcmsz.yml | 16 ++++++++-------- spec/build/bsps/arm/imxrt/optmemnullsz.yml | 16 ++++++++-------- spec/build/bsps/arm/imxrt/optmemocramnocachesz.yml | 14 +++++++------- spec/build/bsps/arm/imxrt/optmemocramsz.yml | 16 ++++++++-------- 15 files changed, 102 insertions(+), 102 deletions(-) (limited to 'spec/build/bsps/arm/imxrt') diff --git a/spec/build/bsps/arm/imxrt/linkcmds.yml b/spec/build/bsps/arm/imxrt/linkcmds.yml index 3e57b9fd7c..9a4fc8bb56 100644 --- a/spec/build/bsps/arm/imxrt/linkcmds.yml +++ b/spec/build/bsps/arm/imxrt/linkcmds.yml @@ -1,11 +1,11 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: config-file content: | INCLUDE ${IMXRT_DEFAULT_LINKCMDS} +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) enabled-by: true install-path: ${BSP_LIBDIR} links: [] target: linkcmds type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/linkcmdsmemory.yml b/spec/build/bsps/arm/imxrt/linkcmdsmemory.yml index 6b4a36955a..2d8187052f 100644 --- a/spec/build/bsps/arm/imxrt/linkcmdsmemory.yml +++ b/spec/build/bsps/arm/imxrt/linkcmdsmemory.yml @@ -1,3 +1,4 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: config-file content: | MEMORY { @@ -57,11 +58,10 @@ content: | imxrt_memory_extram_nocache_begin = ORIGIN (EXTRAM_NOCACHE); imxrt_memory_extram_nocache_end = ORIGIN (EXTRAM_NOCACHE) + LENGTH (EXTRAM_NOCACHE); imxrt_memory_extram_nocache_size = LENGTH (EXTRAM_NOCACHE); +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) enabled-by: true install-path: ${BSP_LIBDIR} links: [] target: linkcmds.memory type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optlinkcmds.yml b/spec/build/bsps/arm/imxrt/optlinkcmds.yml index 4349ad332e..cb398b4a89 100644 --- a/spec/build/bsps/arm/imxrt/optlinkcmds.yml +++ b/spec/build/bsps/arm/imxrt/optlinkcmds.yml @@ -1,17 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-string: null - env-assign: null build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) default: linkcmds.flexspi default-by-variant: [] +description: | + The default linker command file. Must be linkcmds.sdram, linkcmds.ocram or + linkcmds.flexspi. enabled-by: true format: '{}' links: [] name: IMXRT_DEFAULT_LINKCMDS -description: | - The default linker command file. Must be linkcmds.sdram, linkcmds.ocram or - linkcmds.flexspi. type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemdtcmsz.yml b/spec/build/bsps/arm/imxrt/optmemdtcmsz.yml index 1bd57fac08..646460c48b 100644 --- a/spec/build/bsps/arm/imxrt/optmemdtcmsz.yml +++ b/spec/build/bsps/arm/imxrt/optmemdtcmsz.yml @@ -1,17 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null build-type: option -default: 0x20000 +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +default: 0x00020000 default-by-variant: [] +description: | + Size of the DTCM in bytes. Note that these sizes depend on fuses or software + settings done by a bootloader (together with ITCM and OCRAM). enabled-by: true format: '{:#010x}' links: [] name: IMXRT_MEMORY_DTCM_SIZE -description: | - Size of the DTCM in bytes. Note that these sizes depend on fuses or software - settings done by a bootloader (together with ITCM and OCRAM). type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemextramnocachesz.yml b/spec/build/bsps/arm/imxrt/optmemextramnocachesz.yml index 8b6dba859a..e4e2616a1e 100644 --- a/spec/build/bsps/arm/imxrt/optmemextramnocachesz.yml +++ b/spec/build/bsps/arm/imxrt/optmemextramnocachesz.yml @@ -1,17 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null build-type: option -default: 1048576 +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 0x00100000 default-by-variant: [] +description: | + Size of the nocache area at the end of the external RAM in bytes. Must not be + bigger than IMXRT_MEMORY_EXTRAM_SIZE. enabled-by: true format: '{:#010x}' links: [] name: IMXRT_MEMORY_EXTRAM_NOCACHE_SIZE -description: | - Size of the nocache area at the end of the external RAM in bytes. Must not be - bigger than IMXRT_MEMORY_EXTRAM_SIZE. type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemextramorigin.yml b/spec/build/bsps/arm/imxrt/optmemextramorigin.yml index 98350d2e2f..c0becc935a 100644 --- a/spec/build/bsps/arm/imxrt/optmemextramorigin.yml +++ b/spec/build/bsps/arm/imxrt/optmemextramorigin.yml @@ -1,17 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) default: 0x80000000 default-by-variant: [] +description: | + Base address of the external RAM. An external ram can be for example be a + SDRAM connected to SEMC or a HyperRAM connected to FlexSPI. enabled-by: true format: '{:#010x}' links: [] name: IMXRT_MEMORY_EXTRAM_ORIGIN -description: | - Base address of the external RAM. An external ram can be for example be a - SDRAM connected to SEMC or a HyperRAM connected to FlexSPI. type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemextramsz.yml b/spec/build/bsps/arm/imxrt/optmemextramsz.yml index 6999add5cc..b547ec44fe 100644 --- a/spec/build/bsps/arm/imxrt/optmemextramsz.yml +++ b/spec/build/bsps/arm/imxrt/optmemextramsz.yml @@ -1,19 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null build-type: option -default: 0x2000000 +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 0x02000000 default-by-variant: [] -enabled-by: true -format: '{:#010x}' -links: [] -name: IMXRT_MEMORY_EXTRAM_SIZE description: | Size of the external RAM in bytes. An external ram can be for example be a SDRAM connected to SEMC or a HyperRAM connected to FlexSPI. The size has to be at least big enough to hold the non cached section with size IMXRT_MEMORY_EXTRAM_NOCACHE_SIZE at the end of the RAM. +enabled-by: true +format: '{:#010x}' +links: [] +name: IMXRT_MEMORY_EXTRAM_SIZE type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemflashcfgsz.yml b/spec/build/bsps/arm/imxrt/optmemflashcfgsz.yml index cd65a7a442..4c1e4b3276 100644 --- a/spec/build/bsps/arm/imxrt/optmemflashcfgsz.yml +++ b/spec/build/bsps/arm/imxrt/optmemflashcfgsz.yml @@ -1,19 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null build-type: option -default: 0x1000 +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 0x00001000 default-by-variant: [] -enabled-by: true -format: '{:#010x}' -links: [] -name: IMXRT_MEMORY_FLASH_CFG_SIZE description: | Size of the flash configuration area at the start of the FlexSPI / SEMC flash in bytes. Either 4 KByte for FlexSPI NOR / SEMC NOR or 1 Kbyte for most other. Take a look at the i.MX RT1050 Processor Reference Manual chapter 9.7 "Program image" for details. +enabled-by: true +format: '{:#010x}' +links: [] +name: IMXRT_MEMORY_FLASH_CFG_SIZE type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemflashivtsz.yml b/spec/build/bsps/arm/imxrt/optmemflashivtsz.yml index d1d9516951..0af2fc2981 100644 --- a/spec/build/bsps/arm/imxrt/optmemflashivtsz.yml +++ b/spec/build/bsps/arm/imxrt/optmemflashivtsz.yml @@ -1,18 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null build-type: option -default: 0x1000 +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 0x00001000 default-by-variant: [] -enabled-by: true -format: '{:#010x}' -links: [] -name: IMXRT_MEMORY_FLASH_IVT_SIZE description: | Size of the image vector table, boot data structure, device configuration data and similar program image header information. Take a look at the i.MX RT1050 Processor Reference Manual chapter 9.7 "Program image" for details. +enabled-by: true +format: '{:#010x}' +links: [] +name: IMXRT_MEMORY_FLASH_IVT_SIZE type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemflashorigin.yml b/spec/build/bsps/arm/imxrt/optmemflashorigin.yml index 882ade680c..4805d319cf 100644 --- a/spec/build/bsps/arm/imxrt/optmemflashorigin.yml +++ b/spec/build/bsps/arm/imxrt/optmemflashorigin.yml @@ -1,19 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null - define-unquoted: IMXRT_MEMORY_FLASH_ORIGIN build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) default: 0x60000000 default-by-variant: [] -enabled-by: true -format: '{:#010x}' -links: [] -name: IMXRT_MEMORY_FLASH_ORIGIN description: | Origin of the external flash memory. That can be for example a flash connected to FlexSPI or to SEMC. The default value is for a HyperFlash connected to FlexSPI. +enabled-by: true +format: '{:#010x}' +links: [] +name: IMXRT_MEMORY_FLASH_ORIGIN type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemflashsz.yml b/spec/build/bsps/arm/imxrt/optmemflashsz.yml index c474dd256e..6683977ef2 100644 --- a/spec/build/bsps/arm/imxrt/optmemflashsz.yml +++ b/spec/build/bsps/arm/imxrt/optmemflashsz.yml @@ -1,20 +1,20 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null - define-unquoted: IMXRT_MEMORY_FLASH_SIZE build-type: option -default: 0x4000000 +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 0x04000000 default-by-variant: [] -enabled-by: true -format: '{:#010x}' -links: [] -name: IMXRT_MEMORY_FLASH_SIZE description: | Size of the external flash area in bytes. Has to be big enough to hold the i.MXRT initial vector table (IVT) and configuration information. The sizes of these are defined with IMXRT_MEMORY_FLASH_IVT_SIZE and IMXRT_MEMORY_FLASH_CFG_SIZE. +enabled-by: true +format: '{:#010x}' +links: [] +name: IMXRT_MEMORY_FLASH_SIZE type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemitcmsz.yml b/spec/build/bsps/arm/imxrt/optmemitcmsz.yml index 7795b2becb..83d3c75f4b 100644 --- a/spec/build/bsps/arm/imxrt/optmemitcmsz.yml +++ b/spec/build/bsps/arm/imxrt/optmemitcmsz.yml @@ -1,18 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null build-type: option -default: 0x1ff00 +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +default: 0x0001ff00 default-by-variant: [] -enabled-by: true -format: '{:#010x}' -links: [] -name: IMXRT_MEMORY_ITCM_SIZE description: | Size of the ITCM in bytes. Note that these sizes depend on fuses or software settings done by a bootloader (together with DTCM and OCRAM). The ITCM size has to take the IMXRT_MEMORY_NULL_SIZE into account! +enabled-by: true +format: '{:#010x}' +links: [] +name: IMXRT_MEMORY_ITCM_SIZE type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemnullsz.yml b/spec/build/bsps/arm/imxrt/optmemnullsz.yml index d737ef0e60..029a996203 100644 --- a/spec/build/bsps/arm/imxrt/optmemnullsz.yml +++ b/spec/build/bsps/arm/imxrt/optmemnullsz.yml @@ -1,18 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null build-type: option -default: 0x100 +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: 0x00000100 default-by-variant: [] -enabled-by: true -format: '{:#010x}' -links: [] -name: IMXRT_MEMORY_NULL_SIZE description: | Size of the NULL pointer protection area in bytes. This memory area reduces the size of the ITCM available to the application. If you adapt this, you have to adapt IMXRT_MEMORY_ITCM_SIZE too. +enabled-by: true +format: '{:#010x}' +links: [] +name: IMXRT_MEMORY_NULL_SIZE type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemocramnocachesz.yml b/spec/build/bsps/arm/imxrt/optmemocramnocachesz.yml index 942dd60de2..6b738a2a08 100644 --- a/spec/build/bsps/arm/imxrt/optmemocramnocachesz.yml +++ b/spec/build/bsps/arm/imxrt/optmemocramnocachesz.yml @@ -1,17 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null build-type: option -default: 0 +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +default: 0x00000000 default-by-variant: [] +description: | + Size of the nocache area at the end of the OCRAM in bytes. Must not be bigger + than IMXRT_MEMORY_OCRAM_SIZE. enabled-by: true format: '{:#010x}' links: [] name: IMXRT_MEMORY_OCRAM_NOCACHE_SIZE -description: | - Size of the nocache area at the end of the OCRAM in bytes. Must not be bigger - than IMXRT_MEMORY_OCRAM_SIZE. type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) diff --git a/spec/build/bsps/arm/imxrt/optmemocramsz.yml b/spec/build/bsps/arm/imxrt/optmemocramsz.yml index 9e264f69be..b37b84eb77 100644 --- a/spec/build/bsps/arm/imxrt/optmemocramsz.yml +++ b/spec/build/bsps/arm/imxrt/optmemocramsz.yml @@ -1,19 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null - env-assign: null build-type: option -default: 0x40000 +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +default: 0x00040000 default-by-variant: [] -enabled-by: true -format: '{:#010x}' -links: [] -name: IMXRT_MEMORY_OCRAM_SIZE description: | Size of the OCRAM in bytes. Note that these sizes depend on fuses or software settings done by a bootloader (together with ITCM and DTCM). The size has to be at least big enough to hold the non cached section with size IMXRT_MEMORY_OCRAM_NOCACHE_SIZE at the end of the RAM. +enabled-by: true +format: '{:#010x}' +links: [] +name: IMXRT_MEMORY_OCRAM_SIZE type: build -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) -- cgit v1.2.3