changeset 324:7228920a0834

gsm-fw/gpf/tst_pei: objects compile
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 13 Apr 2014 08:19:38 +0000
parents d278439e905d
children ffb0442ffccf
files gsm-fw/gpf/Makefile gsm-fw/gpf/tst_pei/Makefile gsm-fw/gpf/tst_pei/iram/Makefile gsm-fw/gpf/tst_pei/tst_pei.c gsm-fw/gpf/tst_pei/tstdriver.c gsm-fw/gpf/tst_pei/xip/Makefile
diffstat 6 files changed, 43 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/Makefile	Sun Apr 13 07:56:00 2014 +0000
+++ b/gsm-fw/gpf/Makefile	Sun Apr 13 08:19:38 2014 +0000
@@ -1,4 +1,4 @@
-SUBDIR=	frame misc
+SUBDIR=	frame misc tst_pei
 
 all:	${SUBDIR}
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/gpf/tst_pei/Makefile	Sun Apr 13 08:19:38 2014 +0000
@@ -0,0 +1,12 @@
+SUBDIR=	iram xip
+
+all:	${SUBDIR}
+
+${SUBDIR}: FRC
+	cd $@; ${MAKE} ${MFLAGS}
+
+clean: FRC
+	rm -f *.[oa] *.out *errs
+	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
+
+FRC:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/gpf/tst_pei/iram/Makefile	Sun Apr 13 08:19:38 2014 +0000
@@ -0,0 +1,11 @@
+CC=	arm-elf-gcc
+CFLAGS=	-O2 -fno-builtin -mthumb-interwork
+CPPFLAGS=-I../../inc -DRUN_INT_RAM
+VPATH=	..
+
+OBJS=	tst_pei.o
+
+all:	${OBJS}
+
+clean:
+	rm -f *.[oa] *errs
--- a/gsm-fw/gpf/tst_pei/tst_pei.c	Sun Apr 13 07:56:00 2014 +0000
+++ b/gsm-fw/gpf/tst_pei/tst_pei.c	Sun Apr 13 08:19:38 2014 +0000
@@ -29,6 +29,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "gpfconf.h"
+#define	_FF_RV_EXIST_	1
+
 #ifdef _TOOLS_
  #include "frame_const.h" 
  #include <stdlib.h>
@@ -40,7 +43,7 @@
 
 #include "typedefs.h"
 #include "vsi.h"
-#include "frame.h"
+#include "../frame/frame.h"
 #include "pei.h"
 #include "os.h"
 #include "tools.h"
@@ -49,7 +52,7 @@
 #include "frm_defs.h" 
 #include "frm_types.h"
 #include "frm_glob.h"
-#include "route.h"
+#include "../frame/route.h"
 #include "drvconf.h"
 #include "tstdriver.h"
 #include "tstheader.h"
@@ -65,7 +68,7 @@
 #endif
 
 #ifdef _FF_RV_EXIST_
- #include "ffs/ffs_api.h"
+ #include "../../services/ffs/ffs_api.h"
 #endif
 
 /*==== TYPES ======================================================*/
--- a/gsm-fw/gpf/tst_pei/tstdriver.c	Sun Apr 13 07:56:00 2014 +0000
+++ b/gsm-fw/gpf/tst_pei/tstdriver.c	Sun Apr 13 08:19:38 2014 +0000
@@ -24,8 +24,9 @@
  
 /*==== INCLUDES ===================================================*/
 
-#include "string.h"
+#include <string.h>
 
+#include "gpfconf.h"
 #include "typedefs.h"
 #include "os.h"
 #include "vsi.h"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/gpf/tst_pei/xip/Makefile	Sun Apr 13 08:19:38 2014 +0000
@@ -0,0 +1,11 @@
+CC=	arm-elf-gcc
+CFLAGS=	-O2 -fno-builtin -mthumb-interwork -mthumb
+CPPFLAGS=-I../../inc -DRUN_FLASH
+VPATH=	..
+
+OBJS=	tif_version.o tst_pei.o tstdriver.o
+
+all:	${OBJS}
+
+clean:
+	rm -f *.[oa] *errs