# HG changeset patch # User Michael Spacefalcon # Date 1408249878 0 # Node ID 2fd248f74a202c4c70fe4263e14aa084731a7da8 # Parent 5da15ffc340c6404fa0160893cc4e55997f60713 gsm-fw/L1/Makefile: link iramcode.o and xipcode.o diff -r 5da15ffc340c -r 2fd248f74a20 gsm-fw/L1/Makefile --- a/gsm-fw/L1/Makefile Sun Aug 17 04:22:05 2014 +0000 +++ b/gsm-fw/L1/Makefile Sun Aug 17 04:31:18 2014 +0000 @@ -1,10 +1,33 @@ +LD= arm-elf-ld + SUBDIR= cfile cust0 dsp tpudrv -all: ${SUBDIR} +INT_PIECES= cfile/iramcode.o cust0/iramcode.o tpudrv/iramcode.o +EXT_PIECES= cfile/xipcode.o cust0/xipcode.o dsp/xipcode.o + +all: iramcode.o xipcode.o ${SUBDIR}: FRC cd $@; ${MAKE} ${MFLAGS} +cfile/iramcode.o cfile/xipcode.o: cfile + @true + +cust0/iramcode.o cust0/xipcode.o: cust0 + @true + +dsp/xipcode.o: dsp + @true + +tpudrv/iramcode.o: tpudrv + @true + +iramcode.o: ${INT_PIECES} + ${LD} -r -o $@ ${INT_PIECES} + +xipcode.o: ${EXT_PIECES} + ${LD} -r -o $@ ${EXT_PIECES} + clean: FRC rm -f *.[oa] *.out *errs for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done