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