changeset 586:25a3095e8a98

L1: dsp subdir added to the build
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 15 Aug 2014 22:29:30 +0000
parents 083e71ff5603
children cc0944d35698
files gsm-fw/L1/Makefile gsm-fw/L1/dsp/Makefile gsm-fw/L1/dsp/leadapi.c
diffstat 3 files changed, 20 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/L1/Makefile	Fri Aug 15 22:15:05 2014 +0000
+++ b/gsm-fw/L1/Makefile	Fri Aug 15 22:29:30 2014 +0000
@@ -1,4 +1,4 @@
-SUBDIR=	cfile cust0 tpudrv
+SUBDIR=	cfile cust0 dsp tpudrv
 
 all:	${SUBDIR}
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/L1/dsp/Makefile	Fri Aug 15 22:29:30 2014 +0000
@@ -0,0 +1,13 @@
+CC=	arm-elf-gcc
+CFLAGS=	-O2 -fno-builtin -mthumb-interwork -mthumb
+LD=	arm-elf-ld
+
+OBJS=	leadapi.o leadboot.o
+
+all:	xipcode.o
+
+xipcode.o:	${OBJS}
+	${LD} -r -o $@ ${OBJS}
+
+clean:
+	rm -f *.[oa] *.out *errs
--- a/gsm-fw/L1/dsp/leadapi.c	Fri Aug 15 22:15:05 2014 +0000
+++ b/gsm-fw/L1/dsp/leadapi.c	Fri Aug 15 22:29:30 2014 +0000
@@ -33,17 +33,11 @@
 
 #define LEADAPI_C  1
 
-#include "l1sw.cfg"
-#include "chipset.cfg"
+#include "../../include/config.h"
+#include "../../include/sys_types.h"
 
-#if (OP_L1_STANDALONE == 0)
-  #include "main/sys_types.h"
-#else
-  #include "sys_types.h"
-#endif
-
-#include "memif/mem.h"
-#include "clkm/clkm.h"
+#include "../../bsp/mem.h"
+#include "../../bsp/clkm.h"
 #include "leadapi.h"
 
 
@@ -329,11 +323,10 @@
   else {
     error = LA_BAD_TAG;
   }
-  
-/*  if (error != NULL) { */                               // if an error was detected in the coff2c format,
+
+  if (error != NULL)                                  // if an error was detected in the coff2c format,
     error = LA_LoadPage16(code, page, start);         // try to download a coff-v1.0 coff2c output
     return(error);                                    // and return its result
-/*  } */
 }