[rtems-central commit] qdp: Run RSB

Sebastian Huber sebh at rtems.org
Tue Nov 21 13:35:41 UTC 2023


Module:    rtems-central
Branch:    master
Commit:    c918f6f122a7d96334f5ef1259688ffc1a79f186
Changeset: http://git.rtems.org/rtems-central/commit/?id=c918f6f122a7d96334f5ef1259688ffc1a79f186

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 21 11:13:16 2023 +0100

qdp: Run RSB

---

 config/base.yml                              | 36 ++++++++++++++
 config/variant-sparc-gr712rc-smp.yml         |  1 +
 config/variant-sparc-gr712rc-uni.yml         |  1 +
 config/variant-sparc-gr740-smp.yml           |  1 +
 config/variant-sparc-gr740-uni.yml           |  1 +
 spec-qdp/qdp/deployment/rtems-tool-suite.yml | 17 +++++++
 spec-qdp/qdp/package-build.yml               |  2 +
 spec-qdp/qdp/steps/run-rsb.yml               | 70 ++++++++++++++++++++++++++++
 8 files changed, 129 insertions(+)

diff --git a/config/base.yml b/config/base.yml
index b01672ba..d1b2c443 100644
--- a/config/base.yml
+++ b/config/base.yml
@@ -57,6 +57,42 @@ workspace-actions:
     include: qdp_build.py
   source-directory: ${.:/toolchain-directory}
   uid: /qdp/source/qt-modules
+- action-name: base-rsb
+  action-type: git-clone
+  action-when: 4000
+  branch: qdp
+  commit: ae81810adcfef8bd3ab8cfca2ed5ba4ac4b9779f
+  copyrights-by-license:
+    files:
+    - LICENSE
+    - source-builder/sb/markdown/LICENSE.md
+  description: |
+    This repository contains the RTEMS Source Builder.  It was used to provide
+    the RTEMS tool suite shipped with the QDP.  The QDP contains a binary
+    distribution of the RTEMS tools suite.  The :file:`rtems/patches` and
+    :file:`rtems/sources` directories in the RSB directory contain the patches
+    and sources of the tool suite used to build the binary distribution.  This
+    helps you to meet the GPL requirements of some tools.  You do not have to
+    run the RSB on your own.  For example, you may run the RSB to adopt the QDP
+    to a different host computer platform.
+  destination-directory: ${../variant:/deployment-directory}/src/rsb
+  directory-state-invalidates: []
+  enabled-by: true
+  links:
+  - role: repository
+    uid: ../variant
+  - hash: null
+    name: member
+    role: input-to
+    uid: ../steps/archive
+  origin-branch: master
+  origin-commit: ae81810adcfef8bd3ab8cfca2ed5ba4ac4b9779f
+  origin-commit-url: https://git.rtems.org/rtems-source-builder/commit/?id=${.:/origin-commit}
+  origin-fetch: []
+  origin-url: git://git.rtems.org/rtems-source-builder.git
+  post-clone-commands: []
+  source-directory: ${.:/toolchain-directory}/modules/rsb
+  uid: /qdp/source/rsb
 - action-name: base-rtems
   action-type: git-clone
   action-when: 4000
diff --git a/config/variant-sparc-gr712rc-smp.yml b/config/variant-sparc-gr712rc-smp.yml
index 384e0666..76bffd2c 100644
--- a/config/variant-sparc-gr712rc-smp.yml
+++ b/config/variant-sparc-gr712rc-smp.yml
@@ -13,6 +13,7 @@ workspace-actions:
     - Copyright (C) 2020, 2023 embedded brains GmbH & Co. KG
     deployment-directory: ${.:/prefix-directory}/${.:/package-directory}
     enabled:
+    - QDP_RSB
     - ${.:/arch}
     - bsps/${.:/arch}/${.:/bsp-family}
     - ${.:/arch}/${.:/bsp}
diff --git a/config/variant-sparc-gr712rc-uni.yml b/config/variant-sparc-gr712rc-uni.yml
index b1ee37f3..3a6167d2 100644
--- a/config/variant-sparc-gr712rc-uni.yml
+++ b/config/variant-sparc-gr712rc-uni.yml
@@ -13,6 +13,7 @@ workspace-actions:
     - Copyright (C) 2020, 2023 embedded brains GmbH & Co. KG
     deployment-directory: ${.:/prefix-directory}/${.:/package-directory}
     enabled:
+    - QDP_RSB
     - ${.:/arch}
     - bsps/${.:/arch}/${.:/bsp-family}
     - ${.:/arch}/${.:/bsp}
