aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/amd/agesa/Makefile.inc
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-02-14 09:05:02 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-02-25 11:16:52 +0000
commit47b9e457fa7f80843ee68a6a2daf4115445465c5 (patch)
treeb23ec48e6a9a9a7694b19a7bf0649d0fb58faefb /src/vendorcode/amd/agesa/Makefile.inc
parent423d03c16307df584d8890eab2cbfe2cb936081e (diff)
AGESA vendorcode: Define libagesa rule just once
No reason to keep this rule in per-family directory. Change-Id: I6bfc9a277674077774c4cb398f8add5e4fa99c69 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31509 Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode/amd/agesa/Makefile.inc')
-rw-r--r--src/vendorcode/amd/agesa/Makefile.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vendorcode/amd/agesa/Makefile.inc b/src/vendorcode/amd/agesa/Makefile.inc
index 24110a7909..df34330da8 100644
--- a/src/vendorcode/amd/agesa/Makefile.inc
+++ b/src/vendorcode/amd/agesa/Makefile.inc
@@ -18,6 +18,13 @@ else
$(eval $(call create_class_compiler,libagesa,x86_64))
endif
+$(obj)/libagesa.a: $$(libagesa-objs)
+ @printf " AGESA $(subst $(obj)/,,$(@))\n"
+ $(AR_libagesa) rcsDT $@ $+
+
+romstage-libs += $(obj)/libagesa.a
+ramstage-libs += $(obj)/libagesa.a
+
# buildOpts should be in libagesa
$(obj)/romstage/mainboard/$(MAINBOARDDIR)/buildOpts.o: CPPFLAGS_x86_32 += $(BUILDOPTS_INCLUDES)
$(obj)/ramstage/mainboard/$(MAINBOARDDIR)/buildOpts.o: CPPFLAGS_x86_32 += $(BUILDOPTS_INCLUDES)