summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/Makefile.mtk
diff options
context:
space:
mode:
authorWolfram Sang <wolfram@the-dreams.de>2011-05-04 22:58:17 +0200
committerHarald Welte <laforge@gnumonks.org>2011-05-05 09:52:47 +0200
commita5611f9555fb288149c01371411a1405aa61056e (patch)
treefe968b3ccb2703c11e2785ccb1f23f2b42b3b281 /src/target/firmware/Makefile.mtk
parent07589649b1ae07a45afc370e222374281735aa72 (diff)
target/boards: add infrastructure for loaders for Mediatek platforms
We are just interested in the loaders here, no other applications needed. Split it from the compal-based phones. Add mt62xx as first user. Based on a patch by steve-m, but cleaned up and seperated from compal/calypso. Signed-off-by: Steve Markgraf <steve@steve-m.de> Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
Diffstat (limited to 'src/target/firmware/Makefile.mtk')
-rw-r--r--src/target/firmware/Makefile.mtk32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/target/firmware/Makefile.mtk b/src/target/firmware/Makefile.mtk
new file mode 100644
index 00000000..30fa2fcf
--- /dev/null
+++ b/src/target/firmware/Makefile.mtk
@@ -0,0 +1,32 @@
+# List of all supported boards (meant to be overridden on command line)
+BOARDS?=mt62xx
+
+# List of all applications (meant to be overridden on command line)
+APPLICATIONS?=loader_mtk
+
+mtkram_LDS=board/mediatek/ram.lds
+mtkram_OBJS=board/mediatek/start.ram.o
+
+mtk_COMMON_OBJS=board/mediatek/uart.o
+
+# Mediatek MT62xx
+mt62xx_OBJS=$(mtk_COMMON_OBJS) board/mt62xx/init.o
+mt62xx_ENVIRONMENTS=mtkram
+
+# Global include path
+INCLUDES=-Iinclude/ -I../../../include -I../../shared/libosmocore/include
+
+FLASH_OBJS=flash/cfi_flash.o
+
+# Objects that go in all applications
+ANY_APP_OBJS+=$(FLASH_OBJS)
+
+# Various objects that are currently linked into all applications
+ANY_APP_LIBS+=lib/libmini.a comm/libcomm.a ../../shared/libosmocore/build-target/src/.libs/libosmocore.a
+
+# Libraries are defined in subdirectories
+-include comm/Makefile
+-include lib/Makefile
+
+# Include rules
+-include Makefile.inc