summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8188/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/mt8188/Makefile.inc')
-rw-r--r--src/soc/mediatek/mt8188/Makefile.inc22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8188/Makefile.inc b/src/soc/mediatek/mt8188/Makefile.inc
new file mode 100644
index 0000000000..9a2ff7dc5a
--- /dev/null
+++ b/src/soc/mediatek/mt8188/Makefile.inc
@@ -0,0 +1,22 @@
+ifeq ($(CONFIG_SOC_MEDIATEK_MT8188),y)
+
+all-$(CONFIG_SPI_FLASH) += spi.c
+all-y += ../common/timer.c
+all-y += ../common/uart.c
+
+bootblock-y += bootblock.c
+bootblock-y += ../common/mmu_operations.c
+
+romstage-y += ../common/cbmem.c
+romstage-y += emi.c
+
+ramstage-y += emi.c
+ramstage-y += soc.c
+
+CPPFLAGS_common += -Isrc/soc/mediatek/mt8188/include
+CPPFLAGS_common += -Isrc/soc/mediatek/common/include
+
+$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
+ ./util/mtkheader/gen-bl-img.py mt8183 sf $< $@
+
+endif