Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-24 Thread Michael Olbrich
On Fri, Oct 12, 2018 at 12:21:14PM +, Baeuerle, Florian wrote: > Am Freitag, den 12.10.2018, 14:01 +0200 schrieb Michael Olbrich: > > On Thu, Oct 11, 2018 at 02:19:17PM +, Baeuerle, Florian wrote: > > > Inject fake timestamps into the build via faketime to produce the exact > > > same binar

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Michael Olbrich
On Tue, Oct 16, 2018 at 02:27:05PM +, Baeuerle, Florian wrote: > Am Dienstag, den 16.10.2018, 14:38 +0200 schrieb Michael Olbrich: > > On Tue, Oct 16, 2018 at 10:57:20AM +, Baeuerle, Florian wrote: > > > Am Dienstag, den 16.10.2018, 12:09 +0200 schrieb Michael Olbrich: > > > > On Thu, Oct 1

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Michael Olbrich
On Tue, Oct 16, 2018 at 07:15:37PM +0200, Alexander Dahl wrote: > On Tue, Oct 16, 2018 at 10:57:20AM +, Baeuerle, Florian wrote: > > SOURCE_DATE_EPOCH uses the ptxdist release number for the timestamp, thus > > the > > timestamp changes with every ptxdist release. I'd prefer to *really* get th

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Michael Olbrich
On Tue, Oct 16, 2018 at 02:11:52PM +, Baeuerle, Florian wrote: > Am Dienstag, den 16.10.2018, 14:51 +0200 schrieb Michael Olbrich: > > On Tue, Oct 16, 2018 at 11:06:19AM +, Baeuerle, Florian wrote: > > > Am Dienstag, den 16.10.2018, 10:59 +0200 schrieb Michael Olbrich: > > > > On Fri, Oct 1

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Alexander Dahl
Hello Florian, On Tue, Oct 16, 2018 at 10:57:20AM +, Baeuerle, Florian wrote: > SOURCE_DATE_EPOCH uses the ptxdist release number for the timestamp, thus the > timestamp changes with every ptxdist release. I'd prefer to *really* get the > same binary when the source code was not changed at all

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Baeuerle, Florian
Am Dienstag, den 16.10.2018, 14:38 +0200 schrieb Michael Olbrich: > On Tue, Oct 16, 2018 at 10:57:20AM +, Baeuerle, Florian wrote: > > Hi Michael, > > > > Am Dienstag, den 16.10.2018, 12:09 +0200 schrieb Michael Olbrich: > > > On Thu, Oct 11, 2018 at 02:19:17PM +, Baeuerle, Florian wrote:

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Baeuerle, Florian
Am Dienstag, den 16.10.2018, 14:51 +0200 schrieb Michael Olbrich: > On Tue, Oct 16, 2018 at 11:06:19AM +, Baeuerle, Florian wrote: > > Am Dienstag, den 16.10.2018, 10:59 +0200 schrieb Michael Olbrich: > > > On Fri, Oct 12, 2018 at 12:28:19PM +, Baeuerle, Florian wrote: > > > > Am Freitag, d

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Michael Olbrich
On Tue, Oct 16, 2018 at 11:06:19AM +, Baeuerle, Florian wrote: > Am Dienstag, den 16.10.2018, 10:59 +0200 schrieb Michael Olbrich: > > On Fri, Oct 12, 2018 at 12:28:19PM +, Baeuerle, Florian wrote: > > > Am Freitag, den 12.10.2018, 14:01 +0200 schrieb Michael Olbrich: > > > > On Thu, Oct 11

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Michael Olbrich
On Tue, Oct 16, 2018 at 10:57:20AM +, Baeuerle, Florian wrote: > Hi Michael, > > Am Dienstag, den 16.10.2018, 12:09 +0200 schrieb Michael Olbrich: > > On Thu, Oct 11, 2018 at 02:19:17PM +, Baeuerle, Florian wrote: > > > Inject fake timestamps into the build via faketime to produce the exac

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Baeuerle, Florian
Am Dienstag, den 16.10.2018, 10:59 +0200 schrieb Michael Olbrich: > On Fri, Oct 12, 2018 at 12:28:19PM +, Baeuerle, Florian wrote: > > Am Freitag, den 12.10.2018, 14:01 +0200 schrieb Michael Olbrich: > > > On Thu, Oct 11, 2018 at 02:19:17PM +, Baeuerle, Florian wrote: > > > > Inject fake ti

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Baeuerle, Florian
Hi Michael, Am Dienstag, den 16.10.2018, 12:09 +0200 schrieb Michael Olbrich: > On Thu, Oct 11, 2018 at 02:19:17PM +, Baeuerle, Florian wrote: > > Inject fake timestamps into the build via faketime to produce the exact > > same binaries. > > I'd like to see this patch split in two. > One to h

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Michael Olbrich
On Thu, Oct 11, 2018 at 02:19:17PM +, Baeuerle, Florian wrote: > Inject fake timestamps into the build via faketime to produce the exact > same binaries. I'd like to see this patch split in two. One to handle the KBUILD_BUILD_ stuff. That should be done like the kernel with the symlink magic,

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-16 Thread Michael Olbrich
On Fri, Oct 12, 2018 at 12:28:19PM +, Baeuerle, Florian wrote: > Am Freitag, den 12.10.2018, 14:01 +0200 schrieb Michael Olbrich: > > On Thu, Oct 11, 2018 at 02:19:17PM +, Baeuerle, Florian wrote: > > > Inject fake timestamps into the build via faketime to produce the exact > > > same binar

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-12 Thread Baeuerle, Florian
Am Freitag, den 12.10.2018, 14:01 +0200 schrieb Michael Olbrich: > On Thu, Oct 11, 2018 at 02:19:17PM +, Baeuerle, Florian wrote: > > Inject fake timestamps into the build via faketime to produce the exact > > same binaries. > > > > Signed-off-by: Florian Bäuerle > > --- > > platforms/barebo

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-12 Thread Baeuerle, Florian
Am Freitag, den 12.10.2018, 14:01 +0200 schrieb Michael Olbrich: > On Thu, Oct 11, 2018 at 02:19:17PM +, Baeuerle, Florian wrote: > > Inject fake timestamps into the build via faketime to produce the exact > > same binaries. > > > > Signed-off-by: Florian Bäuerle > > --- > > platforms/barebo

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-12 Thread Michael Olbrich
On Thu, Oct 11, 2018 at 02:19:17PM +, Baeuerle, Florian wrote: > Inject fake timestamps into the build via faketime to produce the exact > same binaries. > > Signed-off-by: Florian Bäuerle > --- > platforms/barebox.in | 10 ++ > rules/barebox.make | 16 +++- > 2 files c

Re: [ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-12 Thread Baeuerle, Florian
I tested this for phycore-am335x and phycard-imx27 bootloaders. I get the same binaries from different machines, but I think anyone using that feature should first test it before putting any trust into it. This is a quick implementation that I primarily need for my RAUC bundles (for not overwritin

[ptxdist] [PATCH 2/3] barebox: add option for building barebox reproducibly

2018-10-11 Thread Baeuerle, Florian
Inject fake timestamps into the build via faketime to produce the exact same binaries. Signed-off-by: Florian Bäuerle --- platforms/barebox.in | 10 ++ rules/barebox.make | 16 +++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/platforms/barebox.in b/platfo