X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/f05621b796e3d8f9036e2e5bbda5b7af1624b2e2..0d897066e759e22608618b2cfba20fc09d08f1c3:/tests/Makefile diff --git a/tests/Makefile b/tests/Makefile index 0fc42d1..471a83e 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,4 +1,6 @@ -all: costas.hex +CFLAGS=-mno-thumb-interwork -march=armv4 + +all: costas.hex testbench.hex %.o: %.c arm-elf-gcc $(CFLAGS) -c -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/' > $@