X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/4aa2768b7a9c6eff4e9c26daba0b46ded3fe3a71..a9f76b88574c4e20ed91ab6704f3f74852584825:/tests/Makefile?ds=inline diff --git a/tests/Makefile b/tests/Makefile index 62be4ba..471a83e 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,10 +1,12 @@ -all: costas.hex +CFLAGS=-mno-thumb-interwork -march=armv4 + +all: costas.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/' > $@