summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/Makefile
blob: 43aca7c436659e25545bef7cddea273136a5ed66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Global include path
INCLUDES=-Iinclude/ -I../../../include -I../../shared/libosmocore/include

# Various objects that are currently linked into all applications
FLASH_OBJS=flash/cfi_flash.o
DISPLAY_OBJS=display/font_r8x8.o display/font_r8x8_horiz.o display/st7558.o display/ssd1783.o display/display.o
ABB_OBJS=abb/twl3025.o
RF_OBJS=rf/trf6151.o

# Board- and environment-specific startup code and linker script
START=board/common/compal_ramload_start.S

# List of all supported boards
BOARDS?=compal_e88 compal_e99
compal_COMMON_OBJS=board/common/rffe_compal_dualband.o board/common/calypso_uart.o board/common/calypso_pwl.o
compal_e88_OBJS=$(compal_COMMON_OBJS) board/compal_e88/init.o
compal_e99_OBJS=$(compal_COMMON_OBJS) board/compal_e99/init.o

# List of all supported execution environments
ENVIRONMENTS?=ramload osmoload
ramload_LDS=board/common/compal_ramload.lds
osmoload_LDS=board/common/compal_osmoload.lds

# List of all applications (add yours here!)
APPLICATIONS=hello_world compal_dump compal_dsp_dump layer1 loader

# Things that go in all applications
ANY_APP_OBJS+=$(START:.S=.o) $(ABB_OBJS) $(RF_OBJS) $(DISPLAY_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

# Libraries are defined in subdirectories
-include calypso/Makefile
-include layer1/Makefile
-include comm/Makefile
-include lib/Makefile

# Include rules
-include Makefile.inc