summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorManuel Mendez2021-01-29 15:23:54 +0100
committerMichael Brown2021-01-30 19:06:34 +0100
commitbc4979e2cf375f7d9bf81ccf00bc2679f3dbabc2 (patch)
tree70dfdbef328cab58225b1dd843715eb794326e60 /src/Makefile.housekeeping
parent[build] Use SOURCE_DATE_EPOCH if it exists (diff)
downloadipxe-bc4979e2cf375f7d9bf81ccf00bc2679f3dbabc2.tar.gz
ipxe-bc4979e2cf375f7d9bf81ccf00bc2679f3dbabc2.tar.xz
ipxe-bc4979e2cf375f7d9bf81ccf00bc2679f3dbabc2.zip
[build] Use $(shell ...) to invoke BUILD_ID_CMD
When using $(shell), make will first invoke BUILD_ID_CMD and then have the value defined when calling $(LD). This means we get to see the _build_id when building with make V=1. Previously the build_id was figured out as a subshell command run during the recipe execution without being able to see the build_id itself. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index fc0850b1..81bd3c45 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -1199,7 +1199,7 @@ $(BIN)/version.%.o : core/version.c $(MAKEDEPS) $(GIT_INDEX)
$(BIN)/%.tmp : $(BIN)/version.%.o $(BLIB) $(MAKEDEPS) $(LDSCRIPT)
$(QM)$(ECHO) " [LD] $@"
$(Q)$(LD) $(LDFLAGS) -T $(LDSCRIPT) $(TGT_LD_FLAGS) $< $(BLIB) -o $@ \
- --defsym _build_id=`$(BUILD_ID_CMD)` \
+ --defsym _build_id=$(shell $(BUILD_ID_CMD)) \
--defsym _build_timestamp=$(BUILD_TIMESTAMP) \
-Map $(BIN)/$*.tmp.map
$(Q)$(OBJDUMP) -ht $@ | $(PERL) $(SORTOBJDUMP) >> $(BIN)/$*.tmp.map