changeset 546:c7e53436c451

L1: starting to compile core C files
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 03 Aug 2014 06:58:00 +0000
parents cc584a357886
children 32f7494783db
files gsm-fw/L1/Makefile gsm-fw/L1/cfile/Makefile gsm-fw/L1/cfile/l1_afunc.c
diffstat 3 files changed, 20 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/L1/Makefile	Sun Aug 03 06:29:53 2014 +0000
+++ b/gsm-fw/L1/Makefile	Sun Aug 03 06:58:00 2014 +0000
@@ -1,4 +1,4 @@
-SUBDIR=	cust0
+SUBDIR=	cfile cust0
 
 all:	${SUBDIR}
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/L1/cfile/Makefile	Sun Aug 03 06:58:00 2014 +0000
@@ -0,0 +1,16 @@
+CC=	arm-elf-gcc
+CPPFLAGS=-I../../include -I../include -I../audio_include -I../audio_cust0 \
+	-I../tm_include -I../tm_cust0 -I../tpudrv
+CFLAGS=	-O2 -fno-builtin -mthumb-interwork
+LD=	arm-elf-ld
+
+IOBJS=
+XOBJS=	l1_afunc.o
+
+all:	${XOBJS}
+
+${XOBJS}:	%.o : %.c
+	${CC} ${CFLAGS} ${CPPFLAGS} -mthumb -c $<
+
+clean:
+	rm -f *.[oa] *.out *errs
--- a/gsm-fw/L1/cfile/l1_afunc.c	Sun Aug 03 06:29:53 2014 +0000
+++ b/gsm-fw/L1/cfile/l1_afunc.c	Sun Aug 03 06:58:00 2014 +0000
@@ -9,8 +9,9 @@
 
 #define  L1_AFUNC_C
 
+#include "config.h"
+#include "l1_confg.h"
 #include "l1_macro.h"
-#include "l1_confg.h"
 
 #if (CODE_VERSION == SIMULATION)
   #include <string.h>
@@ -84,7 +85,7 @@
     #include "l1aac_defty.h"
   #endif
   #include "l1_defty.h"
-  #include "cust_os.h"
+  #include "../../gpf/inc/cust_os.h"
   #include "l1_msgty.h"
   #include "l1_varex.h"
   #include "l1_proto.h"