summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Roth <martin@coreboot.org>2021-05-09 10:26:10 -0600
committerPatrick Georgi <pgeorgi@google.com>2021-05-12 15:13:39 +0000
commit6318f1f500b69bbba156ec78598406cf30fd5e02 (patch)
tree4c6ead2b3d27bafea70717f66ce6563937220f6a /Makefile
parentb403da65cddff557da67cabd1a66e1053b8967c7 (diff)
downloadcoreboot-6318f1f500b69bbba156ec78598406cf30fd5e02.tar.gz
coreboot-6318f1f500b69bbba156ec78598406cf30fd5e02.tar.bz2
coreboot-6318f1f500b69bbba156ec78598406cf30fd5e02.zip
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 02c6288f15bd..e25c081ac899 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