summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2012-04-30 23:15:17 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2012-05-01 11:35:28 +0200
commit843005c7694cd9866b293267e2b57e87c6cb490d (patch)
treeb4ad90c44acb24a0ee7119d3c440d2ac77039b7e
parent943ddcee53b02b5df649762a75327349ca8890f9 (diff)
Add vsa processor to cbfs-files
Change-Id: I548e86084acc51b0471160d37439385f524224cf Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/960 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
-rw-r--r--Makefile.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index c17978498e..534b985419 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -108,6 +108,14 @@ cbfs-files-processor-nvramtool= \
printf " CREATE $(2) (from $(1))\n"; $(objutil)/nvramtool/nvramtool -y $(src)/mainboard/$(MAINBOARDDIR)/cmos.layout -D $(2).tmp -p $(1) && mv $(2).tmp $(2))
#######################################################################
+# Link VSA binary to ELF-ish stage
+# arg1: source file
+# arg2: binary file name
+cbfs-files-processor-vsa= \
+ $(eval $(2): $(1) ; \
+ printf " CREATE $(2) (from $(1))\n"; $(OBJCOPY) --set-start 0x20 --adjust-vma 0x60000 -I binary -O elf32-i386 -B i386 $(1) $(2).tmp && $(LD) -m elf_i386 -e 0x60020 --section-start .data=0x60000 $(2).tmp -o $(2))
+
+#######################################################################
# Add handler for arbitrary files in CBFS
$(call add-special-class,cbfs-files)
cbfs-files-handler= \