From c6c8cb7f799f81a55b94c1e64ee13773dfc7f631 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Sat, 7 Dec 2013 18:57:02 -0600 Subject: Fix linking microcode with more than one microcode file When assembling microcode , the rule to link individual object files into one larger file only passed the first dependency to the linker. As a results only microcode from one object file would actually get linked. This is fixed by replacing $^ with $+ inside the make rule. Change-Id: I65c0565f2e03777af23e530c08d1241804ca19b1 Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/4500 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/cpu/Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/Makefile.inc') diff --git a/src/cpu/Makefile.inc b/src/cpu/Makefile.inc index 34ae53ecef..7cd9d5fddd 100644 --- a/src/cpu/Makefile.inc +++ b/src/cpu/Makefile.inc @@ -41,7 +41,7 @@ endif # final microcode file. $(obj)/cpu_microcode_blob.o: $$(cpu_microcode-objs) @printf " LD $(subst $(obj)/,,$(@))\n" - $(LD) -static --entry=0 $< -o $@ + $(LD) -static --entry=0 $+ -o $@ # We have a lot of useless data in the large blob, and we are only interested in # the data section, so we only copy that part to the final microcode file -- cgit v1.2.3