From 22cf9785f7921ce59ec17c5efca219634fff12b3 Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Sat, 10 Apr 2021 01:02:52 +0200 Subject: barebox: set barebox build sytem version Since Barebox v2020.11.0, the build system supports a configurable version string that is baked into the barebox image, see the following upstream barebox commits: * commit 98c221e3fad57f271d60 (2020-09-23, "Makefile: add buildsystem version variable") * commit c7dcac9de597f006fdc8 (2020-09-23, "common: print buildsystem version in barebox banner") * commit c600d8812e9f3b98591a (2020-09-23, "common: globalvar: add variable for buildsystem_version_string") * commit 01b53d3b728073996e7e (2020-09-23, "imd: add buildsystem version to metadata") Set that version string to the Git hash so we can always find out from which DistroKit version a barebox-in-the-wild was built. (Even if we don't use barebox >= v2020.11.0 on all platforms yet, future barebox updates will benefit from this change.) For mips, we use the upstream barebox rule, which takes the version string from the platformconfig. For all other platforms, this change effectively ports the following commit from PTXdist 2021.04.0: | commit f5500c922424ee71dd99e80f743ed6d994e5bca6 | Author: Steffen Trumtrar | Date: 2021-04-01 10:36:41 | | rules: barebox: support barebox buildsystem_version | | barebox supports setting a buildsystem version. This is useful to have | an exact buildsystem version like a commit hash accessible from barebox. | | Signed-off-by: Steffen Trumtrar | Message-Id: <20210401083641.9251-2-s.trumtrar@pengutronix.de> | Signed-off-by: Michael Olbrich Link: https://git.pengutronix.de/cgit/barebox/commit/?id=98c221e3fad57f271d60 Link: https://git.pengutronix.de/cgit/barebox/commit/?id=c7dcac9de597f006fdc8 Link: https://git.pengutronix.de/cgit/barebox/commit/?id=c600d8812e9f3b98591a Link: https://git.pengutronix.de/cgit/barebox/commit/?id=01b53d3b728073996e7e Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=f5500c922424ee71dd99 Signed-off-by: Roland Hieber Signed-off-by: Robert Schwebel --- configs/platform-mips/rules/barebox-malta.make | 1 + 1 file changed, 1 insertion(+) (limited to 'configs/platform-mips/rules/barebox-malta.make') diff --git a/configs/platform-mips/rules/barebox-malta.make b/configs/platform-mips/rules/barebox-malta.make index b60f163..d9a63fa 100644 --- a/configs/platform-mips/rules/barebox-malta.make +++ b/configs/platform-mips/rules/barebox-malta.make @@ -42,6 +42,7 @@ BAREBOX_MALTA_WRAPPER_BLACKLIST := \ BAREBOX_MALTA_CONF_OPT := \ -C $(BAREBOX_MALTA_DIR) \ O=$(BAREBOX_MALTA_BUILD_DIR) \ + BUILDSYSTEM_VERSION=$(PTXDIST_VCS_VERSION) \ $(call barebox-opts, BAREBOX_MALTA) BAREBOX_MALTA_MAKE_OPT := $(BAREBOX_MALTA_CONF_OPT) -- cgit v1.2.3