diff options
author | Ahmed Hossam <Ahmed.Hossam@opensynergy.com> | 2021-10-26 20:56:42 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-28 14:16:30 +0100 |
commit | 82070da31d86c5fd87818bea80ad1038ea74a94e (patch) | |
tree | 459a1723314c47f103690354396392c2c9dca811 /meta/recipes-core/psplash | |
parent | 52e97dc769858ce2d2e735a832f67972927dba8c (diff) | |
download | poky-82070da31d86c5fd87818bea80ad1038ea74a94e.tar.gz |
go.bbclass: Allow adding parameters to go ldflags
Currently, there is no clean way to pass extra parameters to the go tool link,
which is passed by the go build ldflags flag, the append needs to happen inside
the quotes of the ldflags parameter
See [YOCTO #14554].
Add a variable to allow adding extra parameters to -ldflags in the GO_LDFLAGS
variable, one of the main usecases is setting the application version.
For example, adding to the recipe something like
GO_EXTRA_LDFLAGS="-X main.Version=v1.0.0"
or
GO_EXTRA_LDFLAGS="-X main.Version=${PV}"
(From OE-Core rev: eaa7a61dab9a1d7bb039f16abdd9aacb44faa595)
Signed-off-by: Ahmed Hossam <Ahmed.Hossam@opensynergy.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/psplash')
0 files changed, 0 insertions, 0 deletions