diff options
author | Roland Hieber <rhi@pengutronix.de> | 2021-04-10 01:02:52 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2021-04-23 12:39:54 +0200 |
commit | 22cf9785f7921ce59ec17c5efca219634fff12b3 (patch) | |
tree | dbc207e3594318687090276cee1641a779ba1d00 /configs/platform-v7a/scripts/lib | |
parent | f080c52c1a6a1d060a68de4cb6d2feb4109144e5 (diff) | |
download | DistroKit-22cf9785f7921ce59ec17c5efca219634fff12b3.tar.gz DistroKit-22cf9785f7921ce59ec17c5efca219634fff12b3.tar.xz |
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 <s.trumtrar@pengutronix.de>
| 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 <s.trumtrar@pengutronix.de>
| Message-Id: <20210401083641.9251-2-s.trumtrar@pengutronix.de>
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
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 <rhi@pengutronix.de>
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/scripts/lib')
0 files changed, 0 insertions, 0 deletions