[rtems commit] build: Add option to customize the LINKFLAGS

Sebastian Huber sebh at rtems.org
Tue Jul 6 05:51:54 UTC 2021


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jul  6 07:48:46 2021 +0200

build: Add option to customize the LINKFLAGS

---

 spec/build/bsps/bspopts.yml      |  2 ++
 spec/build/bsps/optldflags.yml   |  2 +-
 spec/build/bsps/optlinkflags.yml | 16 ++++++++++++++++
 3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/spec/build/bsps/bspopts.yml b/spec/build/bsps/bspopts.yml
index 836d944..d43136e 100644
--- a/spec/build/bsps/bspopts.yml
+++ b/spec/build/bsps/bspopts.yml
@@ -18,6 +18,8 @@ links:
 - role: build-dependency
   uid: optincludes
 - role: build-dependency
+  uid: optlinkflags
+- role: build-dependency
   uid: optldflags
 - role: build-dependency
   uid: optldflagsbsp
diff --git a/spec/build/bsps/optldflags.yml b/spec/build/bsps/optldflags.yml
index d0e365f..d86d8cf 100644
--- a/spec/build/bsps/optldflags.yml
+++ b/spec/build/bsps/optldflags.yml
@@ -11,7 +11,7 @@ default:
 - -Wl,--gc-sections
 default-by-variant: []
 description: |
-  Flags passed to the linker (GNU ld)
+  Flags passed to the linker at the end of the link command.
 enabled-by: true
 links: []
 name: LDFLAGS
diff --git a/spec/build/bsps/optlinkflags.yml b/spec/build/bsps/optlinkflags.yml
new file mode 100644
index 0000000..35fa483
--- /dev/null
+++ b/spec/build/bsps/optlinkflags.yml
@@ -0,0 +1,16 @@
+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) 2021 embedded brains GmbH (http://www.embedded-brains.de)
+default: []
+default-by-variant: []
+description: |
+  Flags passed to the linker.
+enabled-by: true
+links: []
+name: LINKFLAGS
+type: build



More information about the vc mailing list