From f3f0370f1054f4e49aa8f5ea70485d673e8e94b6 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 19 Jul 2019 13:09:43 +0200 Subject: build: Alternative build system based on waf Update #3818. --- spec/build/bsps/sh/gensh2/abi.yml | 17 +++++++ spec/build/bsps/sh/gensh2/bspgensh2.yml | 77 ++++++++++++++++++++++++++++++++ spec/build/bsps/sh/gensh2/optcpuclk.yml | 16 +++++++ spec/build/bsps/sh/gensh2/optevb.yml | 15 +++++++ spec/build/bsps/sh/gensh2/optlowinit.yml | 15 +++++++ spec/build/bsps/sh/gensh2/start.yml | 14 ++++++ spec/build/bsps/sh/gensh2/tstgensh2.yml | 20 +++++++++ 7 files changed, 174 insertions(+) create mode 100644 spec/build/bsps/sh/gensh2/abi.yml create mode 100644 spec/build/bsps/sh/gensh2/bspgensh2.yml create mode 100644 spec/build/bsps/sh/gensh2/optcpuclk.yml create mode 100644 spec/build/bsps/sh/gensh2/optevb.yml create mode 100644 spec/build/bsps/sh/gensh2/optlowinit.yml create mode 100644 spec/build/bsps/sh/gensh2/start.yml create mode 100644 spec/build/bsps/sh/gensh2/tstgensh2.yml (limited to 'spec/build/bsps/sh/gensh2') 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 -- cgit v1.2.3