From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] tools/firmware: pass EXTRAVERSION to seabios build Date: Mon, 29 May 2017 09:57:58 +0200 Message-ID: <20170529075758.GA31939@aepfle.de> References: <20170526124105.9567-1-olaf@aepfle.de> <22824.13793.439043.451505@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6449854315637776787==" Return-path: In-Reply-To: <22824.13793.439043.451505@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Ian Jackson Cc: Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============6449854315637776787== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 26, Ian Jackson wrote: > This seems like a real problem which should be improved. But maybe we > should use Xen's EXTRAVERSION by default ? After thinking about it, why does the tools build not just enforce a fixed string? There is no point for scripts/buildversion.py to put current time and buildhost into the binary. This breaks reproducible builds. A simple, untested change like this should be enough: diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile index 8562f547bc..c2b5985dc7 100644 --- a/tools/firmware/Makefile +++ b/tools/firmware/Makefile @@ -22,6 +22,8 @@ ovmf-dir: seabios-dir: GIT=3D$(GIT) $(XEN_ROOT)/scripts/git-checkout.sh $(SEABIOS_UPSTREAM_URL) = $(SEABIOS_UPSTREAM_REVISION) seabios-dir cp seabios-config seabios-dir/.config; + rm -f seabios-dir/.version + echo '$(SEABIOS_UPSTREAM_REVISION)' > seabios-dir/.version $(MAKE) -C seabios-dir olddefconfig =20 .PHONY: all @@ -35,7 +37,7 @@ ifeq ($(CONFIG_ROMBIOS),y) false ; \ fi endif - $(MAKE) $(LD32BIT-y) CC=3D$(CC) PYTHON=3D$(PYTHON) subdirs-$@ + $(MAKE) $(LD32BIT-y) CC=3D$(CC) PYTHON=3D$(PYTHON) EXTRAVERSION=3D"-Xen" = subdirs-$@ =20 =20 .PHONY: install Olaf --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSkRyP6Rn//f03pRUBdQqD6ppg2fgUCWSvUggAKCRBdQqD6ppg2 fuMLAKCdH4ClxHTAMzJNyDL6k9NvW8xEiQCdFO7EtlwZ7HGOduY54b1Fjz0x52k= =lzaj -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24-- --===============6449854315637776787== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============6449854315637776787==--