[PATCH v2] spec/libdebugger: Only enable for supported architectures

chrisj at rtems.org chrisj at rtems.org
Thu Oct 21 23:35:12 UTC 2021


From: Chris Johns <chrisj at rtems.org>

Closes #4533
---
 spec/build/cpukit/cpuopts.yml                 |  2 ++
 spec/build/cpukit/libdebugger.yml             |  2 +-
 spec/build/cpukit/optlibdebugger.yml          | 16 ++++++++++++++++
 spec/build/testsuites/libtests/debugger01.yml |  4 +---
 4 files changed, 20 insertions(+), 4 deletions(-)
 create mode 100644 spec/build/cpukit/optlibdebugger.yml

diff --git a/spec/build/cpukit/cpuopts.yml b/spec/build/cpukit/cpuopts.yml
index 0a07f6d5e9..908c65d3b9 100644
--- a/spec/build/cpukit/cpuopts.yml
+++ b/spec/build/cpukit/cpuopts.yml
@@ -51,6 +51,8 @@ links:
   uid: optprofiling
 - role: build-dependency
   uid: optsmp
+- role: build-dependency
+  uid: optlibdebugger
 - role: build-dependency
   uid: optlibdl
 - role: build-dependency
diff --git a/spec/build/cpukit/libdebugger.yml b/spec/build/cpukit/libdebugger.yml
index f316cc18e8..5069571a76 100644
--- a/spec/build/cpukit/libdebugger.yml
+++ b/spec/build/cpukit/libdebugger.yml
@@ -5,7 +5,7 @@ copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 cppflags: []
 cxxflags: []
-enabled-by: true
+enabled-by: BUILD_LIBDEBUGGER
 includes: []
 install: []
 install-path: ${BSP_LIBDIR}
diff --git a/spec/build/cpukit/optlibdebugger.yml b/spec/build/cpukit/optlibdebugger.yml
new file mode 100644
index 0000000000..5c7df0e0c9
--- /dev/null
+++ b/spec/build/cpukit/optlibdebugger.yml
@@ -0,0 +1,16 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- set-value: true
+- env-enable: null
+build-type: option
+copyrights:
+- Copyright (C) 2021 Chris Johns (chrisj at rtems.org)
+default: null
+default-by-variant: []
+description: ''
+enabled-by:
+- arm
+- i386
+links: []
+name: BUILD_LIBDEBUGGER
+type: build
diff --git a/spec/build/testsuites/libtests/debugger01.yml b/spec/build/testsuites/libtests/debugger01.yml
index 720b643925..20c538bbb8 100644
--- a/spec/build/testsuites/libtests/debugger01.yml
+++ b/spec/build/testsuites/libtests/debugger01.yml
@@ -5,9 +5,7 @@ copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 cppflags: []
 cxxflags: []
-enabled-by:
-- arm
-- i386
+enabled-by: BUILD_LIBDEBUGGER
 features: c cprogram
 includes: []
 ldflags: []
-- 
2.19.1



More information about the devel mailing list