summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2012-12-10 20:33:07 +0100
committerSylvain Munaut <tnt@246tNt.com>2013-01-02 20:44:11 +0100
commitd9f6921c020af4c53d6507ed271886e24855a5df (patch)
tree0f5ca8ba059de41bc026666f2a7fac22dcfb74c0
parent09447f3bff1c2c48e71ebc51ef337a8bb4f5303f (diff)
fw/build: Group env / boards / applications
No functional changes, just moving things around Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--src/target/firmware/Makefile108
1 files changed, 66 insertions, 42 deletions
diff --git a/src/target/firmware/Makefile b/src/target/firmware/Makefile
index a71eef6..8faaca7 100644
--- a/src/target/firmware/Makefile
+++ b/src/target/firmware/Makefile
@@ -1,14 +1,32 @@
+##
+## Osmocom-BB: Target firmware Makefile
+##
+#
+# Environments
+#
+
+compalram_LDS=board/compal/ram.lds
+compalram_OBJS=board/compal/start.ram.o board/compal/exceptions_redirected.o board/compal/handlers.o
+
+highram_LDS=board/compal/highram.lds
+highram_OBJS=board/compal/start.ram.o board/compal/exceptions_redirected.o board/compal/handlers.o
+
+e88loader_LDS=board/compal_e88/loader.lds
+e88loader_OBJS=board/compal/start.rom.o board/compal/header.o board/compal/exceptions_redirect.o
+
+e88flash_LDS=board/compal_e88/flash.lds
+e88flash_OBJS=board/compal/start.rom.o board/compal/header.o board/compal/exceptions_redirected.o board/compal/handlers.o
+
+
+#
+# Boards
+#
# List of all supported boards (meant to be overridden on command line)
BOARDS?=compal_e88 compal_e86 compal_e99 se_j100 gta0x pirelli_dpl10
-# List of all applications (meant to be overridden on command line)
-APPLICATIONS?=hello_world compal_dsp_dump layer1 loader chainload rssi
-
# Framebuffer support, board specific drivers
-#
-
FB_OBJS=fb/framebuffer.o fb/font.o fb/helvR08.o fb/helvB14.o fb/c64.o \
fb/symbols.o
@@ -20,65 +38,53 @@ FB_dpl10_OBJS=$(FB_OBJS) fb/fb_rgb332.o fb/fb_s6b33b1x.o
FB_dummy_OBJS=$(FB_OBJS) fb/fb_dummy.o
# TI Calypso
-
calypso_COMMON_OBJS=board/common/calypso_uart.o board/common/calypso_pwl.o
# OpenMoko GTA0x
-
-gta0x_OBJS=$(calypso_COMMON_OBJS) board/gta0x/rffe_gta0x_triband.o board/gta0x/init.o \
- board/gta0x/rf_power.o battery/dummy.o $(FB_dummy_OBJS)
+gta0x_OBJS=$(calypso_COMMON_OBJS) board/gta0x/init.o \
+ board/gta0x/rffe_gta0x_triband.o board/gta0x/rf_power.o \
+ battery/dummy.o $(FB_dummy_OBJS)
gta0x_ENVIRONMENTS=highram
# Pirelli DP-L10
-
-pirelli_dpl10_OBJS=$(calypso_COMMON_OBJS) board/pirelli_dpl10/rffe_dpl10_triband.o board/pirelli_dpl10/init.o \
- board/pirelli_dpl10/rf_power.o battery/dummy.o $(FB_dpl10_OBJS)
+pirelli_dpl10_OBJS=$(calypso_COMMON_OBJS) board/pirelli_dpl10/init.o \
+ board/pirelli_dpl10/rffe_dpl10_triband.o board/pirelli_dpl10/rf_power.o \
+ battery/dummy.o $(FB_dpl10_OBJS)
pirelli_dpl10_ENVIRONMENTS=highram
# Compal Generic
-
-compal_COMMON_OBJS=$(calypso_COMMON_OBJS) board/compal/rffe_dualband.o board/compal/rf_power.o
+compal_COMMON_OBJS=$(calypso_COMMON_OBJS) \
+ board/compal/rffe_dualband.o board/compal/rf_power.o
compal_COMMON_ENVIRONMENTS=compalram highram
-compalram_LDS=board/compal/ram.lds
-compalram_OBJS=board/compal/start.ram.o board/compal/exceptions_redirected.o board/compal/handlers.o
-
-highram_LDS=board/compal/highram.lds
-highram_OBJS=board/compal/start.ram.o board/compal/exceptions_redirected.o board/compal/handlers.o
-
# Compal E88
-
-compal_e88_OBJS=$(compal_COMMON_OBJS) board/compal_e88/init.o battery/compal_e88.o $(FB_e88_OBJS)
+compal_e88_OBJS=$(compal_COMMON_OBJS) board/compal_e88/init.o \
+ battery/compal_e88.o $(FB_e88_OBJS)
compal_e88_ENVIRONMENTS=$(compal_COMMON_ENVIRONMENTS) e88loader e88flash
-e88loader_LDS=board/compal_e88/loader.lds
-e88loader_OBJS=board/compal/start.rom.o board/compal/header.o board/compal/exceptions_redirect.o
-
-e88flash_LDS=board/compal_e88/flash.lds
-e88flash_OBJS=board/compal/start.rom.o board/compal/header.o board/compal/exceptions_redirected.o board/compal/handlers.o
-
# Compal E86 (has a different RFFE configuration)
-
-compal_e86_OBJS=$(calypso_COMMON_OBJS) board/compal_e86/rffe_dualband_e86.o board/compal/rf_power.o \
- board/compal_e86/init.o battery/dummy.o $(FB_e86_OBJS)
+compal_e86_OBJS=$(calypso_COMMON_OBJS) board/compal_e86/init.o \
+ board/compal_e86/rffe_dualband_e86.o board/compal/rf_power.o \
+ battery/dummy.o $(FB_e86_OBJS)
compal_e86_ENVIRONMENTS=$(compal_COMMON_ENVIRONMENTS)
# Compal E99
-
-compal_e99_OBJS=$(compal_COMMON_OBJS) board/compal_e99/init.o battery/dummy.o $(FB_e99_OBJS)
+compal_e99_OBJS=$(compal_COMMON_OBJS) board/compal_e99/init.o \
+ battery/dummy.o $(FB_e99_OBJS)
compal_e99_ENVIRONMENTS=$(compal_COMMON_ENVIRONMENTS)
-e99loader_LDS=board/compal_e99/loader.lds
-e99loader_OBJS=board/compal/header.o
-e99flash_LDS=board/compal_e99/flash.lds
-
# Sony Ericsson J100 (made by Compal)
-
-se_j100_OBJS=$(compal_COMMON_OBJS) board/se_j100/init.o battery/dummy.o $(FB_j100_OBJS)
+se_j100_OBJS=$(compal_COMMON_OBJS) board/se_j100/init.o \
+ battery/dummy.o $(FB_j100_OBJS)
se_j100_ENVIRONMENTS=$(compal_COMMON_ENVIRONMENTS)
-# Global include path
-INCLUDES=-Iinclude/ -I../../../include -I../../shared/libosmocore/include
+
+#
+# Applications
+#
+
+# List of all applications (meant to be overridden on command line)
+APPLICATIONS?=hello_world compal_dsp_dump layer1 loader chainload rssi
# Various objects that are currently linked into all applications
FLASH_OBJS=flash/cfi_flash.o
@@ -87,7 +93,20 @@ RF_OBJS=rf/trf6151.o
# Objects that go in all applications
ANY_APP_OBJS+=$(ABB_OBJS) $(RF_OBJS) $(FLASH_OBJS)
-ANY_APP_LIBS+=calypso/libcalypso.a layer1/liblayer1.a lib/libmini.a comm/libcomm.a ../../shared/libosmocore/build-target/src/.libs/libosmocore.a ../../shared/libosmocore/build-target/src/gsm/.libs/libosmogsm.a
+ANY_APP_LIBS+= calypso/libcalypso.a \
+ layer1/liblayer1.a \
+ lib/libmini.a \
+ comm/libcomm.a \
+ ../../shared/libosmocore/build-target/src/.libs/libosmocore.a \
+ ../../shared/libosmocore/build-target/src/gsm/.libs/libosmogsm.a
+
+
+#
+# Build rules
+#
+
+# Global include path
+INCLUDES=-Iinclude/ -I../../../include -I../../shared/libosmocore/include
# Libraries are defined in subdirectories
-include calypso/Makefile
@@ -98,6 +117,11 @@ ANY_APP_LIBS+=calypso/libcalypso.a layer1/liblayer1.a lib/libmini.a comm/libcomm
# Include rules
-include Makefile.inc
+
+#
+# Build options
+#
+
# Uncomment this line if you want to enable Tx (Transmit) Support.
#CFLAGS += -DCONFIG_TX_ENABLE