FreeCalypso > hg > freecalypso-sw
changeset 81:147861b15cda
nuc-fw: ramImage.srec built, nucdemo runs
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 16 Aug 2013 20:14:01 +0000 |
parents | 39b1c369b67f |
children | dd13211c9f10 |
files | nuc-fw/Makefile nuc-fw/finlink/Makefile |
diffstat | 2 files changed, 20 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nuc-fw/Makefile Fri Aug 16 20:14:01 2013 +0000 @@ -0,0 +1,16 @@ +COMPONENTS= nucdemo nucleus sprintf sysglue +SUBDIR= ${COMPONENTS} finlink + +all: ramImage + +${COMPONENTS}: FRC + cd $@; make ${MFLAGS} + +ramImage flashImage: ${COMPONENTS} + cd finlink; make ${MFLAGS} $@ + +clean: FRC + rm -f a.out core errs + for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done + +FRC:
--- a/nuc-fw/finlink/Makefile Fri Aug 16 02:25:58 2013 +0000 +++ b/nuc-fw/finlink/Makefile Fri Aug 16 20:14:01 2013 +0000 @@ -2,7 +2,7 @@ LD= arm-elf-ld OBJCOPY=arm-elf-objcopy -RAM_TARGET= ramImage.elf +RAM_TARGET= ramImage.srec LIBC_A= `${CC} -print-file-name=libc.a -mthumb-interwork` LIBC_T= `${CC} -print-file-name=libc.a -mthumb-interwork -mthumb` @@ -29,6 +29,9 @@ --start-group ${LOCAL_LIBS} --end-group \ --start-group ${LIBC_A} ${LIBGCC_A} --end-group +ramImage.srec: ramImage.elf + ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ + clean: rm -f *.o *errs *core *.elf *.bin *.srec