# HG changeset patch # User Michael Spacefalcon # Date 1411954908 0 # Node ID 029f631b22ff0ffed8a9b12b8d7273398f957cac # Parent 5ec79b82ab0472eab722e1e0554f7185e30cdfb8 starting to compile ALR diff -r 5ec79b82ab04 -r 029f631b22ff gsm-fw/g23m-gsm/alr/Makefile --- a/gsm-fw/g23m-gsm/alr/Makefile Sun Sep 28 23:29:16 2014 +0000 +++ b/gsm-fw/g23m-gsm/alr/Makefile Mon Sep 29 01:41:48 2014 +0000 @@ -1,5 +1,13 @@ -# stub Makefile, to be filled out -all: +CC= arm-elf-gcc +LD= arm-elf-ld + +CFLAGS= -O2 -fno-builtin -mthumb-interwork -mthumb +CPPFLAGS=-I. -I../../include -I../../include/condat -I../../gpf/inc \ + -I../../cdginc + +OBJS= alr_cbch.o + +all: ${OBJS} clean: rm -f *.[oa] *.out *errs diff -r 5ec79b82ab04 -r 029f631b22ff gsm-fw/g23m-gsm/alr/alr_cbch.c --- a/gsm-fw/g23m-gsm/alr/alr_cbch.c Sun Sep 28 23:29:16 2014 +0000 +++ b/gsm-fw/g23m-gsm/alr/alr_cbch.c Mon Sep 29 01:41:48 2014 +0000 @@ -21,6 +21,10 @@ #ifndef ALR_CBCH_C #define ALR_CBCH_C +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_PL /*==== INCLUDES ===================================================*/ diff -r 5ec79b82ab04 -r 029f631b22ff gsm-fw/include/condat-features.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gsm-fw/include/condat-features.h Mon Sep 29 01:41:48 2014 +0000 @@ -0,0 +1,26 @@ +/* + * This header file is a FreeCalypso concoction; its inclusion will be added + * to all of the C modules comprising the core TI/Condat G23 protocol stack, + * along with config.h and fixedconf.h. All definitions given herein used + * to be -D options which had to be given on the compilation line for + * every single module. + * + * In terms of the staticness vs. configurability, the options given here + * fall somewhere in the middle between config.h and fixedconf.h. The + * values set here have been taken from the pdt_*.mak makefiles in the + * Leonardo semi-src from Sotovik. + */ + +#define AT_INTERPRETER 1 +#define DTI2 1 +#define FF_ATI 1 +#define FF_CPHS 1 +#define FF_EM_MODE 1 +#define FF_MULTIBAND 1 +#define FF_HOMEZONE 1 +#define FF_MMI_SMS_DYNAMIC 1 +#define HAS_FLASH_EPROM 1 +#define SIM_TOOLKIT 1 +#define UART 1 +#define USE_L1FD_FUNC_INTERFACE 1 +#define VOCODER_FUNC_INTERFACE 1