Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 1 | ifeq ($(CONFIG_SOC_MEDIATEK_MT8186),y) |
| 2 | |
| 3 | bootblock-y += bootblock.c |
Rex-BC Chen | ac07b03 | 2021-09-27 18:50:26 +0800 | [diff] [blame] | 4 | bootblock-y += ../common/eint_event.c |
Rex-BC Chen | a6b3af9 | 2021-09-23 20:21:18 +0800 | [diff] [blame] | 5 | bootblock-y += ../common/flash_controller.c |
Guodong Liu | 09cbb06 | 2021-09-29 17:47:59 +0800 | [diff] [blame] | 6 | bootblock-y += ../common/gpio.c gpio.c |
Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 7 | bootblock-y += ../common/mmu_operations.c |
Chun-Jie Chen | 76e0b9d | 2021-09-24 18:41:06 +0800 | [diff] [blame] | 8 | bootblock-y += ../common/pll.c pll.c |
Ruwen Liu | 0480a19 | 2021-11-04 13:30:23 +0800 | [diff] [blame^] | 9 | bootblock-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c |
Rex-BC Chen | a74f443 | 2021-09-27 14:12:00 +0800 | [diff] [blame] | 10 | bootblock-y += ../common/timer.c timer.c |
Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 11 | bootblock-y += ../common/uart.c |
Rex-BC Chen | 5db9fa7 | 2021-09-27 13:49:15 +0800 | [diff] [blame] | 12 | bootblock-y += ../common/wdt.c wdt.c |
Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 13 | |
Rex-BC Chen | a6b3af9 | 2021-09-23 20:21:18 +0800 | [diff] [blame] | 14 | verstage-y += ../common/flash_controller.c |
Guodong Liu | 09cbb06 | 2021-09-29 17:47:59 +0800 | [diff] [blame] | 15 | verstage-y += ../common/gpio.c gpio.c |
Ruwen Liu | 0480a19 | 2021-11-04 13:30:23 +0800 | [diff] [blame^] | 16 | verstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c |
Rex-BC Chen | a74f443 | 2021-09-27 14:12:00 +0800 | [diff] [blame] | 17 | verstage-y += ../common/timer.c timer.c |
Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 18 | verstage-y += ../common/uart.c |
Rex-BC Chen | 5db9fa7 | 2021-09-27 13:49:15 +0800 | [diff] [blame] | 19 | verstage-y += ../common/wdt.c wdt.c |
Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 20 | |
| 21 | romstage-y += ../common/cbmem.c |
| 22 | romstage-y += emi.c |
Rex-BC Chen | a6b3af9 | 2021-09-23 20:21:18 +0800 | [diff] [blame] | 23 | romstage-y += ../common/flash_controller.c |
Guodong Liu | 09cbb06 | 2021-09-29 17:47:59 +0800 | [diff] [blame] | 24 | romstage-y += ../common/gpio.c gpio.c |
Ruwen Liu | 0480a19 | 2021-11-04 13:30:23 +0800 | [diff] [blame^] | 25 | romstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c |
Rex-BC Chen | a74f443 | 2021-09-27 14:12:00 +0800 | [diff] [blame] | 26 | romstage-y += ../common/timer.c timer.c |
Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 27 | romstage-y += ../common/uart.c |
Rex-BC Chen | 5db9fa7 | 2021-09-27 13:49:15 +0800 | [diff] [blame] | 28 | romstage-y += ../common/wdt.c wdt.c |
Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 29 | |
| 30 | ramstage-y += emi.c |
Rex-BC Chen | a6b3af9 | 2021-09-23 20:21:18 +0800 | [diff] [blame] | 31 | ramstage-y += ../common/flash_controller.c |
Guodong Liu | 09cbb06 | 2021-09-29 17:47:59 +0800 | [diff] [blame] | 32 | ramstage-y += ../common/gpio.c gpio.c |
Ruwen Liu | 0480a19 | 2021-11-04 13:30:23 +0800 | [diff] [blame^] | 33 | ramstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c |
Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 34 | ramstage-y += soc.c |
Rex-BC Chen | a74f443 | 2021-09-27 14:12:00 +0800 | [diff] [blame] | 35 | ramstage-y += ../common/timer.c timer.c |
Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 36 | ramstage-y += ../common/uart.c |
Rex-BC Chen | 5db9fa7 | 2021-09-27 13:49:15 +0800 | [diff] [blame] | 37 | ramstage-y += ../common/wdt.c wdt.c |
Rex-BC Chen | 73e6b8e | 2021-11-02 10:31:53 +0800 | [diff] [blame] | 38 | |
| 39 | CPPFLAGS_common += -Isrc/soc/mediatek/mt8186/include |
| 40 | CPPFLAGS_common += -Isrc/soc/mediatek/common/include |
| 41 | |
| 42 | $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin |
| 43 | ./util/mtkheader/gen-bl-img.py mt8183 sf $< $@ |
| 44 | |
| 45 | endif |