Re: [Reproducible-builds] [U-Boot] [U-Boot, v2] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-08-25 Thread Paul Kocialkowski
Le mardi 25 août 2015 à 12:20 +0200, Andreas Bießmann a écrit : > On 08/25/2015 11:55 AM, Vagrant Cascadian wrote: > > On 2015-08-25, Andreas Bießmann wrote: > >> On 07/28/2015 05:00 PM, Tom Rini wrote: > >>> On Sun, Jul 26, 2015 at 06:48:15PM +0200, Paul Kocialko

Re: [Reproducible-builds] [PATCH v3 2/2] Makefile: Add SOURCE_DATE_TZ

2015-08-29 Thread Paul Kocialkowski
Le jeudi 13 août 2015 à 18:08 +1200, Chris Packham a écrit : > Along with SOURCE_DATE_EPOCH SOURCE_DATE_TZ can be used to recreate a > build with a specific date timestamp. This allows the verification of > source supplied with a pre-compiled binary. > > If SOURCE_DATE_EPOCH is supplied SOURCE_DAT

Re: [Reproducible-builds] [PATCH v3 1/2] Makefile: Use correct timezone for U_BOOT_TZ

2015-08-29 Thread Paul Kocialkowski
: Bin Meng > Tested-by: Paul Kocialkowski > --- > > Changes in v3: > - None > > Changes in v2: > - Collect some tested-by tags > - Remove reference to f3f431a71272 in the commit message > - Drop Ccs that were erroneously added when submitting v1, remaining

Re: [Reproducible-builds] [PATCH v3 2/2] Makefile: Add SOURCE_DATE_TZ

2015-08-29 Thread Paul Kocialkowski
Le mercredi 26 août 2015 à 21:08 +1200, Chris Packham a écrit : > On Wed, Aug 26, 2015 at 12:09 AM, Paul Kocialkowski wrote: > > Le jeudi 13 août 2015 à 18:08 +1200, Chris Packham a écrit : > >> Along with SOURCE_DATE_EPOCH SOURCE_DATE_TZ can be used to recreate a > >>

Re: [Reproducible-builds] [RFC PATCH] Makefile: search for GNU date

2015-08-29 Thread Paul Kocialkowski
Le jeudi 27 août 2015 à 10:13 +0200, Andreas Bießmann a écrit : > The SOURCE_DATE_EPOCH mechanism for reproducible builds requires the GNU > variant of date. Respect this and search it, error on missing GNU date. Well, IMHO we shouldn't check for GNU date but for the extensions it implements. Thos

Re: [Reproducible-builds] [RFC PATCH v2] Makefile: search for GNU date

2015-08-29 Thread Paul Kocialkowski
Le jeudi 27 août 2015 à 11:30 +0200, Andreas Bießmann a écrit : > The SOURCE_DATE_EPOCH mechanism for reproducible builds require some date > with -u and -d switch to print the date string of another time. In other > words it requires some date that behaves like the GNU date. > > Respect this and

Re: [Reproducible-builds] [RFC PATCH v2] Makefile: search for GNU date

2015-08-29 Thread Paul Kocialkowski
Le jeudi 27 août 2015 à 15:52 +0200, Andreas Bießmann a écrit : > On 08/27/2015 03:03 PM, Paul Kocialkowski wrote: > > Le jeudi 27 août 2015 à 11:30 +0200, Andreas Bießmann a écrit : > > > >> Changes in v2: > >> * check for '-u' and '

Re: [Reproducible-builds] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-09-28 Thread Paul Kocialkowski
Le jeudi 24 septembre 2015 à 09:05 -0700, Vagrant Cascadian a écrit : > On 2015-07-26, Paul Kocialkowski wrote: > > In order to achieve reproducible builds in U-Boot, timestamps that are > > defined > > at build-time have to be somewhat eliminated. The SOURCE_DATE_E

Re: [Reproducible-builds] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-10-02 Thread Paul Kocialkowski
Le mercredi 30 septembre 2015 à 08:50 -0700, Vagrant Cascadian a écrit : > On 2015-09-28, Paul Kocialkowski wrote: > > What do you think? Please let me know if I'm wrong. > > This patch on top of 2015.10-rc4 seems to resolve the issue for me: > > Index: u-

Re: [Reproducible-builds] [U-Boot] [PATCH] build: create time and date independent binary

2015-06-12 Thread Paul Kocialkowski
#define U_BOOT_TZ "NOTZ"') > +endef > +else > define filechk_timestamp.h > (LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; \ > LC_ALL=C date +'#define U_BOOT_TIME "%T"'; \ > LC_ALL=C date +'#define U_BOOT_

Re: [Reproducible-builds] [U-Boot] [PATCH] build: create time and date independent binary

2015-06-13 Thread Paul Kocialkowski
Le samedi 13 juin 2015 à 11:10 +0200, Holger Levsen a écrit : > Hi Paul, > > thanks for contacting us! > > On Freitag, 12. Juni 2015, Paul Kocialkowski wrote: > > I think a bit more is needed to get truly reproducible builds in U-Boot, > > but this is a first good s

