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 <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/4500
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Alexandru Gagniuc 2013-12-07 18:57:02 -06:00
parent fea5b50feb
commit c6c8cb7f79
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ endif
# final microcode file. # final microcode file.
$(obj)/cpu_microcode_blob.o: $$(cpu_microcode-objs) $(obj)/cpu_microcode_blob.o: $$(cpu_microcode-objs)
@printf " LD $(subst $(obj)/,,$(@))\n" @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 # 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 # the data section, so we only copy that part to the final microcode file