[PATCH 4/4] bsp/riscv: Add NOEL-V BSP build specification

Daniel Hellstrom daniel at gaisler.com
Mon Feb 8 19:44:15 UTC 2021


From: Martin Aberg <maberg at gaisler.com>

---
 spec/build/bsps/riscv/noel/abi.yml             | 48 ++++++++++++++++++++++
 spec/build/bsps/riscv/noel/bspnoel32im.yml     | 19 +++++++++
 spec/build/bsps/riscv/noel/bspnoel32imafd.yml  | 19 +++++++++
 spec/build/bsps/riscv/noel/bspnoel64imac.yml   | 19 +++++++++
 spec/build/bsps/riscv/noel/bspnoel64imafd.yml  | 19 +++++++++
 spec/build/bsps/riscv/noel/bspnoel64imafdc.yml | 19 +++++++++
 spec/build/bsps/riscv/noel/grp.yml             | 56 ++++++++++++++++++++++++++
 spec/build/bsps/riscv/noel/obj.yml             | 37 +++++++++++++++++
 spec/build/bsps/riscv/noel/objsmp.yml          | 15 +++++++
 spec/build/bsps/riscv/noel/optconirq.yml       | 16 ++++++++
 spec/build/bsps/riscv/noel/optextirqmax.yml    | 16 ++++++++
 spec/build/bsps/riscv/noel/optfdtcpyro.yml     | 15 +++++++
 spec/build/bsps/riscv/noel/optfdtmxsz.yml      | 16 ++++++++
 spec/build/bsps/riscv/noel/optfdtro.yml        | 15 +++++++
 spec/build/bsps/riscv/noel/optfdtuboot.yml     | 15 +++++++
 spec/build/bsps/riscv/noel/opthtif.yml         | 15 +++++++
 spec/build/bsps/riscv/optrambegin.yml          |  3 ++
 spec/build/cpukit/optarchbits.yml              |  2 +
 spec/build/cpukit/optnet.yml                   |  1 +
 spec/build/cpukit/optsmp.yml                   |  4 ++
 20 files changed, 369 insertions(+)
 create mode 100644 spec/build/bsps/riscv/noel/abi.yml
 create mode 100644 spec/build/bsps/riscv/noel/bspnoel32im.yml
 create mode 100644 spec/build/bsps/riscv/noel/bspnoel32imafd.yml
 create mode 100644 spec/build/bsps/riscv/noel/bspnoel64imac.yml
 create mode 100644 spec/build/bsps/riscv/noel/bspnoel64imafd.yml
 create mode 100644 spec/build/bsps/riscv/noel/bspnoel64imafdc.yml
 create mode 100644 spec/build/bsps/riscv/noel/grp.yml
 create mode 100644 spec/build/bsps/riscv/noel/obj.yml
 create mode 100644 spec/build/bsps/riscv/noel/objsmp.yml
 create mode 100644 spec/build/bsps/riscv/noel/optconirq.yml
 create mode 100644 spec/build/bsps/riscv/noel/optextirqmax.yml
 create mode 100644 spec/build/bsps/riscv/noel/optfdtcpyro.yml
 create mode 100644 spec/build/bsps/riscv/noel/optfdtmxsz.yml
 create mode 100644 spec/build/bsps/riscv/noel/optfdtro.yml
 create mode 100644 spec/build/bsps/riscv/noel/optfdtuboot.yml
 create mode 100644 spec/build/bsps/riscv/noel/opthtif.yml

