[PATCH 3/6] build: Make OBJCOPY optional

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Feb 27 15:15:20 UTC 2024


Update #4272.
---
 spec/build/bsps/i386/pc386/objsmpstart.yml |  4 +++-
 spec/build/bsps/optobjcopy.yml             | 14 +++++++++-----
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/spec/build/bsps/i386/pc386/objsmpstart.yml b/spec/build/bsps/i386/pc386/objsmpstart.yml
index a085132737..026531b84c 100644
--- a/spec/build/bsps/i386/pc386/objsmpstart.yml
+++ b/spec/build/bsps/i386/pc386/objsmpstart.yml
@@ -40,7 +40,9 @@ do-build: |
   bic.objects.append(self.uid)
 do-configure: null
 enabled-by:
-- RTEMS_SMP
+  and:
+  - HAVE_OBJCOPY
+  - RTEMS_SMP
 includes: []
 ldflags: []
 links:
diff --git a/spec/build/bsps/optobjcopy.yml b/spec/build/bsps/optobjcopy.yml
index 63fab08ac6..0eec3d33b4 100644
--- a/spec/build/bsps/optobjcopy.yml
+++ b/spec/build/bsps/optobjcopy.yml
@@ -1,15 +1,19 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 actions:
-- set-value: ${PROGRAM_PREFIX}objcopy
+- get-string: null
 - substitute: null
-- find-program: null
+- find-optional-program: null
 - env-assign: OBJCOPY
 build-type: option
 copyrights:
-- Copyright (C) 2020 embedded brains GmbH & Co. KG
-default: []
-description: ''
+- Copyright (C) 2020, 2024 embedded brains GmbH & Co. KG
+default:
+- enabled-by: true
+  value: ${PROGRAM_PREFIX}objcopy
+description: |
+  This build option defines the name of the object copy tool.
 enabled-by: true
+format: '{}'
 links: []
 name: OBJCOPY
 type: build
-- 
2.35.3



More information about the devel mailing list