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

2015-06-12 Thread Paul Kocialkowski
/config/uboot.release FORCE $(call filechk,version.h) -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several devices, a free software mobile operating system putting the emphasis on freedom and privacy/security. Website: http

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 step! you've seen https

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

2015-08-03 Thread Paul Kocialkowski
. 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 cont...@paulk.fr Signed-off-by: Chris Packham judge.pack...@gmail.com --- Hopefully this will suit

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 scripts I posted with my v2

[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 cont...@paulk.fr --- Makefile | 7 --- README| 12

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_EPOCH environment variable allows

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 scripts I posted with my v2

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

2015-07-19 Thread Paul Kocialkowski
are not defined...) I could do that, but we have to figure out the toolchain issue first, I suppose. -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several devices, a free software mobile operating system putting the emphasis on freedom

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

2015-07-19 Thread Paul Kocialkowski
the many different architectures that U-Boot supports, unless done with virtualisation (see my other email 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

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 Kocialkowski wrote: you've

[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 cont...@paulk.fr --- Makefile | 7 --- tools/default_image.c | 21

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 those timestamps

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

2015-07-20 Thread Paul Kocialkowski
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 it's inspired by your patch. -- Paul Kocialkowski, Replicant

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

2015-07-20 Thread Paul Kocialkowski
not reproducible. However, I doubt this patch will evolve much and other fixes should be sent in subsequent patches. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- Makefile | 7 --- tools/default_image.c | 21 - 2 files changed, 24

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] [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 cont...@paulk.fr 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 build

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_DATE_TZ

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. Those

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 '-d @0' switch rather than for the GNU variant Makefile | 15

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 Kocialkowski wrote: In order to achieve

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-boot/