comparison gsm-fw/services/ffs/Makefile @ 939:62ca61292b77

gsm-fw: Intel single bank flash driver (Compal) compiles and links
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 31 Oct 2015 23:21:40 +0000
parents 842c9fd828fd
children
comparison
equal deleted inserted replaced
938:1db4da08b9b4 939:62ca61292b77
1 CC= arm-elf-gcc 1 CC= arm-elf-gcc
2 CFLAGS= -O2 -fno-builtin -mthumb-interwork -mthumb 2 CFLAGS= -O2 -fno-builtin -mthumb-interwork
3 LD= arm-elf-ld 3 LD= arm-elf-ld
4
5 sinclude ../../include/config.mk
4 6
5 OBJS= cfgffs.o core.o drv.o ffs_env.o ffs_target.o ffstrace.o fsck.o rand.o \ 7 OBJS= cfgffs.o core.o drv.o ffs_env.o ffs_target.o ffstrace.o fsck.o rand.o \
6 reclaim.o task.o tmffs.o 8 reclaim.o task.o tmffs.o
7 9
8 HDRS= core.h drv.h ffs.h ffs_api.h ffs_env.h ffs_pool_size.h ffstrace.h \ 10 HDRS= core.h drv.h ffs.h ffs_api.h ffs_env.h ffs_pool_size.h ffstrace.h \
9 intctl.h ramffs.h task.h tmffs.h 11 intctl.h ramffs.h task.h tmffs.h
10 12
11 all: xipcode.o 13 TARGETS=xipcode.o
14 ifeq (${FLASH_IS_INTEL_ONEBANK},1)
15 TARGETS+=intelsbdrv.o
16 endif
12 17
13 ${OBJS}: ${HDRS} 18 all: ${TARGETS}
19
20 ${OBJS}: %.o : %.c ${HDRS}
21 ${CC} ${CFLAGS} -mthumb -c $<
14 22
15 ffs_target.c: ffs.c mktarget.pl 23 ffs_target.c: ffs.c mktarget.pl
16 ./mktarget.pl 24 ./mktarget.pl
17 25
18 xipcode.o: ${OBJS} 26 xipcode.o: ${OBJS}
19 ${LD} -r -o $@ ${OBJS} 27 ${LD} -r -o $@ ${OBJS}
20 28
29 intelsbdrv.o: intelsbdrv.c ${HDRS}
30 ${CC} ${CFLAGS} -c intelsbdrv.c
31
21 clean: 32 clean:
22 rm -f *.[oa] *errs ffs_target.c 33 rm -f *.[oa] *errs ffs_target.c