Re: [Reproducible-builds] [U-Boot] [PATCH] build: create time and date independent binary

2015-07-19 Thread Paul Kocialkowski
> sorry for the late reply. No problem, I haven't kept you or the list posted on this either. I got a chance to discuss the issue with Lunar during RMLL 2015 and we came up with a nice way of doing things, using SOURCE_DATE_EPOCH. > On Samstag, 13. Juni 2015, Paul Kocialk

Re: [Reproducible-builds] [U-Boot] [PATCH] build: create time and date independent binary

2015-07-19 Thread Paul Kocialkowski
from today). Now that I think about it, maybe virtualisation would require simply too many VMs to setup. Either way, we can always try to add a toolchain build script to U-Boot. -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several de

Re: [Reproducible-builds] [U-Boot] [PATCH] build: create time and date independent binary

2015-07-19 Thread Paul Kocialkowski
-10 liner, not > the fancy one with variations, rebuilds and running debbindiff. Just the > above > "4 lines in working" - (those 4 lines dont work cause the variables are not > defined...) I could do that, but we have to figure out the toolchain issue first, I suppose

[Reproducible-builds] [PATCH] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-07-20 Thread Paul Kocialkowski
be built reproducibly. This is the case for e.g. sunxi devices. However, some other devices might need some more tweaks, especially regarding the image generation tools. Signed-off-by: Paul Kocialkowski --- Makefile | 7 --- tools/default_image.c | 21 - 2

Re: [Reproducible-builds] [U-Boot] [PATCH] build: create time and date independent binary

2015-07-20 Thread Paul Kocialkowski
? I think adding a config option adds all sorts of unnecessary complications. SOURCE_DATE_EPOCH is sufficient for what we want. Thanks a lot for your work, it has been a great base for the patch I just sent: http://patchwork.ozlabs.org/patch/497577/ Feel free to add your signed-off-by line since

Re: [Reproducible-builds] [PATCH] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-07-20 Thread Paul Kocialkowski
Le lundi 20 juillet 2015 à 10:01 +0200, Paul Kocialkowski a écrit : > In order to achieve reproducible builds in U-Boot, timestamps that are defined > at build-time have to be somewhat eliminated. The SOURCE_DATE_EPOCH > environment > variable allows setting a fixed value for thos

Re: [Reproducible-builds] [PATCH] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-07-20 Thread Paul Kocialkowski
o > > spot other areas that make the binaries not reproducible. However, I > > doubt this patch will evolve much and other fixes should be sent in > > subsequent patches. > > > >> Signed-off-by: Paul Kocialkowski > >> --- > >> Makefile

Re: [Reproducible-builds] [PATCH] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-07-21 Thread Paul Kocialkowski
Le lundi 20 juillet 2015 à 07:45 -0700, Vagrant Cascadian a écrit : > On 2015-07-20, Paul Kocialkowski wrote: > > In order to achieve reproducible builds in U-Boot, timestamps that are > > defined > > at build-time have to be somewhat eliminated. The SOURCE_DATE_E

Re: [Reproducible-builds] [PATCH] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-07-21 Thread Paul Kocialkowski
Le lundi 20 juillet 2015 à 17:13 +0200, Heiko Schocher a écrit : > Hello Paul, > > Am 20.07.2015 um 15:30 schrieb Paul Kocialkowski: > >> I am just on the jump into my holidays, so I have not yet the time > >> to test it ... I want to try it for all builds with the sc

[Reproducible-builds] [PATCH v2] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-07-26 Thread Paul Kocialkowski
be built reproducibly. This is the case for e.g. sunxi devices. However, some other devices might need some more tweaks, especially regarding the image generation tools. Signed-off-by: Paul Kocialkowski --- Makefile | 7 --- README| 12 tools

Re: [Reproducible-builds] [PATCH] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-07-27 Thread Paul Kocialkowski
Le lundi 20 juillet 2015 à 17:13 +0200, Heiko Schocher a écrit : > Hello Paul, > > Am 20.07.2015 um 15:30 schrieb Paul Kocialkowski: > >> I am just on the jump into my holidays, so I have not yet the time > >> to test it ... I want to try it for all builds with the sc

Re: [Reproducible-builds] [PATCH] Makefile: Use correct timezone for U_BOOT_TZ

2015-08-03 Thread Paul Kocialkowski
opinion about whether UTC should be default. I was also going to introduce a patch like yours later. For the record, UTC is default for Coreboot's timestamps. Thus, please remove that line. Otherwise, this is: Tested-By: Paul Kocialkowski > Signed-off-by: Chris Packham > --- > Hop

Re: [Reproducible-builds] [RFC PATCH] Makefile: Add SOURCE_DATE_TZ

2015-08-03 Thread Paul Kocialkowski
Le samedi 01 août 2015 à 22:32 +1200, Chris Packham a écrit : > Along with SOURCE_DATE_EPOCH SOURCE_DATE_TZ can be used to recreate a > build with a specific date timestamp. This allows the verification of > source supplied with a pre-compiled binary. > > If SOURCE_DATE_EPOCH is supplied SOURCE_DA