2021-01-07 13:25:54 +01:00
|
|
|
ifeq ($(CONFIG_SOC_MEDIATEK_MT8195),y)
|
|
|
|
|
|
|
|
bootblock-y += bootblock.c
|
2021-02-05 09:12:29 +01:00
|
|
|
bootblock-y += ../common/gpio.c gpio.c
|
2021-01-07 13:25:54 +01:00
|
|
|
bootblock-y += ../common/mmu_operations.c
|
|
|
|
bootblock-$(CONFIG_SPI_FLASH) += spi.c
|
2021-02-04 11:30:54 +01:00
|
|
|
bootblock-y += ../common/timer.c timer.c
|
2021-01-07 13:25:54 +01:00
|
|
|
bootblock-y += ../common/uart.c
|
2021-04-22 07:34:04 +02:00
|
|
|
bootblock-y += ../common/wdt.c
|
2021-01-07 13:25:54 +01:00
|
|
|
|
2021-02-05 09:12:29 +01:00
|
|
|
verstage-y += ../common/gpio.c gpio.c
|
2021-01-07 13:25:54 +01:00
|
|
|
verstage-$(CONFIG_SPI_FLASH) += spi.c
|
2021-02-04 11:30:54 +01:00
|
|
|
verstage-y += ../common/timer.c timer.c
|
2021-01-07 13:25:54 +01:00
|
|
|
verstage-y += ../common/uart.c
|
2021-04-22 07:34:04 +02:00
|
|
|
verstage-y += ../common/wdt.c
|
2021-01-07 13:25:54 +01:00
|
|
|
|
|
|
|
romstage-y += ../common/cbmem.c
|
|
|
|
romstage-y += emi.c
|
2021-02-05 09:12:29 +01:00
|
|
|
romstage-y += ../common/gpio.c gpio.c
|
2021-01-07 13:25:54 +01:00
|
|
|
romstage-$(CONFIG_SPI_FLASH) += spi.c
|
2021-02-04 11:30:54 +01:00
|
|
|
romstage-y += ../common/timer.c timer.c
|
2021-01-07 13:25:54 +01:00
|
|
|
romstage-y += ../common/uart.c
|
2021-04-22 07:34:04 +02:00
|
|
|
romstage-y += ../common/wdt.c
|
2021-01-07 13:25:54 +01:00
|
|
|
|
|
|
|
ramstage-y += emi.c
|
2021-02-05 09:12:29 +01:00
|
|
|
ramstage-y += ../common/gpio.c gpio.c
|
2021-01-07 13:25:54 +01:00
|
|
|
ramstage-$(CONFIG_SPI_FLASH) += spi.c
|
|
|
|
ramstage-y += soc.c
|
2021-02-04 11:30:54 +01:00
|
|
|
ramstage-y += ../common/timer.c timer.c
|
2021-01-07 13:25:54 +01:00
|
|
|
ramstage-y += ../common/uart.c
|
2021-04-22 07:34:04 +02:00
|
|
|
ramstage-y += ../common/wdt.c
|
2021-01-07 13:25:54 +01:00
|
|
|
|
|
|
|
CPPFLAGS_common += -Isrc/soc/mediatek/mt8195/include
|
|
|
|
CPPFLAGS_common += -Isrc/soc/mediatek/common/include
|
|
|
|
|
|
|
|
$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
|
|
|
|
./util/mtkheader/gen-bl-img.py mt8183 sf $< $@
|
|
|
|
|
|
|
|
endif
|