summaryrefslogtreecommitdiff
path: root/resources/coreboot/default/patches/0007-Makefile-Don-t-run-genbuild_h-if-not-doing-a-build.patch
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2021-05-18 13:56:12 +0100
committerLeah Rowe <leah@libreboot.org>2021-05-18 13:56:12 +0100
commit89517ed6b9e89321e1387ed8f534d7f080ffdf57 (patch)
tree6f2085cb89b035d3cb62ad49b470a514672102d6 /resources/coreboot/default/patches/0007-Makefile-Don-t-run-genbuild_h-if-not-doing-a-build.patch
libreboot!
this is forked from the "libre" branch in osboot, which is itself a libre, deblobbed fork of osboot, a blobbed up fork of libreboot libreboot needed to be purged clean. this is the new libreboot development repository. the old one has been abandoned
Diffstat (limited to 'resources/coreboot/default/patches/0007-Makefile-Don-t-run-genbuild_h-if-not-doing-a-build.patch')
-rw-r--r--resources/coreboot/default/patches/0007-Makefile-Don-t-run-genbuild_h-if-not-doing-a-build.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/resources/coreboot/default/patches/0007-Makefile-Don-t-run-genbuild_h-if-not-doing-a-build.patch b/resources/coreboot/default/patches/0007-Makefile-Don-t-run-genbuild_h-if-not-doing-a-build.patch
new file mode 100644
index 00000000..b0a09f15
--- /dev/null
+++ b/resources/coreboot/default/patches/0007-Makefile-Don-t-run-genbuild_h-if-not-doing-a-build.patch
@@ -0,0 +1,36 @@
+From 710301b4e80325012e86cdec3c0c4bcca03be551 Mon Sep 17 00:00:00 2001
+From: Martin Roth <martin@coreboot.org>
+Date: Sun, 9 May 2021 10:26:10 -0600
+Subject: [PATCH 07/17] Makefile: Don't run genbuild_h if not doing a build
+
+genbuild_h was being run on every make invocation - clean, distclean,
+etc. to get the source date epoch value. This value isn't used unless
+a build is being done, so don't run it on non-compile make invocations.
+
+Signed-off-by: Martin Roth <martin@coreboot.org>
+Change-Id: I2afc0affc17116e0db849ea968474bc19dbb0ae1
+Reviewed-on: https://review.coreboot.org/c/coreboot/+/53997
+Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
+Reviewed-by: Angel Pons <th3fanbus@gmail.com>
+Reviewed-by: Patrick Georgi <pgeorgi@google.com>
+---
+ Makefile | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/Makefile b/Makefile
+index 8290b45e89..1e6cca44b3 100644
+--- a/Makefile
++++ b/Makefile
+@@ -24,7 +24,9 @@ COREBOOT_EXPORTS += top src srck obj objutil objk
+ LANG:=C
+ LC_ALL:=C
+ TZ:=UTC0
++ifneq ($(NOCOMPILE),1)
+ SOURCE_DATE_EPOCH := $(shell $(top)/util/genbuild_h/genbuild_h.sh . | sed -n 's/^.define COREBOOT_BUILD_EPOCH\>.*"\(.*\)".*/\1/p')
++endif
+ # don't use COREBOOT_EXPORTS to ensure build steps outside the coreboot build system
+ # are reproducible
+ export LANG LC_ALL TZ SOURCE_DATE_EPOCH
+--
+2.25.1
+