summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2024-05-28 18:16:02 +0000
committerSubrata Banik <subratabanik@google.com>2024-05-29 09:18:26 +0000
commit93ca6b676cd0ac4c3755bb69cf690dc23a28b22a (patch)
tree4af74f23f3a3396c578a4c2f7baa97d8ca076df9 /payloads
parenteec556be2d4e3b9a3d5db1187909b25c2c224a7d (diff)
libpayload: Include libpayload-config.h in lib target
- Added `$(obj)/libpayload-config.h` as a dependency for the `lib` target. - This ensures the config header is up-to-date before building the library. TEST=Able to build google/rex. Change-Id: If26336f6261aadf611fa5338c4300873156cc3da Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82687 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Dinesh Gehlot <digehlot@google.com> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/Makefile.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/Makefile.mk b/payloads/libpayload/Makefile.mk
index d5a9a817fc..6dd33e1197 100644
--- a/payloads/libpayload/Makefile.mk
+++ b/payloads/libpayload/Makefile.mk
@@ -115,7 +115,7 @@ $(obj)/%.a: $$(%-objs)
printf " AR $(subst $(CURDIR)/,,$(@))\n"
printf "create $@\n$(foreach objc,$(filter-out %.a,$^),addmod $(objc)\n)$(foreach lib,$(filter %.a,$^),addlib $(lib)\n)save\nend\n" | $(AR) -M
-$(obj)/libpayload.ldscript: arch/$(ARCHDIR-y)/libpayload.ldscript
+$(obj)/libpayload.ldscript: arch/$(ARCHDIR-y)/libpayload.ldscript $(obj)/libpayload-config.h
@printf " LDSCRIPT $@\n"
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -E -P -x assembler-with-cpp -undef -o $@ $<