From c9e0445932691b3b34c7fff979e5799d53d58d59 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 6 Jul 2021 07:48:46 +0200 Subject: 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(-) create mode 100644 spec/build/bsps/optlinkflags.yml diff --git a/spec/build/bsps/bspopts.yml b/spec/build/bsps/bspopts.yml index 836d94476e..d43136e94e 100644 --- a/spec/build/bsps/bspopts.yml +++ b/spec/build/bsps/bspopts.yml @@ -17,6 +17,8 @@ links: uid: optfatalverb - role: build-dependency uid: optincludes +- role: build-dependency + uid: optlinkflags - role: build-dependency uid: optldflags - role: build-dependency diff --git a/spec/build/bsps/optldflags.yml b/spec/build/bsps/optldflags.yml index d0e365f407..d86d8cfb50 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 0000000000..35fa483721 --- /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 -- cgit v1.2.3