From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 23 Apr 2021 12:55:53 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lZtTV-0005gO-TM for lore@lore.pengutronix.de; Fri, 23 Apr 2021 12:55:53 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lZtTV-000237-As; Fri, 23 Apr 2021 12:55:53 +0200 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZtTU-00022m-2h; Fri, 23 Apr 2021 12:55:52 +0200 Received: from rsc by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1lZtTT-0005Bt-Px; Fri, 23 Apr 2021 12:55:51 +0200 Date: Fri, 23 Apr 2021 12:55:51 +0200 From: Robert Schwebel To: Roland Hieber Message-ID: <20210423105551.sheq5kbhxalo34ps@pengutronix.de> References: <20210409230252.28738-1-rhi@pengutronix.de> <20210409230252.28738-3-rhi@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210409230252.28738-3-rhi@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 12:55:27 up 142 days, 1:01, 50 users, load average: 0,06, 0,03, 0,01 User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [DistroKit] [PATCH 3/3] barebox: set barebox build sytem version X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: distrokit@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On Sat, Apr 10, 2021 at 01:02:52AM +0200, Roland Hieber wrote: > 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 > --- > configs/platform-mips/rules/barebox-ar9331.make | 1 + > configs/platform-mips/rules/barebox-common.make | 1 + > configs/platform-mips/rules/barebox-malta.make | 1 + > configs/platform-rpi/platformconfig | 3 ++- > configs/platform-v7a/rules/barebox-am335x-mlo.make | 1 + > configs/platform-v7a/rules/barebox-am335x.make | 1 + > configs/platform-v7a/rules/barebox-at91.make | 4 +++- > configs/platform-v7a/rules/barebox-common.make | 1 + > configs/platform-v7a/rules/barebox-mx6.make | 1 + > configs/platform-v7a/rules/barebox-rpi2.make | 1 + > configs/platform-v7a/rules/barebox-stm32mp.make | 4 +++- > configs/platform-v7a/rules/barebox-vexpress.make | 1 + > configs/platform-v8a/rules/barebox-imx8m.make | 1 + > 13 files changed, 18 insertions(+), 3 deletions(-) Applied to next. rsc -- Pengutronix e.K. | Dipl.-Ing. Robert Schwebel | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | _______________________________________________ DistroKit mailing list DistroKit@pengutronix.de