# HG changeset patch # User Michael Spacefalcon # Date 1397194647 0 # Node ID 06ee568296974c4a0c9df5e7c147b3b4ddd00863 # Parent 79080922d8e45ac77385bffdb3de547b33ae7b6b GPF: frame.c compiles diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/frame/frame.c --- a/gsm-fw/gpf/frame/frame.c Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/frame/frame.c Fri Apr 11 05:37:27 2014 +0000 @@ -25,9 +25,11 @@ /*==== INCLUDES ===================================================*/ #include +#include +#include + +#include "gpfconf.h" #include "typedefs.h" -#include "string.h" -#include "stdio.h" #include "glob_defs.h" #include "os.h" diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/frame/iram/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gsm-fw/gpf/frame/iram/Makefile Fri Apr 11 05:37:27 2014 +0000 @@ -0,0 +1,11 @@ +CC= arm-elf-gcc +CFLAGS= -O2 -fno-builtin -mthumb-interwork +CPPFLAGS=-I../../inc -DRUN_INT_RAM +VPATH= .. + +OBJS= frame.o + +all: ${OBJS} + +clean: + rm -f *.[oa] *errs diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/frame/xip/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gsm-fw/gpf/frame/xip/Makefile Fri Apr 11 05:37:27 2014 +0000 @@ -0,0 +1,11 @@ +CC= arm-elf-gcc +CFLAGS= -O2 -fno-builtin -mthumb-interwork -mthumb +CPPFLAGS=-I../../inc -DRUN_FLASH +VPATH= .. + +OBJS= frame.o + +all: ${OBJS} + +clean: + rm -f *.[oa] *errs diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/alert.h --- a/gsm-fw/gpf/inc/alert.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/alert.h Fri Apr 11 05:37:27 2014 +0000 @@ -20,6 +20,8 @@ #ifndef ALERT_H #define ALERT_H +#include "gpfconf.h" + #undef ALERT #undef E_ALERT diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/drvconf.h --- a/gsm-fw/gpf/inc/drvconf.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/drvconf.h Fri Apr 11 05:37:27 2014 +0000 @@ -22,6 +22,7 @@ /*==== INCLUDES =============================================================*/ #include "typedefs.h" +#include "gpfconf.h" #include "gdi.h" #include "vsi.h" diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/frm_glob.h --- a/gsm-fw/gpf/inc/frm_glob.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/frm_glob.h Fri Apr 11 05:37:27 2014 +0000 @@ -22,6 +22,7 @@ /*==== INCLUDES =============================================================*/ +#include "gpfconf.h" #include "frm_types.h" /*==== CONSTANTS ============================================================*/ diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/frm_types.h --- a/gsm-fw/gpf/inc/frm_types.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/frm_types.h Fri Apr 11 05:37:27 2014 +0000 @@ -22,6 +22,7 @@ /*==== INCLUDES =============================================================*/ +#include "gpfconf.h" #include "pei.h" #include "gdi.h" diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/glob_defs.h --- a/gsm-fw/gpf/inc/glob_defs.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/glob_defs.h Fri Apr 11 05:37:27 2014 +0000 @@ -20,6 +20,8 @@ #ifndef GLOB_DEFS_H #define GLOB_DEFS_H +#include "gpfconf.h" + #define GUARD_PATTERN 0xAFFEDEAD #ifdef _ESF_SUPPORT_ diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/gpfconf.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gsm-fw/gpf/inc/gpfconf.h Fri Apr 11 05:37:27 2014 +0000 @@ -0,0 +1,38 @@ +/* + * This header file is a FreeCalypso addition; ditto for the + * #include "gpfconf.h" lines which had to be added near the beginning + * of just about every original GPF header file. + * + * In their original form, GPF sources and headers required all of the + * library compile-time configuration settings (i.e., those config + * settings which affect the library build, rather than stuff set in + * the separately-linked configuration module) to be given as -D arguments + * on the compilation command line. It would have been fine if these + * -D definitions were needed only for the build of GPF libs themselves, + * but the #ifdef logic in the header files means that these -D defs + * were also needed for every user of these GPF headers as well! + * + * This bizarre quirk of the GPF headers is fully consistent with TI's + * general approach of supplying an insanely long list of -I's and -D's + * on the cl470 compilation command line for every single module, + * first through BuSyB-generated makefiles, then later through SBuild + * voodoo. Needless to say, we wish no part of that lunacy in FreeCalypso. + * + * Because of the nature of the preprocessor definitions needed for GPF + * (some are totally fixed, others may be tweaked for debugging, but + * none are of the target/feature-dependent sort), I decided to create + * this gpfconf.h header file instead of adding this junk to the + * config.h mechanism. + */ + +/* the following two are needed unquestionably */ +#define _TARGET_ 1 +#define _NUCLEUS_ 1 + +/* + * GPF build configuration settings like debug and memory supervision + * are selected here. For now I'm setting the "official" configuration + * to match that of the GPF libs in the Leonardo semi-src, the one that + * runs on the GTA02 modem as leo2moko production-quality firmware. + */ +#define NU_DEBUG 1 diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/gsi.h --- a/gsm-fw/gpf/inc/gsi.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/gsi.h Fri Apr 11 05:37:27 2014 +0000 @@ -24,7 +24,8 @@ /*==== INCLUDES =============================================================*/ -#include +#include "gpfconf.h" +#include "gdi.h" /*==== DEFINITIONS ==========================================================*/ diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/ipcapi.h --- a/gsm-fw/gpf/inc/ipcapi.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/ipcapi.h Fri Apr 11 05:37:27 2014 +0000 @@ -23,7 +23,7 @@ #include "cms.h" #undef EXPORT -#include +#include "typedefs.h" /* define extra function codes for driver ipc */ #define IPC_SELF 10 diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/os.h --- a/gsm-fw/gpf/inc/os.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/os.h Fri Apr 11 05:37:27 2014 +0000 @@ -20,6 +20,7 @@ #ifndef __OS_H__ #define __OS_H__ +#include "gpfconf.h" #include "os_const.h" /*==== CONSTANTS ===================================================*/ diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/os_const.h --- a/gsm-fw/gpf/inc/os_const.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/os_const.h Fri Apr 11 05:37:27 2014 +0000 @@ -22,6 +22,7 @@ /*==== INCLUDES =============================================================*/ +#include "gpfconf.h" /*==== CONSTS ===============================================================*/ diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/os_types.h --- a/gsm-fw/gpf/inc/os_types.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/os_types.h Fri Apr 11 05:37:27 2014 +0000 @@ -22,7 +22,8 @@ /*==== INCLUDES =============================================================*/ -#include "nucleus.h" +#include "gpfconf.h" +#include "../../nucleus/nucleus.h" #include "os.h" #include "glob_defs.h" diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/tstheader.h --- a/gsm-fw/gpf/inc/tstheader.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/tstheader.h Fri Apr 11 05:37:27 2014 +0000 @@ -22,6 +22,7 @@ /*==== INCLUDES =============================================================*/ +#include "gpfconf.h" #include "tools.h" /*==== CONSTS ===============================================================*/ diff -r 79080922d8e4 -r 06ee56829697 gsm-fw/gpf/inc/vsi.h --- a/gsm-fw/gpf/inc/vsi.h Thu Apr 10 04:06:05 2014 +0000 +++ b/gsm-fw/gpf/inc/vsi.h Fri Apr 11 05:37:27 2014 +0000 @@ -23,6 +23,7 @@ /*==== INCLUDES =============================================================*/ #include +#include "gpfconf.h" #include "header.h" #include "gdi.h" #include "drvconf.h"