changeset 675:029f631b22ff

starting to compile ALR
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 29 Sep 2014 01:41:48 +0000
parents 5ec79b82ab04
children 61df1066039e
files gsm-fw/g23m-gsm/alr/Makefile gsm-fw/g23m-gsm/alr/alr_cbch.c gsm-fw/include/condat-features.h
diffstat 3 files changed, 40 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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 ===================================================*/
--- /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