FreeCalypso > hg > freecalypso-sw
diff target-utils/tf-breakin/Makefile @ 357:22c6e39e1789
target-utils/tf-breakin: build embeddable form of the payload
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 15 May 2014 09:49:30 +0000 |
parents | 4e0aa166baa5 |
children |
line wrap: on
line diff
--- a/target-utils/tf-breakin/Makefile Thu May 15 09:18:23 2014 +0000 +++ b/target-utils/tf-breakin/Makefile Thu May 15 09:49:30 2014 +0000 @@ -1,14 +1,20 @@ CC= arm-elf-gcc OBJCOPY=arm-elf-objcopy -all: payload.bin +all: payload.o payload.bin embed.c .SUFFIXES: .o .bin .o.bin: ${OBJCOPY} -O binary $< $@ +mkembed: mkembed.c + gcc -O2 -o $@ $@.c + +embed.c: payload.bin mkembed + ./mkembed payload.bin $@ + clean: - rm -f *.o *errs *core *.bin + rm -f *.o *errs *core *.bin mkembed embed.c FRC: