# HG changeset patch # User Michael Spacefalcon # Date 1408141770 0 # Node ID 25a3095e8a987655176dffc73e0b186737414a91 # Parent 083e71ff56032fb1d2f8d6a65339ef7214ec4bf6 L1: dsp subdir added to the build diff -r 083e71ff5603 -r 25a3095e8a98 gsm-fw/L1/Makefile --- 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} diff -r 083e71ff5603 -r 25a3095e8a98 gsm-fw/L1/dsp/Makefile --- /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 diff -r 083e71ff5603 -r 25a3095e8a98 gsm-fw/L1/dsp/leadapi.c --- 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 -/* } */ }