FreeCalypso > hg > freecalypso-sw
diff 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 |
line wrap: on
line diff
--- a/gsm-fw/services/ffs/Makefile Sat Oct 31 23:02:20 2015 +0000 +++ b/gsm-fw/services/ffs/Makefile Sat Oct 31 23:21:40 2015 +0000 @@ -1,16 +1,24 @@ CC= arm-elf-gcc -CFLAGS= -O2 -fno-builtin -mthumb-interwork -mthumb +CFLAGS= -O2 -fno-builtin -mthumb-interwork LD= arm-elf-ld +sinclude ../../include/config.mk + OBJS= cfgffs.o core.o drv.o ffs_env.o ffs_target.o ffstrace.o fsck.o rand.o \ reclaim.o task.o tmffs.o HDRS= core.h drv.h ffs.h ffs_api.h ffs_env.h ffs_pool_size.h ffstrace.h \ intctl.h ramffs.h task.h tmffs.h -all: xipcode.o +TARGETS=xipcode.o +ifeq (${FLASH_IS_INTEL_ONEBANK},1) +TARGETS+=intelsbdrv.o +endif -${OBJS}: ${HDRS} +all: ${TARGETS} + +${OBJS}: %.o : %.c ${HDRS} + ${CC} ${CFLAGS} -mthumb -c $< ffs_target.c: ffs.c mktarget.pl ./mktarget.pl @@ -18,5 +26,8 @@ xipcode.o: ${OBJS} ${LD} -r -o $@ ${OBJS} +intelsbdrv.o: intelsbdrv.c ${HDRS} + ${CC} ${CFLAGS} -c intelsbdrv.c + clean: rm -f *.[oa] *errs ffs_target.c