Furquan Shaikh | 7657057 | 2014-03-19 14:29:48 -0700 | [diff] [blame] | 1 | bootblock-y += cbfs.c |
Furquan Shaikh | 7657057 | 2014-03-19 14:29:48 -0700 | [diff] [blame] | 2 | |
| 3 | romstage-y += cbfs.c |
Furquan Shaikh | 7657057 | 2014-03-19 14:29:48 -0700 | [diff] [blame] | 4 | |
| 5 | ramstage-y += cbfs.c |
Vadim Bendebury | b1709bd | 2014-04-07 15:26:39 -0700 | [diff] [blame] | 6 | |
Vadim Bendebury | 9cb70ae | 2014-04-07 18:59:53 -0700 | [diff] [blame] | 7 | ifeq ($(CONFIG_USE_BLOBS),y) |
Vadim Bendebury | b1709bd | 2014-04-07 15:26:39 -0700 | [diff] [blame] | 8 | |
Vadim Bendebury | 9cb70ae | 2014-04-07 18:59:53 -0700 | [diff] [blame] | 9 | # Generate the actual coreboot bootblock code |
| 10 | $(objcbfs)/bootblock.raw: $(objcbfs)/bootblock.elf |
Vadim Bendebury | b1709bd | 2014-04-07 15:26:39 -0700 | [diff] [blame] | 11 | @printf " OBJCOPY $(subst $(obj)/,,$(@))\n" |
Vadim Bendebury | 9cb70ae | 2014-04-07 18:59:53 -0700 | [diff] [blame] | 12 | $(OBJCOPY_bootblock) -O binary $< $@.tmp |
Vadim Bendebury | b1709bd | 2014-04-07 15:26:39 -0700 | [diff] [blame] | 13 | @mv $@.tmp $@ |
Vadim Bendebury | 9cb70ae | 2014-04-07 18:59:53 -0700 | [diff] [blame] | 14 | |
| 15 | # Add MBN header to allow SBL3 to start coreboot bootblock |
| 16 | $(objcbfs)/bootblock.mbn: $(objcbfs)/bootblock.raw |
| 17 | @printf " ADD MBN $(subst $(obj)/,,$(@))\n" |
| 18 | ./util/ipqheader/ipqheader.py $(CONFIG_BOOTBLOCK_BASE) $< $@.tmp |
| 19 | @mv $@.tmp $@ |
| 20 | |
| 21 | # Create a complete bootblock which will start up the system |
| 22 | $(objcbfs)/bootblock.bin: ./$(call strip_quotes,$(CONFIG_SBL_BLOB)) \ |
| 23 | $(objcbfs)/bootblock.mbn |
| 24 | @printf " CAT $(subst $(obj)/,,$(@))\n" |
| 25 | @cat $^ > $@.tmp |
| 26 | @mv $@.tmp $@ |
| 27 | |
Vadim Bendebury | b1709bd | 2014-04-07 15:26:39 -0700 | [diff] [blame] | 28 | endif |