Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] make barebox build reproducible
@ 2023-01-19 12:10 Casey Reeves
  2023-01-19 12:10 ` [Buildroot] [PATCH 1/2] package/lzop: provide a patch to allow overriding of modification time Casey Reeves
  2023-01-19 12:10 ` [Buildroot] [PATCH 2/2] boot/barebox: pass required environment variables for reproducible build Casey Reeves
  0 siblings, 2 replies; 6+ messages in thread
From: Casey Reeves @ 2023-01-19 12:10 UTC (permalink / raw)
  To: buildroot

These patches are needed to make the barebox build reproducible when 
BR2_REPRODUCIBLE is enabled. To do this, there are two requirements:

- provide a patch for the lzop package so it can override the 
modification time with $SOURCE_DATE_EPOCH
- set the appropriate environment variables in barebox.mk, and pass them 
to the make invocation when building

Barebox makes use of lzop to compress the device tree included in its 
binary, hence the reason for the lzop patch. Also, barebox uses the very 
same variables as the kernel for making the build reproducible 
(KBUILD_BUILD_HOST, KBUILD_BUILD_TIMESTAMP, KBUILD_BUILD_USER).

Casey Reeves (2):
  package/lzop: provide a patch to allow overriding of modification time
  boot/barebox: pass required environment variables for reproducible
    build

 boot/barebox/barebox.mk                       |  9 +++-
 ...3-allow-overriding-modification-time.patch | 46 +++++++++++++++++++
 2 files changed, 54 insertions(+), 1 deletion(-)
 create mode 100644 package/lzop/0003-allow-overriding-modification-time.patch

-- 
2.39.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-02-21 20:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 12:10 [Buildroot] [PATCH 0/2] make barebox build reproducible Casey Reeves
2023-01-19 12:10 ` [Buildroot] [PATCH 1/2] package/lzop: provide a patch to allow overriding of modification time Casey Reeves
2023-02-05 14:17   ` Thomas Petazzoni via buildroot
2023-01-19 12:10 ` [Buildroot] [PATCH 2/2] boot/barebox: pass required environment variables for reproducible build Casey Reeves
2023-02-06  8:54   ` Thomas Petazzoni via buildroot
2023-02-21 20:50   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox