diff options
Diffstat (limited to 'spec/build/bsps/riscv')
50 files changed, 471 insertions, 163 deletions
diff --git a/spec/build/bsps/riscv/griscv/abi.yml b/spec/build/bsps/riscv/griscv/abi.yml index fc915468ae..44a5c0127a 100644 --- a/spec/build/bsps/riscv/griscv/abi.yml +++ b/spec/build/bsps/riscv/griscv/abi.yml @@ -5,31 +5,28 @@ actions: - env-append: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG default: -- -march=rv32imafdc -- -mabi=ilp32d -default-by-variant: -- value: +- enabled-by: riscv/grv32imac + value: - -march=rv32imac - -mabi=ilp32 - variants: - - riscv/grv32imac -- value: +- enabled-by: riscv/grv32im + value: - -march=rv32im - -mabi=ilp32 - variants: - - riscv/grv32im -- value: +- enabled-by: riscv/grv32i + value: - -march=rv32i - -mabi=ilp32 - variants: - - riscv/grv32i -- value: +- enabled-by: riscv/griscv + value: - -march=rv32imafd - -mabi=ilp32d - variants: - - riscv/griscv +- enabled-by: true + value: + - -march=rv32imafdc + - -mabi=ilp32d description: | ABI flags enabled-by: true diff --git a/spec/build/bsps/riscv/griscv/bspgriscv.yml b/spec/build/bsps/riscv/griscv/bspgriscv.yml index 1992d096de..f57884ecf6 100644 --- a/spec/build/bsps/riscv/griscv/bspgriscv.yml +++ b/spec/build/bsps/riscv/griscv/bspgriscv.yml @@ -4,7 +4,7 @@ bsp: griscv build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: griscv diff --git a/spec/build/bsps/riscv/griscv/bspgrv32i.yml b/spec/build/bsps/riscv/griscv/bspgrv32i.yml index 4f130b6cc7..154113a492 100644 --- a/spec/build/bsps/riscv/griscv/bspgrv32i.yml +++ b/spec/build/bsps/riscv/griscv/bspgrv32i.yml @@ -4,7 +4,7 @@ bsp: grv32i build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: griscv diff --git a/spec/build/bsps/riscv/griscv/bspgrv32im.yml b/spec/build/bsps/riscv/griscv/bspgrv32im.yml index ed17f1ae11..2be6c589f2 100644 --- a/spec/build/bsps/riscv/griscv/bspgrv32im.yml +++ b/spec/build/bsps/riscv/griscv/bspgrv32im.yml @@ -4,7 +4,7 @@ bsp: grv32im build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: griscv diff --git a/spec/build/bsps/riscv/griscv/bspgrv32imac.yml b/spec/build/bsps/riscv/griscv/bspgrv32imac.yml index 32c4807b57..37f80e3fb7 100644 --- a/spec/build/bsps/riscv/griscv/bspgrv32imac.yml +++ b/spec/build/bsps/riscv/griscv/bspgrv32imac.yml @@ -4,7 +4,7 @@ bsp: grv32imac build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: griscv diff --git a/spec/build/bsps/riscv/griscv/bspgrv32imafdc.yml b/spec/build/bsps/riscv/griscv/bspgrv32imafdc.yml index 1448e19869..0546577f17 100644 --- a/spec/build/bsps/riscv/griscv/bspgrv32imafdc.yml +++ b/spec/build/bsps/riscv/griscv/bspgrv32imafdc.yml @@ -4,7 +4,7 @@ bsp: grv32imafdc build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: griscv diff --git a/spec/build/bsps/riscv/griscv/grp.yml b/spec/build/bsps/riscv/griscv/grp.yml index 1945d984f5..0b4504f624 100644 --- a/spec/build/bsps/riscv/griscv/grp.yml +++ b/spec/build/bsps/riscv/griscv/grp.yml @@ -1,7 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: [] @@ -26,7 +29,9 @@ links: - role: build-dependency uid: objsmp - role: build-dependency - uid: optextirqmax + uid: ../../objmem +- role: build-dependency + uid: ../optextirqmax - role: build-dependency uid: ../grp - role: build-dependency diff --git a/spec/build/bsps/riscv/griscv/obj.yml b/spec/build/bsps/riscv/griscv/obj.yml index 5ecb0ed6a5..275aa09256 100644 --- a/spec/build/bsps/riscv/griscv/obj.yml +++ b/spec/build/bsps/riscv/griscv/obj.yml @@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: objects cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] cxxflags: [] enabled-by: true @@ -12,7 +12,6 @@ install: source: - bsps/riscv/griscv/include/amba.h - bsps/riscv/griscv/include/bsp.h - - bsps/riscv/griscv/include/tm27.h - destination: ${BSP_INCLUDEDIR}/bsp source: - bsps/riscv/griscv/include/bsp/irq.h @@ -26,12 +25,11 @@ source: - bsps/riscv/griscv/start/bsp_fatal_halt.c - bsps/riscv/griscv/start/bspstart.c - bsps/shared/cache/nocache.c -- bsps/shared/dev/btimer/btimer-stub.c +- bsps/shared/dev/btimer/btimer-cpucounter.c - bsps/shared/dev/getentropy/getentropy-cpucounter.c - bsps/shared/dev/serial/console-termios.c - bsps/shared/irq/irq-default-handler.c - bsps/shared/start/bspfatal-default.c -- bsps/shared/start/bspgetworkarea-default.c - bsps/shared/start/bspreset-empty.c - bsps/shared/start/gettargethash-default.c type: build diff --git a/spec/build/bsps/riscv/griscv/objsmp.yml b/spec/build/bsps/riscv/griscv/objsmp.yml index 83f5bb7f31..27fbb8966b 100644 --- a/spec/build/bsps/riscv/griscv/objsmp.yml +++ b/spec/build/bsps/riscv/griscv/objsmp.yml @@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: objects cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] cxxflags: [] enabled-by: diff --git a/spec/build/bsps/riscv/grp.yml b/spec/build/bsps/riscv/grp.yml index 7dad3970c5..ac7027a44d 100644 --- a/spec/build/bsps/riscv/grp.yml +++ b/spec/build/bsps/riscv/grp.yml @@ -1,7 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: diff --git a/spec/build/bsps/riscv/linkcmds.yml b/spec/build/bsps/riscv/linkcmds.yml index ed536b3c5d..25588ac566 100644 --- a/spec/build/bsps/riscv/linkcmds.yml +++ b/spec/build/bsps/riscv/linkcmds.yml @@ -21,7 +21,7 @@ content: | INCLUDE linkcmds.base copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG enabled-by: true install-path: ${BSP_LIBDIR} links: [] diff --git a/spec/build/bsps/riscv/linkcmdsbase.yml b/spec/build/bsps/riscv/linkcmdsbase.yml index e637049280..b45661c3bb 100644 --- a/spec/build/bsps/riscv/linkcmdsbase.yml +++ b/spec/build/bsps/riscv/linkcmdsbase.yml @@ -7,7 +7,7 @@ content: | notice and this notice are preserved. */ /* - * Copyright (c) 2018 embedded brains GmbH. + * Copyright (c) 2018 embedded brains GmbH & Co. KG * * Copyright (c) 2015 University of York. * Hesham ALMatary <hmka501@york.ac.uk> @@ -319,7 +319,7 @@ content: | .noinit (NOLOAD) : ${LINKCMDS_ALIGN_DIRECTIVE} { bsp_section_noinit_begin = .; - *(.noinit*) + *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*))) bsp_section_noinit_end = .; } > REGION_WORK AT > REGION_WORK bsp_section_noinit_size = bsp_section_noinit_end - bsp_section_noinit_begin; @@ -387,7 +387,7 @@ content: | .debug_rnglists 0 : { *(.debug_rnglists) } .debug_str_offsets 0 : { *(.debug_str_offsets) } .debug_sup 0 : { *(.debug_sup) } - .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) } + .riscv.attributes 0 : { KEEP (*(.riscv.attributes)) KEEP (*(.gnu.attributes)) } /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) } .shstrtab 0 : { *(.shstrtab) } .strtab 0 : { *(.strtab) } @@ -406,7 +406,7 @@ content: | .unexpected_sections : { *(*) } > UNEXPECTED_SECTIONS } copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG enabled-by: true install-path: ${BSP_LIBDIR} links: [] diff --git a/spec/build/bsps/riscv/noel/abi.yml b/spec/build/bsps/riscv/noel/abi.yml new file mode 100644 index 0000000000..c249506e7a --- /dev/null +++ b/spec/build/bsps/riscv/noel/abi.yml @@ -0,0 +1,47 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-string: null +- split: null +- env-append: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: riscv/noel64imafdc + value: + - -march=rv64imafdc + - -mabi=lp64d + - -mcmodel=medany +- enabled-by: riscv/noel64imafd + value: + - -march=rv64imafd + - -mabi=lp64d + - -mcmodel=medany +- enabled-by: riscv/noel64imac + value: + - -march=rv64imac + - -mabi=lp64 + - -mcmodel=medany +- enabled-by: [] + value: + - -march=rv64im + - -mabi=lp64 + - -mcmodel=medany +- enabled-by: riscv/noel32imafd + value: + - -march=rv32imafd + - -mabi=ilp32d +- enabled-by: riscv/noel32im + value: + - -march=rv32im + - -mabi=ilp32 +- enabled-by: true + value: + - -march=rv32ima + - -mabi=ilp32 +description: | + ABI flags +enabled-by: true +links: [] +name: ABI_FLAGS +type: build diff --git a/spec/build/bsps/riscv/riscv/bsprv64imafdcmedany.yml b/spec/build/bsps/riscv/noel/bspnoel32im.yml index e4ecd4736a..4741cadf56 100644 --- a/spec/build/bsps/riscv/riscv/bsprv64imafdcmedany.yml +++ b/spec/build/bsps/riscv/noel/bspnoel32im.yml @@ -1,13 +1,13 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause arch: riscv -bsp: rv64imafdc_medany +bsp: noel32im build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true -family: riscv +family: noel includes: [] install: [] links: diff --git a/spec/build/bsps/riscv/noel/bspnoel32imafd.yml b/spec/build/bsps/riscv/noel/bspnoel32imafd.yml new file mode 100644 index 0000000000..98b7c23472 --- /dev/null +++ b/spec/build/bsps/riscv/noel/bspnoel32imafd.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: riscv +bsp: noel32imafd +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +cppflags: [] +enabled-by: true +family: noel +includes: [] +install: [] +links: +- role: build-dependency + uid: ../../opto2 +- role: build-dependency + uid: grp +source: [] +type: build diff --git a/spec/build/bsps/riscv/noel/bspnoel64imac.yml b/spec/build/bsps/riscv/noel/bspnoel64imac.yml new file mode 100644 index 0000000000..f6b6a40a05 --- /dev/null +++ b/spec/build/bsps/riscv/noel/bspnoel64imac.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: riscv +bsp: noel64imac +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +cppflags: [] +enabled-by: true +family: noel +includes: [] +install: [] +links: +- role: build-dependency + uid: ../../opto2 +- role: build-dependency + uid: grp +source: [] +type: build diff --git a/spec/build/bsps/riscv/noel/bspnoel64imafd.yml b/spec/build/bsps/riscv/noel/bspnoel64imafd.yml new file mode 100644 index 0000000000..243450c50c --- /dev/null +++ b/spec/build/bsps/riscv/noel/bspnoel64imafd.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: riscv +bsp: noel64imafd +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +cppflags: [] +enabled-by: true +family: noel +includes: [] +install: [] +links: +- role: build-dependency + uid: ../../opto2 +- role: build-dependency + uid: grp +source: [] +type: build diff --git a/spec/build/bsps/riscv/noel/bspnoel64imafdc.yml b/spec/build/bsps/riscv/noel/bspnoel64imafdc.yml new file mode 100644 index 0000000000..1b332f1f84 --- /dev/null +++ b/spec/build/bsps/riscv/noel/bspnoel64imafdc.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +arch: riscv +bsp: noel64imafdc +build-type: bsp +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +cppflags: [] +enabled-by: true +family: noel +includes: [] +install: [] +links: +- role: build-dependency + uid: ../../opto2 +- role: build-dependency + uid: grp +source: [] +type: build diff --git a/spec/build/bsps/riscv/noel/grp.yml b/spec/build/bsps/riscv/noel/grp.yml new file mode 100644 index 0000000000..46fef5a73b --- /dev/null +++ b/spec/build/bsps/riscv/noel/grp.yml @@ -0,0 +1,61 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: group +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +cppflags: [] +cxxflags: [] +enabled-by: true +includes: [] +install: [] +ldflags: [] +links: +- role: build-dependency + uid: ../../obj +- role: build-dependency + uid: ../../objirq +- role: build-dependency + uid: ../../optclang +- role: build-dependency + uid: ../../optconsolebaud +- role: build-dependency + uid: ../../optgcc +- role: build-dependency + uid: ../grp +- role: build-dependency + uid: ../optrambegin +- role: build-dependency + uid: ../optramsize +- role: build-dependency + uid: abi +- role: build-dependency + uid: obj +- role: build-dependency + uid: objsmp +- role: build-dependency + uid: ../../objmem +- role: build-dependency + uid: ../optextirqmax +- role: build-dependency + uid: ../../optfdtcpyro +- role: build-dependency + uid: ../../optfdtmxsz +- role: build-dependency + uid: ../../optfdtro +- role: build-dependency + uid: ../../optfdtuboot +- role: build-dependency + uid: ../../optconsoleirq +- role: build-dependency + uid: ../linkcmds +- role: build-dependency + uid: ../linkcmdsbase +- role: build-dependency + uid: ../start +- role: build-dependency + uid: ../../bspopts +- role: build-dependency + uid: optapbuartmax +type: build +use-after: [] +use-before: [] diff --git a/spec/build/bsps/riscv/noel/obj.yml b/spec/build/bsps/riscv/noel/obj.yml new file mode 100644 index 0000000000..0d91856741 --- /dev/null +++ b/spec/build/bsps/riscv/noel/obj.yml @@ -0,0 +1,38 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +cppflags: [] +cxxflags: [] +enabled-by: true +includes: [] +install: +- destination: ${BSP_INCLUDEDIR} + source: + - bsps/riscv/noel/include/bsp.h + - bsps/riscv/noel/include/tm27.h +- destination: ${BSP_INCLUDEDIR}/bsp + source: + - bsps/riscv/noel/include/bsp/irq.h + - bsps/riscv/noel/include/bsp/riscv.h +links: [] +source: +- bsps/riscv/riscv/clock/clockdrv.c +- bsps/riscv/noel/console/console-config.c +- bsps/riscv/riscv/irq/irq.c +- bsps/riscv/noel/start/bsp_fatal_halt.c +- bsps/riscv/riscv/start/bspstart.c +- bsps/riscv/shared/start/bspgetworkarea.c +- bsps/shared/cache/nocache.c +- bsps/shared/dev/btimer/btimer-cpucounter.c +- bsps/shared/dev/getentropy/getentropy-cpucounter.c +- bsps/shared/dev/serial/console-termios.c +- bsps/shared/irq/irq-default-handler.c +- bsps/shared/start/bsp-fdt.c +- bsps/shared/start/bspfatal-default.c +- bsps/shared/start/bspreset-empty.c +- bsps/shared/start/gettargethash-default.c +- bsps/shared/grlib/uart/apbuart_polled.c +- bsps/shared/grlib/uart/apbuart_termios.c +type: build diff --git a/spec/build/bsps/riscv/noel/objsmp.yml b/spec/build/bsps/riscv/noel/objsmp.yml new file mode 100644 index 0000000000..5022525b72 --- /dev/null +++ b/spec/build/bsps/riscv/noel/objsmp.yml @@ -0,0 +1,15 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +cppflags: [] +cxxflags: [] +enabled-by: +- RTEMS_SMP +includes: [] +install: [] +links: [] +source: +- bsps/riscv/riscv/start/bspsmp.c +type: build diff --git a/spec/build/bsps/riscv/noel/optapbuartmax.yml b/spec/build/bsps/riscv/noel/optapbuartmax.yml new file mode 100644 index 0000000000..fd6fef8a46 --- /dev/null +++ b/spec/build/bsps/riscv/noel/optapbuartmax.yml @@ -0,0 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2022 Cobham Gaisler AB +default: +- enabled-by: true + value: 2 +description: | + maximum number of APBUART devices supported by the console driver (2 by default) +enabled-by: true +format: '{}' +links: [] +name: RISCV_CONSOLE_MAX_APBUART_DEVICES +type: build diff --git a/spec/build/bsps/riscv/griscv/optextirqmax.yml b/spec/build/bsps/riscv/optextirqmax.yml index ffa84748b6..5a0fc9a766 100644 --- a/spec/build/bsps/riscv/griscv/optextirqmax.yml +++ b/spec/build/bsps/riscv/optextirqmax.yml @@ -4,11 +4,14 @@ actions: - define: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: 64 -default-by-variant: [] +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: riscv/mpfs64imafdc + value: 187 +- enabled-by: true + value: 128 description: | - maximum number of external interrupts supported by the BSP (default 64) + maximum number of external interrupts supported by the BSP (default 128) enabled-by: true format: '{}' links: [] diff --git a/spec/build/bsps/riscv/optrambegin.yml b/spec/build/bsps/riscv/optrambegin.yml index 2073926dac..3c42908d19 100644 --- a/spec/build/bsps/riscv/optrambegin.yml +++ b/spec/build/bsps/riscv/optrambegin.yml @@ -1,24 +1,27 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null -- assert-uint32: null +- assert-uint64: null - assert-aligned: 1048576 - env-assign: null - format-and-define: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: 2147483648 -default-by-variant: -- value: 2147483648 - variants: - - riscv/rv64.*medany -- value: 1879048192 - variants: - - riscv/rv64.* -- value: 1073741824 - variants: - - riscv/griscv +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: + - riscv/noel32im + - riscv/noel32imafd + - riscv/noel64imac + - riscv/noel64imafd + - riscv/noel64imafdc + value: 0x00000000 +- enabled-by: riscv/griscv + value: 0x40000000 +- enabled-by: riscv/mpfs64imafdc + value: 0x1000000000 +- enabled-by: true + value: 0x80000000 description: '' enabled-by: true format: '{:#010x}' diff --git a/spec/build/bsps/riscv/optramsize.yml b/spec/build/bsps/riscv/optramsize.yml index cd58dbd504..876a447087 100644 --- a/spec/build/bsps/riscv/optramsize.yml +++ b/spec/build/bsps/riscv/optramsize.yml @@ -1,21 +1,24 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause actions: - get-integer: null -- assert-uint32: null +- assert-uint64: null - assert-aligned: 1048576 - env-assign: null - format-and-define: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: 67108864 -default-by-variant: -- value: 268435456 - variants: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: - riscv/frdme310arty -- value: 16777216 - variants: - - riscv/griscv + - riscv/mpfs64imafdc + value: 0x10000000 +- enabled-by: riscv/griscv + value: 0x01000000 +- enabled-by: riscv/kendrytek210 + value: 0x00600000 +- enabled-by: true + value: 0x04000000 description: '' enabled-by: true format: '{:#010x}' diff --git a/spec/build/bsps/riscv/riscv/abi.yml b/spec/build/bsps/riscv/riscv/abi.yml index e975b87c4c..bca6512f20 100644 --- a/spec/build/bsps/riscv/riscv/abi.yml +++ b/spec/build/bsps/riscv/riscv/abi.yml @@ -5,72 +5,54 @@ actions: - env-append: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG default: -- -march=rv32imac -- -mabi=ilp32 -default-by-variant: -- value: +- enabled-by: + - riscv/mpfs64imafdc + - riscv/rv64imafdc + - riscv/kendrytek210 + value: - -march=rv64imafdc - -mabi=lp64d - -mcmodel=medany - variants: - - riscv/rv64imafdc_medany -- value: - - -march=rv64imafdc - - -mabi=lp64d - variants: - - riscv/rv64imafdc -- value: +- enabled-by: + - riscv/rv64imafd + - riscv/rv64imafd + value: - -march=rv64imafd - -mabi=lp64d - -mcmodel=medany - variants: - - riscv/rv64imafd_medany -- value: - - -march=rv64imafd - - -mabi=lp64d - variants: - - riscv/rv64imafd -- value: +- enabled-by: riscv/rv64imac + value: - -march=rv64imac - -mabi=lp64 - -mcmodel=medany - variants: - - riscv/rv64imac_medany -- value: - - -march=rv64imac - - -mabi=lp64 - variants: - - riscv/rv64imac -- value: [] - variants: - - riscv/rv32imafdc -- value: +- enabled-by: riscv/rv32imafdc + value: [] +- enabled-by: riscv/rv32imafd + value: - -march=rv32imafd - -mabi=ilp32d - variants: - - riscv/rv32imafd -- value: +- enabled-by: riscv/rv32imafc + value: - -march=rv32imafc - -mabi=ilp32f - variants: - - riscv/rv32imafc -- value: +- enabled-by: riscv/rv32im + value: - -march=rv32im - -mabi=ilp32 - variants: - - riscv/rv32im -- value: +- enabled-by: riscv/rv32iac + value: - -march=rv32iac - -mabi=ilp32 - variants: - - riscv/rv32iac -- value: +- enabled-by: riscv/rv32i + value: - -march=rv32i - -mabi=ilp32 - variants: - - riscv/rv32i +- enabled-by: true + value: + - -march=rv32imac + - -mabi=ilp32 description: | ABI flags enabled-by: true diff --git a/spec/build/bsps/riscv/riscv/bspfrdme310arty.yml b/spec/build/bsps/riscv/riscv/bspfrdme310arty.yml index a13b12dc3c..26c3b97dac 100644 --- a/spec/build/bsps/riscv/riscv/bspfrdme310arty.yml +++ b/spec/build/bsps/riscv/riscv/bspfrdme310arty.yml @@ -4,7 +4,7 @@ bsp: frdme310arty build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv64imacmedany.yml b/spec/build/bsps/riscv/riscv/bspkendrtyek210.yml index c0db3e0720..91c601979e 100644 --- a/spec/build/bsps/riscv/riscv/bsprv64imacmedany.yml +++ b/spec/build/bsps/riscv/riscv/bspkendrtyek210.yml @@ -1,10 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause arch: riscv -bsp: rv64imac_medany +bsp: kendrytek210 build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2022 Alan Cudmore cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv64imafdmedany.yml b/spec/build/bsps/riscv/riscv/bspmpfs64imafdc.yml index 9e01572c70..4e0e7d227e 100644 --- a/spec/build/bsps/riscv/riscv/bsprv64imafdmedany.yml +++ b/spec/build/bsps/riscv/riscv/bspmpfs64imafdc.yml @@ -1,10 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause arch: riscv -bsp: rv64imafd_medany +bsp: mpfs64imafdc build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv32i.yml b/spec/build/bsps/riscv/riscv/bsprv32i.yml index 168839eb31..8c35a4abaa 100644 --- a/spec/build/bsps/riscv/riscv/bsprv32i.yml +++ b/spec/build/bsps/riscv/riscv/bsprv32i.yml @@ -4,7 +4,7 @@ bsp: rv32i build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv32iac.yml b/spec/build/bsps/riscv/riscv/bsprv32iac.yml index ce226c6344..7468984cc9 100644 --- a/spec/build/bsps/riscv/riscv/bsprv32iac.yml +++ b/spec/build/bsps/riscv/riscv/bsprv32iac.yml @@ -4,7 +4,7 @@ bsp: rv32iac build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv32im.yml b/spec/build/bsps/riscv/riscv/bsprv32im.yml index a6c77b421b..a7dab33e94 100644 --- a/spec/build/bsps/riscv/riscv/bsprv32im.yml +++ b/spec/build/bsps/riscv/riscv/bsprv32im.yml @@ -4,7 +4,7 @@ bsp: rv32im build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv32imac.yml b/spec/build/bsps/riscv/riscv/bsprv32imac.yml index 25b9a4d00f..b9a684ba44 100644 --- a/spec/build/bsps/riscv/riscv/bsprv32imac.yml +++ b/spec/build/bsps/riscv/riscv/bsprv32imac.yml @@ -4,7 +4,7 @@ bsp: rv32imac build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv32imafc.yml b/spec/build/bsps/riscv/riscv/bsprv32imafc.yml index fa8ce6a1d1..fd8456afba 100644 --- a/spec/build/bsps/riscv/riscv/bsprv32imafc.yml +++ b/spec/build/bsps/riscv/riscv/bsprv32imafc.yml @@ -4,7 +4,7 @@ bsp: rv32imafc build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv32imafd.yml b/spec/build/bsps/riscv/riscv/bsprv32imafd.yml index 5ac45fdd2c..19d9d72144 100644 --- a/spec/build/bsps/riscv/riscv/bsprv32imafd.yml +++ b/spec/build/bsps/riscv/riscv/bsprv32imafd.yml @@ -4,7 +4,7 @@ bsp: rv32imafd build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv32imafdc.yml b/spec/build/bsps/riscv/riscv/bsprv32imafdc.yml index 104a7a1391..d6e2a0bb98 100644 --- a/spec/build/bsps/riscv/riscv/bsprv32imafdc.yml +++ b/spec/build/bsps/riscv/riscv/bsprv32imafdc.yml @@ -4,7 +4,7 @@ bsp: rv32imafdc build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv64imac.yml b/spec/build/bsps/riscv/riscv/bsprv64imac.yml index 99dab47754..7c539e18dd 100644 --- a/spec/build/bsps/riscv/riscv/bsprv64imac.yml +++ b/spec/build/bsps/riscv/riscv/bsprv64imac.yml @@ -4,7 +4,7 @@ bsp: rv64imac build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv64imafd.yml b/spec/build/bsps/riscv/riscv/bsprv64imafd.yml index 730a76a41d..23fd0ae350 100644 --- a/spec/build/bsps/riscv/riscv/bsprv64imafd.yml +++ b/spec/build/bsps/riscv/riscv/bsprv64imafd.yml @@ -4,7 +4,7 @@ bsp: rv64imafd build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/bsprv64imafdc.yml b/spec/build/bsps/riscv/riscv/bsprv64imafdc.yml index 32a0837941..017cad67fa 100644 --- a/spec/build/bsps/riscv/riscv/bsprv64imafdc.yml +++ b/spec/build/bsps/riscv/riscv/bsprv64imafdc.yml @@ -4,7 +4,7 @@ bsp: rv64imafdc build-type: bsp cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true family: riscv diff --git a/spec/build/bsps/riscv/riscv/grp.yml b/spec/build/bsps/riscv/riscv/grp.yml index 77583d351e..43f3a91bee 100644 --- a/spec/build/bsps/riscv/riscv/grp.yml +++ b/spec/build/bsps/riscv/riscv/grp.yml @@ -1,7 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: group +cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG +cppflags: [] +cxxflags: [] enabled-by: true includes: [] install: [] @@ -18,6 +21,8 @@ links: - role: build-dependency uid: ../../optgcc - role: build-dependency + uid: ../optextirqmax +- role: build-dependency uid: ../grp - role: build-dependency uid: ../optrambegin @@ -30,7 +35,7 @@ links: - role: build-dependency uid: objsmp - role: build-dependency - uid: optextirqmax + uid: ../../objmem - role: build-dependency uid: ../../optfdtcpyro - role: build-dependency @@ -40,10 +45,20 @@ links: - role: build-dependency uid: ../../optfdtuboot - role: build-dependency + uid: ../../optdtb +- role: build-dependency + uid: ../../optdtbheaderpath +- role: build-dependency uid: optfrdme310arty - role: build-dependency + uid: optkendrytek210 +- role: build-dependency uid: opthtif - role: build-dependency + uid: optmpfs +- role: build-dependency + uid: optsifiveuart +- role: build-dependency uid: optns16550max - role: build-dependency uid: ../linkcmds diff --git a/spec/build/bsps/riscv/riscv/obj.yml b/spec/build/bsps/riscv/riscv/obj.yml index 2f1ac8051c..b9ad7e95a9 100644 --- a/spec/build/bsps/riscv/riscv/obj.yml +++ b/spec/build/bsps/riscv/riscv/obj.yml @@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: objects cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] cxxflags: [] enabled-by: true @@ -11,12 +11,12 @@ install: - destination: ${BSP_INCLUDEDIR} source: - bsps/riscv/riscv/include/bsp.h - - bsps/riscv/riscv/include/tm27.h - destination: ${BSP_INCLUDEDIR}/bsp source: - bsps/riscv/riscv/include/bsp/fe310-uart.h - bsps/riscv/riscv/include/bsp/irq.h - bsps/riscv/riscv/include/bsp/riscv.h + - bsps/riscv/riscv/include/bsp/k210.h - destination: ${BSP_INCLUDEDIR}/dev/serial source: - bsps/riscv/riscv/include/dev/serial/htif.h @@ -29,6 +29,7 @@ source: - bsps/riscv/riscv/irq/irq.c - bsps/riscv/riscv/start/bsp_fatal_halt.c - bsps/riscv/riscv/start/bspstart.c +- bsps/riscv/shared/start/bspgetworkarea.c - bsps/shared/cache/nocache.c - bsps/shared/dev/btimer/btimer-cpucounter.c - bsps/shared/dev/getentropy/getentropy-cpucounter.c @@ -36,7 +37,6 @@ source: - bsps/shared/irq/irq-default-handler.c - bsps/shared/start/bsp-fdt.c - bsps/shared/start/bspfatal-default.c -- bsps/shared/start/bspgetworkarea-default.c - bsps/shared/start/bspreset-empty.c - bsps/shared/start/gettargethash-default.c type: build diff --git a/spec/build/bsps/riscv/riscv/objsmp.yml b/spec/build/bsps/riscv/riscv/objsmp.yml index 46369f977e..5022525b72 100644 --- a/spec/build/bsps/riscv/riscv/objsmp.yml +++ b/spec/build/bsps/riscv/riscv/objsmp.yml @@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: objects cflags: [] copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] cxxflags: [] enabled-by: diff --git a/spec/build/bsps/riscv/riscv/optextirqmax.yml b/spec/build/bsps/riscv/riscv/optextirqmax.yml deleted file mode 100644 index ffa84748b6..0000000000 --- a/spec/build/bsps/riscv/riscv/optextirqmax.yml +++ /dev/null @@ -1,16 +0,0 @@ -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: -- get-integer: null -- define: null -build-type: option -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: 64 -default-by-variant: [] -description: | - maximum number of external interrupts supported by the BSP (default 64) -enabled-by: true -format: '{}' -links: [] -name: RISCV_MAXIMUM_EXTERNAL_INTERRUPTS -type: build diff --git a/spec/build/bsps/riscv/riscv/optfrdme310arty.yml b/spec/build/bsps/riscv/riscv/optfrdme310arty.yml index 0623694cca..7447fdf8d7 100644 --- a/spec/build/bsps/riscv/riscv/optfrdme310arty.yml +++ b/spec/build/bsps/riscv/riscv/optfrdme310arty.yml @@ -4,12 +4,12 @@ actions: - define-condition: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: false -default-by-variant: -- value: true - variants: - - riscv/frdme310arty.* +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: riscv/frdme310arty + value: true +- enabled-by: true + value: false description: | enables support sifive Freedom E310 Arty board if defined to a non-zero value,otherwise it is disabled (disabled by default) enabled-by: true diff --git a/spec/build/bsps/riscv/riscv/opthtif.yml b/spec/build/bsps/riscv/riscv/opthtif.yml index 9161716869..bf28568fb8 100644 --- a/spec/build/bsps/riscv/riscv/opthtif.yml +++ b/spec/build/bsps/riscv/riscv/opthtif.yml @@ -4,11 +4,12 @@ actions: - define-condition: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: false -default-by-variant: [] +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: true + value: true description: | - enables the HTIF support if defined to a non-zero value, otherwise it is disabled (disabled by default) + Enable the Host/Target Interface (HTIF) support. enabled-by: true links: [] name: RISCV_ENABLE_HTIF_SUPPORT diff --git a/spec/build/bsps/riscv/riscv/optkendrytek210.yml b/spec/build/bsps/riscv/riscv/optkendrytek210.yml new file mode 100644 index 0000000000..09848cf6e7 --- /dev/null +++ b/spec/build/bsps/riscv/riscv/optkendrytek210.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2022 Alan Cudmore +default: +- enabled-by: riscv/kendrytek210 + value: true +- enabled-by: true + value: false +description: | + enables support for the Kendryte K210 System on Chip if defined to a non-zero value, otherwise it is disabled (disabled by default) +enabled-by: true +links: [] +name: RISCV_ENABLE_KENDRYTE_K210_SUPPORT +type: build diff --git a/spec/build/bsps/riscv/riscv/optmpfs.yml b/spec/build/bsps/riscv/riscv/optmpfs.yml new file mode 100644 index 0000000000..b22d644e82 --- /dev/null +++ b/spec/build/bsps/riscv/riscv/optmpfs.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: riscv/mpfs64imafdc + value: true +- enabled-by: true + value: false +description: | + enables support Microchip PolarFire SoC if defined to a non-zero value,otherwise it is disabled (disabled by default) +enabled-by: true +links: [] +name: RISCV_ENABLE_MPFS_SUPPORT +type: build diff --git a/spec/build/bsps/riscv/riscv/optns16550max.yml b/spec/build/bsps/riscv/riscv/optns16550max.yml index 7e385a57b7..a610fedefb 100644 --- a/spec/build/bsps/riscv/riscv/optns16550max.yml +++ b/spec/build/bsps/riscv/riscv/optns16550max.yml @@ -4,12 +4,16 @@ actions: - define: null build-type: option copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -default: 2 -default-by-variant: -- value: null - variants: - - riscv/frdme310arty.* +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: + - riscv/frdme310arty + - riscv/kendrytek210 + value: null +- enabled-by: riscv/mpfs64imafdc + value: 1 +- enabled-by: true + value: 2 description: | maximum number of NS16550 devices supported by the console driver (2 by default) enabled-by: true diff --git a/spec/build/bsps/riscv/riscv/optsifiveuart.yml b/spec/build/bsps/riscv/riscv/optsifiveuart.yml new file mode 100644 index 0000000000..8ff27d0275 --- /dev/null +++ b/spec/build/bsps/riscv/riscv/optsifiveuart.yml @@ -0,0 +1,20 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH & Co. KG +default: +- enabled-by: + - riscv/kendrytek210 + - riscv/frdme310arty + value: true +- enabled-by: true + value: false +description: | + enables support Sifive UART if defined to a non-zero value, otherwise it is disabled (disabled by default) +enabled-by: true +links: [] +name: RISCV_ENABLE_SIFIVE_UART_SUPPORT +type: build diff --git a/spec/build/bsps/riscv/start.yml b/spec/build/bsps/riscv/start.yml index 3b27ba1169..886a92b064 100644 --- a/spec/build/bsps/riscv/start.yml +++ b/spec/build/bsps/riscv/start.yml @@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause asflags: [] build-type: start-file copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +- Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] enabled-by: true includes: [] |