X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/4aa2768b7a9c6eff4e9c26daba0b46ded3fe3a71..1e7ff543e49341fedea742d7b8b674111d852748:/tests/Makefile diff --git a/tests/Makefile b/tests/Makefile index 62be4ba..774222d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,10 +1,12 @@ -all: costas.hex +CFLAGS=-mno-thumb-interwork -march=armv4 + +all: costas.hex testbench.pad.hex testbench.hex %.o: %.c - arm-elf-gcc -c -o $@ $< + arm-elf-gcc $(CFLAGS) -c -o $@ $< %.o: %.S - arm-elf-gcc -c -o $@ $< + arm-elf-gcc $(CFLAGS) -c -o $@ $< %.elf: %.o anulib.o script.lds arm-elf-ld -o $@ -T script.lds anulib.o $< @@ -12,5 +14,8 @@ all: costas.hex %.bin: %.elf arm-elf-objcopy $< -O binary $@ +%.pad.bin: %.bin + dd if=$< of=$@ bs=16384 conv=sync + %.hex: %.bin xxd -ps -c 4 $< | sed -e 's/\(..\)\(..\)\(..\)\(..\)/\4\3\2\1/' > $@