2014-03-19 22:29:48 +01:00
|
|
|
bootblock-y += cbfs.c
|
2014-04-10 04:23:54 +02:00
|
|
|
bootblock-y += clock.c
|
2014-04-11 05:35:05 +02:00
|
|
|
bootblock-y += gpio.c
|
2014-03-19 22:29:48 +01:00
|
|
|
|
|
|
|
romstage-y += cbfs.c
|
2014-04-10 04:23:54 +02:00
|
|
|
romstage-y += clock.c
|
2014-04-11 05:35:05 +02:00
|
|
|
romstage-y += gpio.c
|
2014-03-19 22:29:48 +01:00
|
|
|
|
|
|
|
ramstage-y += cbfs.c
|
2014-04-10 04:23:54 +02:00
|
|
|
ramstage-y += clock.c
|
2014-04-11 05:35:05 +02:00
|
|
|
ramstage-y += gpio.c
|
2014-04-10 04:23:04 +02:00
|
|
|
ramstage-y += timer.c
|
2014-04-08 00:26:39 +02:00
|
|
|
|
2014-04-08 03:59:53 +02:00
|
|
|
ifeq ($(CONFIG_USE_BLOBS),y)
|
2014-04-08 00:26:39 +02:00
|
|
|
|
2014-04-08 03:59:53 +02:00
|
|
|
# Generate the actual coreboot bootblock code
|
|
|
|
$(objcbfs)/bootblock.raw: $(objcbfs)/bootblock.elf
|
2014-04-08 00:26:39 +02:00
|
|
|
@printf " OBJCOPY $(subst $(obj)/,,$(@))\n"
|
2014-04-08 03:59:53 +02:00
|
|
|
$(OBJCOPY_bootblock) -O binary $< $@.tmp
|
|
|
|
@mv $@.tmp $@
|
|
|
|
|
|
|
|
# Add MBN header to allow SBL3 to start coreboot bootblock
|
|
|
|
$(objcbfs)/bootblock.mbn: $(objcbfs)/bootblock.raw
|
2014-04-08 00:26:39 +02:00
|
|
|
@printf " ADD MBN $(subst $(obj)/,,$(@))\n"
|
2014-04-08 03:59:53 +02:00
|
|
|
./util/ipqheader/ipqheader.py $(CONFIG_BOOTBLOCK_BASE) $< $@.tmp
|
2014-04-08 00:26:39 +02:00
|
|
|
@mv $@.tmp $@
|
2014-04-08 03:59:53 +02:00
|
|
|
|
|
|
|
# Create a complete bootblock which will start up the system
|
2014-04-15 23:42:30 +02:00
|
|
|
$(objcbfs)/bootblock.bin: $(call strip_quotes,$(CONFIG_SBL_BLOB)) \
|
2014-04-08 03:59:53 +02:00
|
|
|
$(objcbfs)/bootblock.mbn
|
|
|
|
@printf " CAT $(subst $(obj)/,,$(@))\n"
|
|
|
|
@cat $^ > $@.tmp
|
|
|
|
@mv $@.tmp $@
|
|
|
|
|
2014-04-08 00:26:39 +02:00
|
|
|
endif
|
2014-04-11 05:53:32 +02:00
|
|
|
|
2014-04-11 05:35:05 +02:00
|
|
|
CPPFLAGS_common += -Isrc/soc/qualcomm/ipq806x/include
|