summaryrefslogtreecommitdiffstats
path: root/spec/build/bsps/sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--spec/build/bsps/sh/gensh1/abi.yml17
-rw-r--r--spec/build/bsps/sh/gensh1/bspgensh1.yml69
-rw-r--r--spec/build/bsps/sh/gensh1/optcpuclk.yml16
-rw-r--r--spec/build/bsps/sh/gensh1/optlowinit.yml15
-rw-r--r--spec/build/bsps/sh/gensh1/start.yml14
-rw-r--r--spec/build/bsps/sh/gensh1/tstgensh1.yml20
-rw-r--r--spec/build/bsps/sh/gensh2/abi.yml17
-rw-r--r--spec/build/bsps/sh/gensh2/bspgensh2.yml77
-rw-r--r--spec/build/bsps/sh/gensh2/optcpuclk.yml16
-rw-r--r--spec/build/bsps/sh/gensh2/optevb.yml15
-rw-r--r--spec/build/bsps/sh/gensh2/optlowinit.yml15
-rw-r--r--spec/build/bsps/sh/gensh2/start.yml14
-rw-r--r--spec/build/bsps/sh/gensh2/tstgensh2.yml20
-rw-r--r--spec/build/bsps/sh/gensh4/abi.yml18
-rw-r--r--spec/build/bsps/sh/gensh4/bspgensh4.yml72
-rw-r--r--spec/build/bsps/sh/gensh4/optcpuclk.yml16
-rw-r--r--spec/build/bsps/sh/gensh4/optcpydata.yml15
-rw-r--r--spec/build/bsps/sh/gensh4/optlowinit.yml15
-rw-r--r--spec/build/bsps/sh/gensh4/start.yml14
-rw-r--r--spec/build/bsps/sh/shsim/abi.yml31
-rw-r--r--spec/build/bsps/sh/shsim/bspsimsh1.yml21
-rw-r--r--spec/build/bsps/sh/shsim/bspsimsh2.yml21
-rw-r--r--spec/build/bsps/sh/shsim/bspsimsh2e.yml21
-rw-r--r--spec/build/bsps/sh/shsim/bspsimsh4.yml21
-rw-r--r--spec/build/bsps/sh/shsim/grp.yml28
-rw-r--r--spec/build/bsps/sh/shsim/obj.yml41
-rw-r--r--spec/build/bsps/sh/shsim/optcpuclk.yml16
-rw-r--r--spec/build/bsps/sh/shsim/optlowinit.yml15
-rw-r--r--spec/build/bsps/sh/shsim/start.yml14
-rw-r--r--spec/build/bsps/sh/shsim/tstsimsh1.yml24
-rw-r--r--spec/build/bsps/sh/shsim/tstsimsh2.yml24
-rw-r--r--spec/build/bsps/sh/shsim/tstsimsh2e.yml24
-rw-r--r--spec/build/bsps/sh/shsim/tstsimsh4.yml24
33 files changed, 800 insertions, 0 deletions
diff --git a/spec/build/bsps/sh/gensh1/abi.yml b/spec/build/bsps/sh/gensh1/abi.yml
new file mode 100644
index 0000000000..4e3646562a
--- /dev/null
+++ b/spec/build/bsps/sh/gensh1/abi.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: null
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default:
+- -m1
+default-by-variant: []
+description: |
+ ABI flags
+enabled-by: true
+links: []
+name: ABI_FLAGS
+type: build
diff --git a/spec/build/bsps/sh/gensh1/bspgensh1.yml b/spec/build/bsps/sh/gensh1/bspgensh1.yml
new file mode 100644
index 0000000000..1a87d55042
--- /dev/null
+++ b/spec/build/bsps/sh/gensh1/bspgensh1.yml
@@ -0,0 +1,69 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: sh
+bsp: gensh1
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: gensh1
+includes: []
+install:
+- destination: ${BSP_INCLUDEDIR}
+ source:
+ - bsps/sh/gensh1/include/bsp.h
+ - bsps/sh/gensh1/include/tm27.h
+- destination: ${BSP_INCLUDEDIR}/bsp
+ source:
+ - bsps/sh/gensh1/include/bsp/irq.h
+- destination: ${BSP_INCLUDEDIR}/rtems/score
+ source:
+ - bsps/sh/gensh1/include/rtems/score/iosh7032.h
+ - bsps/sh/gensh1/include/rtems/score/ispsh7032.h
+- destination: ${BSP_INCLUDEDIR}/sh
+ source:
+ - bsps/sh/gensh1/include/sh/sci.h
+ - bsps/sh/gensh1/include/sh/sh7_pfc.h
+ - bsps/sh/gensh1/include/sh/sh7_sci.h
+- destination: ${BSP_LIBDIR}
+ source:
+ - bsps/sh/gensh1/start/linkcmds
+links:
+- role: build-dependency
+ uid: ../../obj
+- role: build-dependency
+ uid: ../../objirqdflt
+- role: build-dependency
+ uid: ../../opto2
+- role: build-dependency
+ uid: abi
+- role: build-dependency
+ uid: optcpuclk
+- role: build-dependency
+ uid: optlowinit
+- role: build-dependency
+ uid: start
+- role: build-dependency
+ uid: tstgensh1
+- role: build-dependency
+ uid: ../../bspopts
+source:
+- bsps/sh/gensh1/btimer/btimer.c
+- bsps/sh/gensh1/clock/ckinit.c
+- bsps/sh/gensh1/clock/delay.c
+- bsps/sh/gensh1/console/sci.c
+- bsps/sh/gensh1/console/scitab.c
+- bsps/sh/gensh1/start/cpu_asm.c
+- bsps/sh/gensh1/start/ispsh7032.c
+- bsps/sh/shared/console/console.c
+- bsps/sh/shared/start/bsphwinit.c
+- bsps/sh/shared/start/bspstart.c
+- bsps/shared/cache/nocache.c
+- bsps/shared/dev/getentropy/getentropy-cpucounter.c
+- bsps/shared/dev/serial/printk-dummy.c
+- bsps/shared/start/bspfatal-default.c
+- bsps/shared/start/bspgetworkarea-default.c
+- bsps/shared/start/bspreset-loop.c
+- bsps/shared/start/sbrk.c
+type: build
diff --git a/spec/build/bsps/sh/gensh1/optcpuclk.yml b/spec/build/bsps/sh/gensh1/optcpuclk.yml
new file mode 100644
index 0000000000..086145a786
--- /dev/null
+++ b/spec/build/bsps/sh/gensh1/optcpuclk.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: 20000000
+default-by-variant: []
+description: |
+ cpu clock rate in HZ
+enabled-by: true
+format: '{}'
+links: []
+name: CPU_CLOCK_RATE_HZ
+type: build
diff --git a/spec/build/bsps/sh/gensh1/optlowinit.yml b/spec/build/bsps/sh/gensh1/optlowinit.yml
new file mode 100644
index 0000000000..60f16b388b
--- /dev/null
+++ b/spec/build/bsps/sh/gensh1/optlowinit.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: |
+ If defined, selects whether 'early_hw_init()' is called from 'start.S'; 'bsp_hw_init()' is always called from 'bspstart.c'
+enabled-by: true
+links: []
+name: START_HW_INIT
+type: build
diff --git a/spec/build/bsps/sh/gensh1/start.yml b/spec/build/bsps/sh/gensh1/start.yml
new file mode 100644
index 0000000000..010b43e35d
--- /dev/null
+++ b/spec/build/bsps/sh/gensh1/start.yml
@@ -0,0 +1,14 @@
+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)
+cppflags: []
+enabled-by: true
+includes: []
+install-path: ${BSP_LIBDIR}
+links: []
+source:
+- bsps/sh/gensh1/start/start.S
+target: start.o
+type: build
diff --git a/spec/build/bsps/sh/gensh1/tstgensh1.yml b/spec/build/bsps/sh/gensh1/tstgensh1.yml
new file mode 100644
index 0000000000..6851063503
--- /dev/null
+++ b/spec/build/bsps/sh/gensh1/tstgensh1.yml
@@ -0,0 +1,20 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- set-test-state:
+ fileio: exclude
+ fsdosfsname01: exclude
+ iostream: exclude
+ linpack: exclude
+ record02: exclude
+ utf8proc01: exclude
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default: null
+default-by-variant: []
+description: ''
+enabled-by: true
+links:
+- role: build-dependency
+ uid: ../../tstnoiconv
+type: build
diff --git a/spec/build/bsps/sh/gensh2/abi.yml b/spec/build/bsps/sh/gensh2/abi.yml
new file mode 100644
index 0000000000..4bd34deb19
--- /dev/null
+++ b/spec/build/bsps/sh/gensh2/abi.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: null
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default:
+- -m2
+default-by-variant: []
+description: |
+ ABI flags
+enabled-by: true
+links: []
+name: ABI_FLAGS
+type: build
diff --git a/spec/build/bsps/sh/gensh2/bspgensh2.yml b/spec/build/bsps/sh/gensh2/bspgensh2.yml
new file mode 100644
index 0000000000..bbe027c54d
--- /dev/null
+++ b/spec/build/bsps/sh/gensh2/bspgensh2.yml
@@ -0,0 +1,77 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: sh
+bsp: gensh2
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: gensh2
+includes: []
+install:
+- destination: ${BSP_INCLUDEDIR}
+ source:
+ - bsps/sh/gensh2/include/bsp.h
+ - bsps/sh/gensh2/include/tm27.h
+- destination: ${BSP_INCLUDEDIR}/bsp
+ source:
+ - bsps/sh/gensh2/include/bsp/irq.h
+- destination: ${BSP_INCLUDEDIR}/rtems/score
+ source:
+ - bsps/sh/gensh2/include/rtems/score/iosh7045.h
+ - bsps/sh/gensh2/include/rtems/score/ispsh7045.h
+- destination: ${BSP_INCLUDEDIR}/sh
+ source:
+ - bsps/sh/gensh2/include/sh/io_types.h
+ - bsps/sh/gensh2/include/sh/sci.h
+ - bsps/sh/gensh2/include/sh/sci_termios.h
+ - bsps/sh/gensh2/include/sh/sh7_pfc.h
+ - bsps/sh/gensh2/include/sh/sh7_sci.h
+- destination: ${BSP_LIBDIR}
+ source:
+ - bsps/sh/gensh2/start/linkcmds
+ - bsps/sh/gensh2/start/linkcmds.ram
+ - bsps/sh/gensh2/start/linkcmds.rom
+links:
+- role: build-dependency
+ uid: ../../obj
+- role: build-dependency
+ uid: ../../objirqdflt
+- role: build-dependency
+ uid: ../../opto2
+- role: build-dependency
+ uid: abi
+- role: build-dependency
+ uid: optcpuclk
+- role: build-dependency
+ uid: optevb
+- role: build-dependency
+ uid: optlowinit
+- role: build-dependency
+ uid: start
+- role: build-dependency
+ uid: tstgensh2
+- role: build-dependency
+ uid: ../../bspopts
+source:
+- bsps/sh/gensh2/btimer/btimer.c
+- bsps/sh/gensh2/clock/ckinit.c
+- bsps/sh/gensh2/console/config.c
+- bsps/sh/gensh2/console/sci.c
+- bsps/sh/gensh2/console/sci_termios.c
+- bsps/sh/gensh2/console/scitab.c
+- bsps/sh/gensh2/start/cpu_asm.c
+- bsps/sh/gensh2/start/hw_init.c
+- bsps/sh/gensh2/start/ispsh7045.c
+- bsps/sh/shared/console/console.c
+- bsps/sh/shared/start/bsphwinit.c
+- bsps/sh/shared/start/bspstart.c
+- bsps/shared/cache/nocache.c
+- bsps/shared/dev/getentropy/getentropy-cpucounter.c
+- bsps/shared/dev/serial/printk-dummy.c
+- bsps/shared/start/bspfatal-default.c
+- bsps/shared/start/bspgetworkarea-default.c
+- bsps/shared/start/bspreset-empty.c
+- bsps/shared/start/sbrk.c
+type: build
diff --git a/spec/build/bsps/sh/gensh2/optcpuclk.yml b/spec/build/bsps/sh/gensh2/optcpuclk.yml
new file mode 100644
index 0000000000..086145a786
--- /dev/null
+++ b/spec/build/bsps/sh/gensh2/optcpuclk.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: 20000000
+default-by-variant: []
+description: |
+ cpu clock rate in HZ
+enabled-by: true
+format: '{}'
+links: []
+name: CPU_CLOCK_RATE_HZ
+type: build
diff --git a/spec/build/bsps/sh/gensh2/optevb.yml b/spec/build/bsps/sh/gensh2/optevb.yml
new file mode 100644
index 0000000000..45d1a7d0bc
--- /dev/null
+++ b/spec/build/bsps/sh/gensh2/optevb.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: |
+ If defined, compiles code to jump-start from FLASH, without a monitor
+enabled-by: true
+links: []
+name: STANDALONE_EVB
+type: build
diff --git a/spec/build/bsps/sh/gensh2/optlowinit.yml b/spec/build/bsps/sh/gensh2/optlowinit.yml
new file mode 100644
index 0000000000..60f16b388b
--- /dev/null
+++ b/spec/build/bsps/sh/gensh2/optlowinit.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: |
+ If defined, selects whether 'early_hw_init()' is called from 'start.S'; 'bsp_hw_init()' is always called from 'bspstart.c'
+enabled-by: true
+links: []
+name: START_HW_INIT
+type: build
diff --git a/spec/build/bsps/sh/gensh2/start.yml b/spec/build/bsps/sh/gensh2/start.yml
new file mode 100644
index 0000000000..1dff0089a6
--- /dev/null
+++ b/spec/build/bsps/sh/gensh2/start.yml
@@ -0,0 +1,14 @@
+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)
+cppflags: []
+enabled-by: true
+includes: []
+install-path: ${BSP_LIBDIR}
+links: []
+source:
+- bsps/sh/gensh2/start/start.S
+target: start.o
+type: build
diff --git a/spec/build/bsps/sh/gensh2/tstgensh2.yml b/spec/build/bsps/sh/gensh2/tstgensh2.yml
new file mode 100644
index 0000000000..6851063503
--- /dev/null
+++ b/spec/build/bsps/sh/gensh2/tstgensh2.yml
@@ -0,0 +1,20 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- set-test-state:
+ fileio: exclude
+ fsdosfsname01: exclude
+ iostream: exclude
+ linpack: exclude
+ record02: exclude
+ utf8proc01: exclude
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default: null
+default-by-variant: []
+description: ''
+enabled-by: true
+links:
+- role: build-dependency
+ uid: ../../tstnoiconv
+type: build
diff --git a/spec/build/bsps/sh/gensh4/abi.yml b/spec/build/bsps/sh/gensh4/abi.yml
new file mode 100644
index 0000000000..cc406a30b6
--- /dev/null
+++ b/spec/build/bsps/sh/gensh4/abi.yml
@@ -0,0 +1,18 @@
+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:
+- -m4
+- -ml
+default-by-variant: []
+description: |
+ ABI flags
+enabled-by: true
+links: []
+name: ABI_FLAGS
+type: build
diff --git a/spec/build/bsps/sh/gensh4/bspgensh4.yml b/spec/build/bsps/sh/gensh4/bspgensh4.yml
new file mode 100644
index 0000000000..9eabffcc0a
--- /dev/null
+++ b/spec/build/bsps/sh/gensh4/bspgensh4.yml
@@ -0,0 +1,72 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: sh
+bsp: gensh4
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: gensh4
+includes: []
+install:
+- destination: ${BSP_INCLUDEDIR}
+ source:
+ - bsps/sh/gensh4/include/bsp.h
+ - bsps/sh/gensh4/include/sdram.h
+ - bsps/sh/gensh4/include/tm27.h
+- destination: ${BSP_INCLUDEDIR}/bsp
+ source:
+ - bsps/sh/gensh4/include/bsp/irq.h
+- destination: ${BSP_INCLUDEDIR}/rtems/score
+ source:
+ - bsps/sh/gensh4/include/rtems/score/iosh7750.h
+ - bsps/sh/gensh4/include/rtems/score/ipl.h
+ - bsps/sh/gensh4/include/rtems/score/ispsh7750.h
+ - bsps/sh/gensh4/include/rtems/score/sh4_regs.h
+ - bsps/sh/gensh4/include/rtems/score/sh7750_regs.h
+- destination: ${BSP_INCLUDEDIR}/sh
+ source:
+ - bsps/sh/gensh4/include/sh/sh4uart.h
+- destination: ${BSP_LIBDIR}
+ source:
+ - bsps/sh/gensh4/start/linkcmds
+ - bsps/sh/gensh4/start/linkcmds.rom
+ - bsps/sh/gensh4/start/linkcmds.rom2ram
+links:
+- role: build-dependency
+ uid: ../../obj
+- role: build-dependency
+ uid: ../../objirqdflt
+- role: build-dependency
+ uid: ../../opto2
+- role: build-dependency
+ uid: abi
+- role: build-dependency
+ uid: optcpuclk
+- role: build-dependency
+ uid: optcpydata
+- role: build-dependency
+ uid: optlowinit
+- role: build-dependency
+ uid: start
+- role: build-dependency
+ uid: ../../bspopts
+source:
+- bsps/sh/gensh4/btimer/btimer.c
+- bsps/sh/gensh4/clock/ckinit.c
+- bsps/sh/gensh4/console/console.c
+- bsps/sh/gensh4/console/sh4uart.c
+- bsps/sh/gensh4/start/cpu_asm.c
+- bsps/sh/gensh4/start/hw_init.c
+- bsps/sh/gensh4/start/ispsh7750.c
+- bsps/sh/shared/start/bsphwinit.c
+- bsps/sh/shared/start/bspstart.c
+- bsps/shared/cache/nocache.c
+- bsps/shared/dev/getentropy/getentropy-cpucounter.c
+- bsps/shared/dev/serial/printk-dummy.c
+- bsps/shared/start/bspfatal-default.c
+- bsps/shared/start/bspgetworkarea-default.c
+- bsps/shared/start/bspreset-empty.c
+- bsps/shared/start/sbrk.c
+type: build
diff --git a/spec/build/bsps/sh/gensh4/optcpuclk.yml b/spec/build/bsps/sh/gensh4/optcpuclk.yml
new file mode 100644
index 0000000000..086145a786
--- /dev/null
+++ b/spec/build/bsps/sh/gensh4/optcpuclk.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: 20000000
+default-by-variant: []
+description: |
+ cpu clock rate in HZ
+enabled-by: true
+format: '{}'
+links: []
+name: CPU_CLOCK_RATE_HZ
+type: build
diff --git a/spec/build/bsps/sh/gensh4/optcpydata.yml b/spec/build/bsps/sh/gensh4/optcpydata.yml
new file mode 100644
index 0000000000..7d49b9b781
--- /dev/null
+++ b/spec/build/bsps/sh/gensh4/optcpydata.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: |
+ Whether to copy data from ROM to RAM in start.S
+enabled-by: true
+links: []
+name: COPY_DATA_FROM_ROM
+type: build
diff --git a/spec/build/bsps/sh/gensh4/optlowinit.yml b/spec/build/bsps/sh/gensh4/optlowinit.yml
new file mode 100644
index 0000000000..2a90a73753
--- /dev/null
+++ b/spec/build/bsps/sh/gensh4/optlowinit.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: |
+ Whether to call early_hw_init from start.S
+enabled-by: true
+links: []
+name: START_HW_INIT
+type: build
diff --git a/spec/build/bsps/sh/gensh4/start.yml b/spec/build/bsps/sh/gensh4/start.yml
new file mode 100644
index 0000000000..1a86ac5498
--- /dev/null
+++ b/spec/build/bsps/sh/gensh4/start.yml
@@ -0,0 +1,14 @@
+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)
+cppflags: []
+enabled-by: true
+includes: []
+install-path: ${BSP_LIBDIR}
+links: []
+source:
+- bsps/sh/gensh4/start/start.S
+target: start.o
+type: build
diff --git a/spec/build/bsps/sh/shsim/abi.yml b/spec/build/bsps/sh/shsim/abi.yml
new file mode 100644
index 0000000000..f5dcf145dc
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/abi.yml
@@ -0,0 +1,31 @@
+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:
+- -m4
+- -ml
+default-by-variant:
+- value:
+ - -m2e
+ - -ml
+ variants:
+ - sh/simsh2e
+- value:
+ - -m2
+ variants:
+ - sh/simsh2
+- value:
+ - -m1
+ variants:
+ - sh/simsh1
+description: |
+ ABI flags
+enabled-by: true
+links: []
+name: ABI_FLAGS
+type: build
diff --git a/spec/build/bsps/sh/shsim/bspsimsh1.yml b/spec/build/bsps/sh/shsim/bspsimsh1.yml
new file mode 100644
index 0000000000..7789de35c7
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/bspsimsh1.yml
@@ -0,0 +1,21 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: sh
+bsp: simsh1
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: shsim
+includes: []
+install: []
+links:
+- role: build-dependency
+ uid: ../../opto2
+- role: build-dependency
+ uid: grp
+- role: build-dependency
+ uid: tstsimsh1
+source: []
+type: build
diff --git a/spec/build/bsps/sh/shsim/bspsimsh2.yml b/spec/build/bsps/sh/shsim/bspsimsh2.yml
new file mode 100644
index 0000000000..27486849b6
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/bspsimsh2.yml
@@ -0,0 +1,21 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: sh
+bsp: simsh2
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: shsim
+includes: []
+install: []
+links:
+- role: build-dependency
+ uid: ../../opto2
+- role: build-dependency
+ uid: grp
+- role: build-dependency
+ uid: tstsimsh2
+source: []
+type: build
diff --git a/spec/build/bsps/sh/shsim/bspsimsh2e.yml b/spec/build/bsps/sh/shsim/bspsimsh2e.yml
new file mode 100644
index 0000000000..098c9deb4b
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/bspsimsh2e.yml
@@ -0,0 +1,21 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: sh
+bsp: simsh2e
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: shsim
+includes: []
+install: []
+links:
+- role: build-dependency
+ uid: ../../opto2
+- role: build-dependency
+ uid: grp
+- role: build-dependency
+ uid: tstsimsh2e
+source: []
+type: build
diff --git a/spec/build/bsps/sh/shsim/bspsimsh4.yml b/spec/build/bsps/sh/shsim/bspsimsh4.yml
new file mode 100644
index 0000000000..1327583366
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/bspsimsh4.yml
@@ -0,0 +1,21 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: sh
+bsp: simsh4
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+cppflags: []
+enabled-by: true
+family: shsim
+includes: []
+install: []
+links:
+- role: build-dependency
+ uid: ../../opto2
+- role: build-dependency
+ uid: grp
+- role: build-dependency
+ uid: tstsimsh4
+source: []
+type: build
diff --git a/spec/build/bsps/sh/shsim/grp.yml b/spec/build/bsps/sh/shsim/grp.yml
new file mode 100644
index 0000000000..9c73c7ca0f
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/grp.yml
@@ -0,0 +1,28 @@
+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: ../../objirqdflt
+- role: build-dependency
+ uid: abi
+- role: build-dependency
+ uid: obj
+- role: build-dependency
+ uid: optcpuclk
+- role: build-dependency
+ uid: optlowinit
+- role: build-dependency
+ uid: start
+- role: build-dependency
+ uid: ../../bspopts
+type: build
+use-after: []
+use-before: []
diff --git a/spec/build/bsps/sh/shsim/obj.yml b/spec/build/bsps/sh/shsim/obj.yml
new file mode 100644
index 0000000000..90de78fbf0
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/obj.yml
@@ -0,0 +1,41 @@
+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/sh/shsim/include/bsp.h
+ - bsps/sh/shsim/include/tm27.h
+- destination: ${BSP_INCLUDEDIR}/bsp
+ source:
+ - bsps/sh/shsim/include/bsp/irq.h
+ - bsps/sh/shsim/include/bsp/syscall.h
+- destination: ${BSP_LIBDIR}
+ source:
+ - bsps/sh/shsim/start/linkcmds
+links: []
+source:
+- bsps/sh/shared/start/bsphwinit.c
+- bsps/sh/shared/start/bspstart.c
+- bsps/sh/shsim/console/console-debugio.c
+- bsps/sh/shsim/console/console-io.c
+- bsps/sh/shsim/console/console-support.S
+- bsps/sh/shsim/start/cpu_asm.c
+- bsps/sh/shsim/start/ispshgdb.c
+- bsps/sh/shsim/start/sysexit.c
+- bsps/shared/cache/nocache.c
+- bsps/shared/dev/btimer/btimer-stub.c
+- bsps/shared/dev/clock/clock-simidle.c
+- bsps/shared/dev/getentropy/getentropy-cpucounter.c
+- bsps/shared/dev/serial/console-polled.c
+- bsps/shared/start/bspfatal-default.c
+- bsps/shared/start/bspgetworkarea-default.c
+- bsps/shared/start/bspreset-empty.c
+- bsps/shared/start/sbrk.c
+type: build
diff --git a/spec/build/bsps/sh/shsim/optcpuclk.yml b/spec/build/bsps/sh/shsim/optcpuclk.yml
new file mode 100644
index 0000000000..086145a786
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/optcpuclk.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: 20000000
+default-by-variant: []
+description: |
+ cpu clock rate in HZ
+enabled-by: true
+format: '{}'
+links: []
+name: CPU_CLOCK_RATE_HZ
+type: build
diff --git a/spec/build/bsps/sh/shsim/optlowinit.yml b/spec/build/bsps/sh/shsim/optlowinit.yml
new file mode 100644
index 0000000000..60f16b388b
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/optlowinit.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: |
+ If defined, selects whether 'early_hw_init()' is called from 'start.S'; 'bsp_hw_init()' is always called from 'bspstart.c'
+enabled-by: true
+links: []
+name: START_HW_INIT
+type: build
diff --git a/spec/build/bsps/sh/shsim/start.yml b/spec/build/bsps/sh/shsim/start.yml
new file mode 100644
index 0000000000..da632db0d7
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/start.yml
@@ -0,0 +1,14 @@
+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)
+cppflags: []
+enabled-by: true
+includes: []
+install-path: ${BSP_LIBDIR}
+links: []
+source:
+- bsps/sh/shsim/start/start.S
+target: start.o
+type: build
diff --git a/spec/build/bsps/sh/shsim/tstsimsh1.yml b/spec/build/bsps/sh/shsim/tstsimsh1.yml
new file mode 100644
index 0000000000..a915754a76
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/tstsimsh1.yml
@@ -0,0 +1,24 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- set-test-state:
+ fileio: exclude
+ fsdosfsname01: exclude
+ iostream: exclude
+ linpack: exclude
+ record02: exclude
+ utf8proc01: exclude
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default: null
+default-by-variant: []
+description: ''
+enabled-by: true
+links:
+- role: build-dependency
+ uid: ../../tstnoiconv
+- role: build-dependency
+ uid: ../../tstnointrcrit
+- role: build-dependency
+ uid: ../../tstreqtick
+type: build
diff --git a/spec/build/bsps/sh/shsim/tstsimsh2.yml b/spec/build/bsps/sh/shsim/tstsimsh2.yml
new file mode 100644
index 0000000000..a915754a76
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/tstsimsh2.yml
@@ -0,0 +1,24 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- set-test-state:
+ fileio: exclude
+ fsdosfsname01: exclude
+ iostream: exclude
+ linpack: exclude
+ record02: exclude
+ utf8proc01: exclude
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default: null
+default-by-variant: []
+description: ''
+enabled-by: true
+links:
+- role: build-dependency
+ uid: ../../tstnoiconv
+- role: build-dependency
+ uid: ../../tstnointrcrit
+- role: build-dependency
+ uid: ../../tstreqtick
+type: build
diff --git a/spec/build/bsps/sh/shsim/tstsimsh2e.yml b/spec/build/bsps/sh/shsim/tstsimsh2e.yml
new file mode 100644
index 0000000000..a915754a76
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/tstsimsh2e.yml
@@ -0,0 +1,24 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- set-test-state:
+ fileio: exclude
+ fsdosfsname01: exclude
+ iostream: exclude
+ linpack: exclude
+ record02: exclude
+ utf8proc01: exclude
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default: null
+default-by-variant: []
+description: ''
+enabled-by: true
+links:
+- role: build-dependency
+ uid: ../../tstnoiconv
+- role: build-dependency
+ uid: ../../tstnointrcrit
+- role: build-dependency
+ uid: ../../tstreqtick
+type: build
diff --git a/spec/build/bsps/sh/shsim/tstsimsh4.yml b/spec/build/bsps/sh/shsim/tstsimsh4.yml
new file mode 100644
index 0000000000..a915754a76
--- /dev/null
+++ b/spec/build/bsps/sh/shsim/tstsimsh4.yml
@@ -0,0 +1,24 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- set-test-state:
+ fileio: exclude
+ fsdosfsname01: exclude
+ iostream: exclude
+ linpack: exclude
+ record02: exclude
+ utf8proc01: exclude
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default: null
+default-by-variant: []
+description: ''
+enabled-by: true
+links:
+- role: build-dependency
+ uid: ../../tstnoiconv
+- role: build-dependency
+ uid: ../../tstnointrcrit
+- role: build-dependency
+ uid: ../../tstreqtick
+type: build