2018-05-31 03:20:53 +02:00
|
|
|
ifeq ($(CONFIG_SOC_MEDIATEK_MT8183),y)
|
|
|
|
|
2018-06-01 08:33:11 +02:00
|
|
|
bootblock-y += bootblock.c
|
2018-06-08 12:21:45 +02:00
|
|
|
bootblock-y += ../common/mmu_operations.c mmu_operations.c
|
2018-05-31 03:20:53 +02:00
|
|
|
bootblock-$(CONFIG_SPI_FLASH) += spi.c
|
|
|
|
bootblock-y += ../common/timer.c
|
|
|
|
ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y)
|
|
|
|
bootblock-$(CONFIG_DRIVERS_UART) += ../common/uart.c
|
|
|
|
endif
|
2018-06-01 08:33:11 +02:00
|
|
|
bootblock-y += ../common/wdt.c
|
2018-05-31 03:20:53 +02:00
|
|
|
|
|
|
|
verstage-$(CONFIG_SPI_FLASH) += spi.c
|
|
|
|
verstage-y += ../common/timer.c
|
|
|
|
verstage-$(CONFIG_DRIVERS_UART) += ../common/uart.c
|
2018-06-01 08:33:11 +02:00
|
|
|
verstage-y += ../common/wdt.c
|
2018-05-31 03:20:53 +02:00
|
|
|
|
2018-06-08 12:21:45 +02:00
|
|
|
romstage-y += emi.c
|
|
|
|
romstage-y += ../common/mmu_operations.c mmu_operations.c
|
2018-05-31 03:20:53 +02:00
|
|
|
romstage-$(CONFIG_SPI_FLASH) += spi.c
|
|
|
|
romstage-y += ../common/timer.c
|
|
|
|
romstage-$(CONFIG_DRIVERS_UART) += ../common/uart.c
|
2018-06-01 08:33:11 +02:00
|
|
|
romstage-y += ../common/wdt.c
|
2018-05-31 03:20:53 +02:00
|
|
|
|
|
|
|
ramstage-y += ../common/cbmem.c emi.c
|
2018-06-08 12:21:45 +02:00
|
|
|
ramstage-y += ../common/mmu_operations.c mmu_operations.c
|
2018-06-05 06:20:00 +02:00
|
|
|
ramstage-y += ../common/mtcmos.c mtcmos.c
|
2018-06-08 12:21:45 +02:00
|
|
|
ramstage-y += soc.c
|
2018-05-31 03:20:53 +02:00
|
|
|
ramstage-$(CONFIG_SPI_FLASH) += spi.c
|
|
|
|
ramstage-y += ../common/timer.c
|
|
|
|
ramstage-$(CONFIG_DRIVERS_UART) += ../common/uart.c
|
2018-06-01 08:33:11 +02:00
|
|
|
ramstage-y += ../common/wdt.c
|
2018-05-31 03:20:53 +02:00
|
|
|
|
|
|
|
CPPFLAGS_common += -Isrc/soc/mediatek/mt8183/include
|
|
|
|
CPPFLAGS_common += -Isrc/soc/mediatek/common/include
|
|
|
|
|
|
|
|
$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
|
|
|
|
./util/mtkheader/gen-bl-img.py mt8183 emmc $< $@
|
|
|
|
|
|
|
|
endif
|