diff --git a/spec/build/bsps/riscv/noel/abi.yml b/spec/build/bsps/riscv/noel/abi.yml
new file mode 100644
index 0000000..f81e0c1
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/abi.yml
@@ -0,0 +1,48 @@
+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 (http://www.embedded-brains.de)
+default:
+- -march=rv32ima
+- -mabi=ilp32
+default-by-variant:
+- value:
+  - -march=rv64imafdc
+  - -mabi=lp64d
+  variants:
+  - riscv/noel64imafdc
+- value:
+  - -march=rv64imafd
+  - -mabi=lp64d
+  variants:
+  - riscv/noel64imafd
+- value:
+  - -march=rv64imac
+  - -mabi=lp64
+  variants:
+  - riscv/noel64imac
+- value:
+  - -march=rv64im
+  - -mabi=lp64
+  variants:
+  - riscv/noel64im
+- value:
+  - -march=rv32imafd
+  - -mabi=ilp32d
+  variants:
+  - riscv/noel32imafd
+- value:
+  - -march=rv32im
+  - -mabi=ilp32
+  variants:
+  - riscv/noel32im
+description: |
+  ABI flags
+enabled-by: true
+links: []
+name: ABI_FLAGS
+type: build
diff --git a/spec/build/bsps/riscv/noel/bspnoel32im.yml b/spec/build/bsps/riscv/noel/bspnoel32im.yml
new file mode 100644
index 0000000..bcb27a5
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/bspnoel32im.yml
@@ -0,0 +1,19 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: riscv
+bsp: noel32im
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: riscv
+includes: []
+install: []
+links:
+- role: build-dependency
+  uid: ../../opto2
+- role: build-dependency
+  uid: grp
+source: []
+type: build
diff --git a/spec/build/bsps/riscv/noel/bspnoel32imafd.yml b/spec/build/bsps/riscv/noel/bspnoel32imafd.yml
new file mode 100644
index 0000000..e105620
--- /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 (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: riscv
+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 0000000..e32bdb3
--- /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 (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: riscv
+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 0000000..ca9f54d
--- /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 (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: riscv
+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 0000000..cfde937
--- /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 (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: riscv
+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 0000000..96bac93
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/grp.yml
@@ -0,0 +1,56 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+build-type: group
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+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: 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: optconirq
+- role: build-dependency
+  uid: opthtif
+- role: build-dependency
+  uid: ../linkcmds
+- role: build-dependency
+  uid: ../linkcmdsbase
+- role: build-dependency
+  uid: ../start
+- role: build-dependency
+  uid: ../../bspopts
+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 0000000..f99d1e7
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/obj.yml
@@ -0,0 +1,37 @@
+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)
+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/riscv/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/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/riscv/shared/start/bspgetworkarea-fromstack.c
+- bsps/shared/start/bspreset-empty.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 0000000..46369f9
--- /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 (http://www.embedded-brains.de)
+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/optconirq.yml b/spec/build/bsps/riscv/noel/optconirq.yml
new file mode 100644
index 0000000..d836822
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/optconirq.yml
@@ -0,0 +1,16 @@
+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: 0
+default-by-variant: []
+description: |
+  The APBUART console driver can operate in either polled or interrupt mode.
+enabled-by: true
+format: '{}'
+links: []
+name: CONSOLE_USE_INTERRUPTS
+type: build
diff --git a/spec/build/bsps/riscv/noel/optextirqmax.yml b/spec/build/bsps/riscv/noel/optextirqmax.yml
new file mode 100644
index 0000000..ffa8474
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/optextirqmax.yml
@@ -0,0 +1,16 @@
+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/noel/optfdtcpyro.yml b/spec/build/bsps/riscv/noel/optfdtcpyro.yml
new file mode 100644
index 0000000..c26b1ae
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/optfdtcpyro.yml
@@ -0,0 +1,15 @@
+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 (http://www.embedded-brains.de)
+default: true
+default-by-variant: []
+description: |
+  copy the FDT blob into the read-only load area via bsp_fdt_copy()
+enabled-by: true
+links: []
+name: BSP_FDT_BLOB_COPY_TO_READ_ONLY_LOAD_AREA
+type: build
diff --git a/spec/build/bsps/riscv/noel/optfdtmxsz.yml b/spec/build/bsps/riscv/noel/optfdtmxsz.yml
new file mode 100644
index 0000000..63a42f5
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/optfdtmxsz.yml
@@ -0,0 +1,16 @@
+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: 65536
+default-by-variant: []
+description: |
+  maximum size of the FDT blob in bytes
+enabled-by: true
+format: '{}'
+links: []
+name: BSP_FDT_BLOB_SIZE_MAX
+type: build
diff --git a/spec/build/bsps/riscv/noel/optfdtro.yml b/spec/build/bsps/riscv/noel/optfdtro.yml
new file mode 100644
index 0000000..a61bb29
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/optfdtro.yml
@@ -0,0 +1,15 @@
+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 (http://www.embedded-brains.de)
+default: true
+default-by-variant: []
+description: |
+  place the FDT blob into the read-only data area
+enabled-by: true
+links: []
+name: BSP_FDT_BLOB_READ_ONLY
+type: build
diff --git a/spec/build/bsps/riscv/noel/optfdtuboot.yml b/spec/build/bsps/riscv/noel/optfdtuboot.yml
new file mode 100644
index 0000000..5805e91
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/optfdtuboot.yml
@@ -0,0 +1,15 @@
+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 (http://www.embedded-brains.de)
+default: true
+default-by-variant: []
+description: |
+  copy the U-Boot provided FDT to an internal storage
+enabled-by: true
+links: []
+name: BSP_START_COPY_FDT_FROM_U_BOOT
+type: build
diff --git a/spec/build/bsps/riscv/noel/opthtif.yml b/spec/build/bsps/riscv/noel/opthtif.yml
new file mode 100644
index 0000000..9161716
--- /dev/null
+++ b/spec/build/bsps/riscv/noel/opthtif.yml
@@ -0,0 +1,15 @@
+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 (http://www.embedded-brains.de)
+default: false
+default-by-variant: []
+description: |
+  enables the HTIF support if defined to a non-zero value, otherwise it is disabled (disabled by default)
+enabled-by: true
+links: []
+name: RISCV_ENABLE_HTIF_SUPPORT
+type: build
diff --git a/spec/build/bsps/riscv/optrambegin.yml b/spec/build/bsps/riscv/optrambegin.yml
index 2073926..4a867a1 100644
--- a/spec/build/bsps/riscv/optrambegin.yml
+++ b/spec/build/bsps/riscv/optrambegin.yml
@@ -16,6 +16,9 @@ default-by-variant:
 - value: 1879048192
   variants:
   - riscv/rv64.*
+- value: 0
+  variants:
+  - riscv/noel.*
 - value: 1073741824
   variants:
   - riscv/griscv
diff --git a/spec/build/cpukit/optarchbits.yml b/spec/build/cpukit/optarchbits.yml
index ac9a1f1..f7b652c 100644
--- a/spec/build/cpukit/optarchbits.yml
+++ b/spec/build/cpukit/optarchbits.yml
@@ -11,11 +11,13 @@ default-by-variant:
 - value:
   - '64'
   variants:
+  - riscv/noel64.*
   - riscv/rv64.*
 - value:
   - '32'
   variants:
   - riscv/griscv
+  - riscv/noel32.*
   - riscv/rv32.*
 description: The architecture word bits for the clang target triple.
 enabled-by:
diff --git a/spec/build/cpukit/optnet.yml b/spec/build/cpukit/optnet.yml
index 8a22342..3bb39f0 100644
--- a/spec/build/cpukit/optnet.yml
+++ b/spec/build/cpukit/optnet.yml
@@ -14,6 +14,7 @@ enabled-by:
   not:
   - aarch64
   - powerpc/qoriq_e6500_64
+  - riscv/noel64.*
   - riscv/rv64imac
   - riscv/rv64imac_medany
   - riscv/rv64imafd
diff --git a/spec/build/cpukit/optsmp.yml b/spec/build/cpukit/optsmp.yml
index eefeef4..e95ff46 100644
--- a/spec/build/cpukit/optsmp.yml
+++ b/spec/build/cpukit/optsmp.yml
@@ -27,6 +27,10 @@ enabled-by:
 - riscv/griscv
 - riscv/grv32imac
 - riscv/grv32imafdc
+- riscv/noel32imafd
+- riscv/noel64imac
+- riscv/noel64imafdc
+- riscv/noel64imafd
 - riscv/rv32iac
 - riscv/rv32imac
 - riscv/rv32imafc
-- 
2.7.4



More information about the devel mailing list