[Buildroot] [git commit branch/2020.11.x] package/mender/mender.mk: fix linker version argument

Peter Korsgaard peter at korsgaard.com
Sat Apr 3 16:04:58 UTC 2021

commit: https://git.buildroot.net/buildroot/commit/?id=babb35f5f7d75fd35cacd2fe882ca04ae1356fc9
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.11.x

The current linker flag "-X main.Version=$(MENDER_VERSION)" no longer points
to the correct location, which results in "version: unknown" when runnning
"mender -version." Update the linker flag to point to the correct location.

Signed-off-by: Adam Duskett <Aduskett at rivian.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit b5f7fa88381e3a4aa0e6c1e567dd5f164de176ba)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/mender/mender.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/mender/mender.mk b/package/mender/mender.mk
index 1807ccfee0..0224e84a47 100644
--- a/package/mender/mender.mk
+++ b/package/mender/mender.mk
@@ -35,7 +35,7 @@ MENDER_LICENSE_FILES = \
+MENDER_LDFLAGS = -X github.com/mendersoftware/mender/conf.Version=$(MENDER_VERSION)
 	directory \

More information about the buildroot mailing list