[PATCH 1/3] mkstandalone: add argument --fixed-time to override mtime of files

2015-12-04 Thread Alexander Couzens
mkstandalone adds several files to an archive. Doing this it uses the mtime to give these files a timestamp. --fixed-time overrides these timestamps with a given. Replacing all timestamps with a specific one is required to get reproducible builds. See source epoch specification of reproducible-bu

[PATCH 0/3] reproducible builds

2015-12-04 Thread Alexander Couzens
Hi, I would like to build grub reproducible for coreboot. The mkrescue patch is not needed for reproducible builds in coreboot and might dropped, because someone want to create a direct override argument to set the uuid reproducible. Best, lynxis Alexander Couzens (3): mkstandalone: add argume

[PATCH 2/3] mkrescue: add argument --fixed-time to get reproducible uuids

2015-12-04 Thread Alexander Couzens
The uuid generation is based on the time. --- util/grub-mkrescue.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c index 4511826..164c4e1 100644 --- a/util/grub-mkrescue.c +++ b/util/grub-mkrescue.c @@ -52,6 +52,7 @@ s

[PATCH 3/3] Makefile: use FIXED_TIMESTAMP for mkstandalone if set

2015-12-04 Thread Alexander Couzens
mkstandalone sets timestamps for files which can be overriden by a fixed_timestamp. This makes it possible to build reproducible builds for coreboot. To build a reproducible build of grub for coreboot do: make default_payload.elf FIXED_TIMESTAMP=1134242 --- Makefile.am | 2 +- 1 file changed, 1

Re: [PATCH 3/3] Makefile: use FIXED_TIMESTAMP for mkstandalone if set

2015-12-04 Thread Alexander Couzens
On Fri, 4 Dec 2015 17:10:44 +0100 Alexander Couzens wrote: > mkstandalone sets timestamps for files which can be overriden by a > fixed_timestamp. This makes it possible to build reproducible builds > for coreboot. > > To build a reproducible build of grub for coreboot do: > make default_payloa

[PATCH] Makefile/coreboot use SOURCE_DATE_EPOCH as time source if set

2015-12-04 Thread Alexander Couzens
mkstandalone sets timestamps for files which can be overriden by a fixed_timestamp. This makes it possible to build reproducible builds for coreboot. To build a reproducible build of grub for coreboot do: export SOURCE_DATE_EPOCH=1134242 make default_payload.elf --- Makefile.am | 2 +- 1 file ch

Re: [PATCH 1/3] mkstandalone: add argument --fixed-time to override mtime of files

2015-12-04 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 04.12.2015 17:10, Alexander Couzens wrote: > mkstandalone adds several files to an archive. Doing this it uses the > mtime to give these files a timestamp. > --fixed-time overrides these timestamps with a given. > > Replacing all timestamps with a specific one is required > to get reproducible

Re: [PATCH 3/3] Makefile: use FIXED_TIMESTAMP for mkstandalone if set

2015-12-04 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 04.12.2015 17:10, Alexander Couzens wrote: > mkstandalone sets timestamps for files which can be overriden by a > fixed_timestamp. > This makes it possible to build reproducible builds for coreboot. > > To build a reproducible build of grub for coreboot do: > make default_payload.elf FIXED_TIM

[PATCH v3 1/3] mkstandalone: add argument --fixed-time to override mtime of files

2015-12-04 Thread Alexander Couzens
mkstandalone adds several files to an archive. Doing this it uses the mtime to give these files a timestamp. --fixed-time overrides these timestamps with a given. Replacing all timestamps with a specific one is required to get reproducible builds. See source epoch specification of reproducible-bu

[PATCH v3 0/3] reproducible builds

2015-12-04 Thread Alexander Couzens
Changelog: - v2: - 3/3: rewrite commit message - 3/3: rename variable into SOURCE_DATE_EPOCH - v3: - */3: initialize fixed_time argument - 1+2/3: remove argument letter '-t' only --fixed-time works - 1+2/3: initialize fixed_time = -1 Alexander Couzens (3): mkstandalone: add argument --fixe

[PATCH v3 2/3] mkrescue: add argument --fixed-time to get reproducible uuids

2015-12-04 Thread Alexander Couzens
The uuid generation is based on the time. --- util/grub-mkrescue.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c index 4511826..1af1da2 100644 --- a/util/grub-mkrescue.c +++ b/util/grub-mkrescue.c @@ -52,6 +52,7 @@

[PATCH v3 3/3] Makefile/coreboot use SOURCE_DATE_EPOCH as time source if set

2015-12-04 Thread Alexander Couzens
mkstandalone sets timestamps for files which can be overriden by a fixed_timestamp. This makes it possible to build reproducible builds for coreboot. To build a reproducible build of grub for coreboot do: export SOURCE_DATE_EPOCH=1134242 make default_payload.elf --- Makefile.am | 2 +- 1 file ch

Re: [PATCH v3 0/3] reproducible builds

2015-12-04 Thread Andrei Borzenkov
04.12.2015 21:32, Alexander Couzens пишет: > Changelog: > > - v2: > - 3/3: rewrite commit message > - 3/3: rename variable into SOURCE_DATE_EPOCH > - v3: > - */3: initialize fixed_time argument > - 1+2/3: remove argument letter '-t' only --fixed-time works > - 1+2/3: initialize fixed_time = -

Re: [PATCH 1/3] mkstandalone: add argument --fixed-time to override mtime of files

2015-12-04 Thread Andrei Borzenkov
04.12.2015 21:00, Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 04.12.2015 17:10, Alexander Couzens wrote: >> mkstandalone adds several files to an archive. Doing this it uses the >> mtime to give these files a timestamp. >> --fixed-time overrides these timestamps with a given. >> >> Replacing

Re: grub_machine_get_bootlocation and partitions

2015-12-04 Thread Andrei Borzenkov
01.12.2015 20:45, Vladimir 'phcoder' Serbinenko пишет: > Do you have a failure scenario? hd0,1 is not recommended but it's still > valid and so should still work Yes, I misunderstood what I have seen. Sorry. > Le 1 déc. 2015 5:19 PM, "Andrei Borzenkov" a écrit : > >> If partition information is