diff --git a/config/variant-sparc-gr740-smp.yml b/config/variant-sparc-gr740-smp.yml
index bd2ce838..b1d4d838 100644
--- a/config/variant-sparc-gr740-smp.yml
+++ b/config/variant-sparc-gr740-smp.yml
@@ -13,6 +13,7 @@ workspace-actions:
     - Copyright (C) 2020, 2023 embedded brains GmbH & Co. KG
     deployment-directory: ${.:/prefix-directory}/${.:/package-directory}
     enabled:
+    - QDP_RSB
     - ${.:/arch}
     - bsps/${.:/arch}/${.:/bsp-family}
     - ${.:/arch}/${.:/bsp}
diff --git a/config/variant-sparc-gr740-uni.yml b/config/variant-sparc-gr740-uni.yml
index 9433818e..71b34ab5 100644
--- a/config/variant-sparc-gr740-uni.yml
+++ b/config/variant-sparc-gr740-uni.yml
@@ -13,6 +13,7 @@ workspace-actions:
     - Copyright (C) 2020, 2023 embedded brains GmbH & Co. KG
     deployment-directory: ${.:/prefix-directory}/${.:/package-directory}
     enabled:
+    - QDP_RSB
     - ${.:/arch}
     - bsps/${.:/arch}/${.:/bsp-family}
     - ${.:/arch}/${.:/bsp}
diff --git a/spec-qdp/qdp/deployment/rtems-tool-suite.yml b/spec-qdp/qdp/deployment/rtems-tool-suite.yml
new file mode 100644
index 00000000..a6243308
--- /dev/null
+++ b/spec-qdp/qdp/deployment/rtems-tool-suite.yml
@@ -0,0 +1,17 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
+copyrights-by-license: {}
+directory: ${../variant:/deployment-directory}
+directory-state-type: generic
+enabled-by: QDP_RSB
+files: []
+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 1e999798..48933dfb 100644
--- a/spec-qdp/qdp/package-build.yml
+++ b/spec-qdp/qdp/package-build.yml
@@ -3,6 +3,8 @@ copyrights:
 - Copyright (C) 2020 embedded brains GmbH & Co. KG
 enabled-by: true
 links:
+- role: build-step
+  uid: steps/run-rsb
 - role: build-step
   uid: steps/archive
 qdp-type: package-build
diff --git a/spec-qdp/qdp/steps/run-rsb.yml b/spec-qdp/qdp/steps/run-rsb.yml
new file mode 100644
index 00000000..261409e4
--- /dev/null
+++ b/spec-qdp/qdp/steps/run-rsb.yml
@@ -0,0 +1,70 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+build-step-type: run-actions
+actions:
+- action: remove-glob
+  enabled-by: true
+  remove-tree: true
+  path: ${.:/params/working-directory}
+  patterns:
+  - build
+  - patches
+  - rsb-log*
+  - sources
+  - tar
+- action: subprocess
+  command:
+  - ../source-builder/sb-set-builder
+  - --trace
+  - --pkg-tar-files
+  - --no-install
+  - --prefix
+  - ${../deployment/rtems-tool-suite:/directory}
+  - ${../variant:/rtems-version}/rtems-${../variant:/arch}
+  enabled-by: true
+  env: []
+  expected-return-code: 0
+  working-directory: ${.:/params/working-directory}
+- action: directory-state-clear
+  enabled-by: true
+  output-name: deployment
+- action: directory-state-add-tarfile-members
+  enabled-by: true
+  extract: true
+  output-name: deployment
+  prefix-path: /
+  search-path: ${.:/params/working-directory}/tar
+  pattern: '*.tar.*'
+- action: directory-state-add-files
+  enabled-by: true
+  output-name: deployment
+  path: ${.:/params/working-directory}/patches
+  pattern: '**/*'
+- action: directory-state-add-files
+  enabled-by: true
+  output-name: deployment
+  path: ${.:/params/working-directory}/sources
+  pattern: '**/*'
+- action: remove-glob
+  enabled-by: true
+  remove-tree: true
+  path: ${.:/params/working-directory}
+  patterns:
+  - build
+  - tar
+copyrights:
+- Copyright (C) 2020, 2023 embedded brains GmbH & Co. KG
+description: |
+  Runs the RSB to build and install the RTEMS tool suite.
+enabled-by: QDP_RSB
+links:
+- hash: null
+  name: source
+  role: input
+  uid: ../source/rsb
+- name: deployment
+  role: output
+  uid: ../deployment/rtems-tool-suite
+params:
+  working-directory: ${../source/rsb:/directory}/rtems
+qdp-type: build-step
+type: qdp



More information about the vc mailing list