bcm2-utils/testing/Makefile
Joseph C. Lehner 0710a6dc32 Actually make writecode usable (for RAM)
Flash is still work in progress...
2020-08-27 22:46:01 +02:00

16 lines
387 B
Makefile

MIPS=mips-linux-gnu-
.PHONY: upload clean fakeflash.bin
fakeflash.bin: fakeflash.S
$(MIPS)gcc -EB -c fakeflash.S -mips4 -mno-abicalls -ffreestanding -o fakeflash.o
$(MIPS)objcopy -j .text -O binary fakeflash.o fakeflash.bin
$(MIPS)objdump -t -d --adjust-vma=0x80010000 fakeflash.o
clean:
rm -f *.bin *.o
upload:
../bcm2dump -svv write /dev/ttyUSB0 ram 0x80010000 fakeflash.bin