From 67bde93caa21dbc2e31cc3ce82d3ee6574bf29c0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 21 Nov 2023 11:13:16 +0100 Subject: qdp: Generate configuration files --- config/variant-sparc-gr712rc-smp.yml | 2 + config/variant-sparc-gr712rc-uni.yml | 2 + config/variant-sparc-gr740-smp.yml | 2 + config/variant-sparc-gr740-uni.yml | 2 + rtemsspec/packagebuild.py | 7 + spec-qdp/qdp/deployment/config-extra-coverage.yml | 19 ++ spec-qdp/qdp/deployment/config-extra.yml | 19 ++ .../qdp/deployment/config-qual-only-coverage.yml | 19 ++ .../qdp/deployment/config-qual-only-version.yml | 19 ++ spec-qdp/qdp/deployment/config-qual-only.yml | 19 ++ spec-qdp/qdp/package-build.yml | 2 + spec-qdp/qdp/steps/create-config-files.yml | 199 +++++++++++++++++++++ 12 files changed, 311 insertions(+) create mode 100644 spec-qdp/qdp/deployment/config-extra-coverage.yml create mode 100644 spec-qdp/qdp/deployment/config-extra.yml create mode 100644 spec-qdp/qdp/deployment/config-qual-only-coverage.yml create mode 100644 spec-qdp/qdp/deployment/config-qual-only-version.yml create mode 100644 spec-qdp/qdp/deployment/config-qual-only.yml create mode 100644 spec-qdp/qdp/steps/create-config-files.yml diff --git a/config/variant-sparc-gr712rc-smp.yml b/config/variant-sparc-gr712rc-smp.yml index 76bffd2c..7a8a20de 100644 --- a/config/variant-sparc-gr712rc-smp.yml +++ b/config/variant-sparc-gr712rc-smp.yml @@ -33,6 +33,8 @@ workspace-actions: package-directory: rtems-${.:/rtems-version}-${.:/name} package-version: '0' params: + bsp-extra: extra + bsp-qual-only: qual-only makefile-run-command: sparc-rtems$$(RTEMS_API)-sis -${.:sis-target} -extirq ${.:sis-extirq} -dumbio -r $$< sis-cpus: '2' diff --git a/config/variant-sparc-gr712rc-uni.yml b/config/variant-sparc-gr712rc-uni.yml index 3a6167d2..757763fa 100644 --- a/config/variant-sparc-gr712rc-uni.yml +++ b/config/variant-sparc-gr712rc-uni.yml @@ -32,6 +32,8 @@ workspace-actions: package-directory: rtems-${.:/rtems-version}-${.:/name} package-version: '0' params: + bsp-extra: extra + bsp-qual-only: qual-only makefile-run-command: sparc-rtems$$(RTEMS_API)-sis -${.:sis-target} -extirq ${.:sis-extirq} -dumbio -r $$< sis-cpus: '1' diff --git a/config/variant-sparc-gr740-smp.yml b/config/variant-sparc-gr740-smp.yml index b1d4d838..8a63c649 100644 --- a/config/variant-sparc-gr740-smp.yml +++ b/config/variant-sparc-gr740-smp.yml @@ -33,6 +33,8 @@ workspace-actions: package-directory: rtems-${.:/rtems-version}-${.:/name} package-version: '0' params: + bsp-extra: extra + bsp-qual-only: qual-only makefile-run-command: sparc-rtems$$(RTEMS_API)-sis -${.:sis-target} -extirq ${.:sis-extirq} -dumbio -r $$< sis-cpus: '4' diff --git a/config/variant-sparc-gr740-uni.yml b/config/variant-sparc-gr740-uni.yml index 71b34ab5..9bc2c09f 100644 --- a/config/variant-sparc-gr740-uni.yml +++ b/config/variant-sparc-gr740-uni.yml @@ -32,6 +32,8 @@ workspace-actions: package-directory: rtems-${.:/rtems-version}-${.:/name} package-version: '0' params: + bsp-extra: extra + bsp-qual-only: qual-only makefile-run-command: sparc-rtems$$(RTEMS_API)-sis -${.:sis-target} -extirq ${.:sis-extirq} -dumbio -r $$< sis-cpus: '1' diff --git a/rtemsspec/packagebuild.py b/rtemsspec/packagebuild.py index dd7db469..57c3b334 100644 --- a/rtemsspec/packagebuild.py +++ b/rtemsspec/packagebuild.py @@ -328,6 +328,13 @@ class PackageVariant(BuildItem): BuildItem.prepare_factory(factory, type_name) factory.add_get_value(f"{type_name}:/config/dash", _get_dash) factory.add_get_value(f"{type_name}:/config/slash", _get_slash) + factory.add_get_value(f"{type_name}:/params/bsp-extra/dash", _get_dash) + factory.add_get_value(f"{type_name}:/params/bsp-extra/slash", + _get_slash) + factory.add_get_value(f"{type_name}:/params/bsp-qual-only/dash", + _get_dash) + factory.add_get_value(f"{type_name}:/params/bsp-qual-only/slash", + _get_slash) class BuildItemFactory: diff --git a/spec-qdp/qdp/deployment/config-extra-coverage.yml b/spec-qdp/qdp/deployment/config-extra-coverage.yml new file mode 100644 index 00000000..785265d1 --- /dev/null +++ b/spec-qdp/qdp/deployment/config-extra-coverage.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2022 embedded brains GmbH & Co. KG +copyrights-by-license: {} +directory: ${../source/rtems:/directory} +directory-state-type: generic +enabled-by: true +files: +- file: config-coverage.ini + hash: null +hash: null +links: +- hash: null + name: member + role: input-to + uid: ../steps/archive +patterns: [] +qdp-type: directory-state +type: qdp diff --git a/spec-qdp/qdp/deployment/config-extra.yml b/spec-qdp/qdp/deployment/config-extra.yml new file mode 100644 index 00000000..22512700 --- /dev/null +++ b/spec-qdp/qdp/deployment/config-extra.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2022 embedded brains GmbH & Co. KG +copyrights-by-license: {} +directory: ${../source/rtems:/directory} +directory-state-type: generic +enabled-by: true +files: +- file: config.ini + hash: null +hash: null +links: +- hash: null + name: member + role: input-to + uid: ../steps/archive +patterns: [] +qdp-type: directory-state +type: qdp diff --git a/spec-qdp/qdp/deployment/config-qual-only-coverage.yml b/spec-qdp/qdp/deployment/config-qual-only-coverage.yml new file mode 100644 index 00000000..dc46e470 --- /dev/null +++ b/spec-qdp/qdp/deployment/config-qual-only-coverage.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2022 embedded brains GmbH & Co. KG +copyrights-by-license: {} +directory: ${../source/rtems-qual-only:/directory} +directory-state-type: generic +enabled-by: true +files: +- file: config-coverage.ini + hash: null +hash: null +links: +- hash: null + name: member + role: input-to + uid: ../steps/archive +patterns: [] +qdp-type: directory-state +type: qdp diff --git a/spec-qdp/qdp/deployment/config-qual-only-version.yml b/spec-qdp/qdp/deployment/config-qual-only-version.yml new file mode 100644 index 00000000..5512087c --- /dev/null +++ b/spec-qdp/qdp/deployment/config-qual-only-version.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +copyrights-by-license: {} +directory: ${../source/rtems-qual-only:/directory} +directory-state-type: generic +enabled-by: true +files: +- file: VERSION + hash: null +hash: null +links: +- hash: null + name: member + role: input-to + uid: ../steps/archive +patterns: [] +qdp-type: directory-state +type: qdp diff --git a/spec-qdp/qdp/deployment/config-qual-only.yml b/spec-qdp/qdp/deployment/config-qual-only.yml new file mode 100644 index 00000000..d722afad --- /dev/null +++ b/spec-qdp/qdp/deployment/config-qual-only.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2022 embedded brains GmbH & Co. KG +copyrights-by-license: {} +directory: ${../source/rtems-qual-only:/directory} +directory-state-type: generic +enabled-by: true +files: +- file: config.ini + hash: null +hash: null +links: +- hash: null + name: member + role: input-to + uid: ../steps/archive +patterns: [] +qdp-type: directory-state +type: qdp diff --git a/spec-qdp/qdp/package-build.yml b/spec-qdp/qdp/package-build.yml index acb1eea6..acc3d488 100644 --- a/spec-qdp/qdp/package-build.yml +++ b/spec-qdp/qdp/package-build.yml @@ -5,6 +5,8 @@ enabled-by: true links: - role: build-step uid: steps/create-pre-qualified-only-sources +- role: build-step + uid: steps/create-config-files - role: build-step uid: steps/run-rsb - role: build-step diff --git a/spec-qdp/qdp/steps/create-config-files.yml b/spec-qdp/qdp/steps/create-config-files.yml new file mode 100644 index 00000000..7d5cdc58 --- /dev/null +++ b/spec-qdp/qdp/steps/create-config-files.yml @@ -0,0 +1,199 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-step-type: run-actions +actions: +- action: create-ini-file + enabled-by: true + output-name: config-extra + sections: + - enabled-by: true + key-value-pairs: + - enabled-by: RTEMS_QUAL + key: INHERIT + value: ${../variant:/bsp} + - enabled-by: true + key: RTEMS_BUILD_LABEL + value: ${../variant:/ident}${../variant:/params/bsp-extra/slash} + - enabled-by: RTEMS_SMP + key: RTEMS_SMP + value: 'True' + - enabled-by: true + key: BUILD_TESTS + value: 'True' + - enabled-by: true + key: BUILD_LIBDL_TESTS + value: 'False' + - enabled-by: true + key: BSP_PRINT_EXCEPTION_CONTEXT + value: 'False' + - enabled-by: riscv + key: BSP_VERBOSE_FATAL_EXTENSION + value: 'False' + - enabled-by: riscv + key: BSP_START_COPY_FDT_FROM_U_BOOT + value: 'False' + name: ${../variant:/arch}/${../variant:/bsp}${../variant:/params/bsp-extra/dash} + target: null +- action: create-ini-file + enabled-by: true + output-name: config-extra-coverage + sections: + - enabled-by: true + key-value-pairs: + - enabled-by: RTEMS_QUAL + key: INHERIT + value: ${../variant:/bsp} + - enabled-by: true + key: RTEMS_BUILD_LABEL + value: ${../variant:/ident}${../variant:/params/bsp-extra/slash}/coverage + - enabled-by: RTEMS_SMP + key: RTEMS_SMP + value: 'True' + - enabled-by: true + key: BUILD_TESTS + value: 'True' + - enabled-by: true + key: BUILD_LIBDL_TESTS + value: 'False' + - enabled-by: true + key: BSP_PRINT_EXCEPTION_CONTEXT + value: 'False' + - enabled-by: riscv + key: BSP_VERBOSE_FATAL_EXTENSION + value: 'False' + - enabled-by: riscv + key: BSP_START_COPY_FDT_FROM_U_BOOT + value: 'False' + - enabled-by: true + key: RTEMS_GCOV_COVERAGE + value: 'True' + - enabled-by: true + key: BSP_OPTIMIZATION_FLAGS + value: -O0 -g -ffunction-sections -fdata-sections -frandom-seed=0 + - enabled-by: true + key: CPUKIT_OPTIMIZATION_FLAGS + value: -O0 -g -ffunction-sections -fdata-sections -frandom-seed=0 + name: ${../variant:/arch}/${../variant:/bsp}${../variant:/params/bsp-extra/dash}-coverage + target: null +- action: create-ini-file + enabled-by: true + output-name: config-qual-only + sections: + - enabled-by: true + key-value-pairs: + - enabled-by: true + key: INHERIT + value: ${../variant:/bsp} + - enabled-by: true + key: RTEMS_BUILD_LABEL + value: ${../variant:/ident}/qual-only + - enabled-by: RTEMS_SMP + key: RTEMS_SMP + value: 'True' + - enabled-by: true + key: RTEMS_QUAL + value: 'True' + - enabled-by: true + key: BUILD_TESTS + value: 'True' + - enabled-by: true + key: BSP_PRINT_EXCEPTION_CONTEXT + value: 'False' + - enabled-by: riscv + key: BSP_VERBOSE_FATAL_EXTENSION + value: 'False' + - enabled-by: riscv + key: BSP_START_COPY_FDT_FROM_U_BOOT + value: 'False' + - enabled-by: true + key: OPTIMIZATION_FLAGS + value: -O2 -g -ffunction-sections -fdata-sections -save-temps=obj + name: ${../variant:/arch}/${../variant:/bsp}-qual-only + target: null +- action: create-ini-file + enabled-by: true + output-name: config-qual-only-coverage + sections: + - enabled-by: true + key-value-pairs: + - enabled-by: true + key: INHERIT + value: ${../variant:/bsp} + - enabled-by: true + key: RTEMS_BUILD_LABEL + value: ${../variant:/ident}/qual-only-coverage + - enabled-by: RTEMS_SMP + key: RTEMS_SMP + value: 'True' + - enabled-by: true + key: RTEMS_QUAL + value: 'True' + - enabled-by: true + key: BUILD_TESTS + value: 'True' + - enabled-by: true + key: BSP_PRINT_EXCEPTION_CONTEXT + value: 'False' + - enabled-by: riscv + key: BSP_VERBOSE_FATAL_EXTENSION + value: 'False' + - enabled-by: riscv + key: BSP_START_COPY_FDT_FROM_U_BOOT + value: 'False' + - enabled-by: true + key: RTEMS_GCOV_COVERAGE + value: 'True' + - enabled-by: true + key: BSP_OPTIMIZATION_FLAGS + value: -O0 -g -ffunction-sections -fdata-sections -frandom-seed=0 + - enabled-by: true + key: CPUKIT_OPTIMIZATION_FLAGS + value: -O0 -g -ffunction-sections -fdata-sections -frandom-seed=0 + name: ${../variant:/arch}/${../variant:/bsp}-qual-only-coverage + target: null +- action: create-ini-file + enabled-by: true + output-name: config-qual-only-version + sections: + - enabled-by: true + key-value-pairs: + - enabled-by: true + key: RTEMS_VERSION_CONTROL_KEY + value: ${../source/rtems:/commit} + name: RTEMS_VERSION + target: null +copyrights: +- Copyright (C) 2022, 2023 embedded brains GmbH & Co. KG +description: | + Generate configuration files. +enabled-by: true +links: +- hash: null + name: variant + role: input + uid: ../variant +- hash: null + name: source + role: input + uid: ../source/rtems +- hash: null + name: source + role: input + uid: ../source/rtems-qual-only +- name: config-extra + role: output + uid: ../deployment/config-extra +- name: config-extra-coverage + role: output + uid: ../deployment/config-extra-coverage +- name: config-qual-only + role: output + uid: ../deployment/config-qual-only +- name: config-qual-only-coverage + role: output + uid: ../deployment/config-qual-only-coverage +- name: config-qual-only-version + role: output + uid: ../deployment/config-qual-only-version +params: {} +qdp-type: build-step +type: qdp -- cgit v1.2.3