2013-05-10 16:30:28 -04:00
|
|
|
RM ?= rm -f
|
|
|
|
|
2013-06-01 11:20:40 -04:00
|
|
|
all: build/soc.bit build/soc.fpg
|
2012-02-17 12:09:48 -05:00
|
|
|
|
2013-06-01 11:20:40 -04:00
|
|
|
build/soc.bit build/soc.bin:
|
2013-02-11 12:23:06 -05:00
|
|
|
./build.py
|
2012-02-17 12:09:48 -05:00
|
|
|
|
2013-06-01 11:20:40 -04:00
|
|
|
build/soc.fpg: build/soc.bin
|
2013-05-10 16:30:28 -04:00
|
|
|
$(MAKE) -C tools
|
2013-02-19 07:27:43 -05:00
|
|
|
tools/byteswap $< $@
|
|
|
|
|
2013-06-01 11:20:40 -04:00
|
|
|
load: build/soc.bit
|
2012-02-17 12:09:48 -05:00
|
|
|
jtag -n load.jtag
|
|
|
|
|
2013-06-01 11:20:40 -04:00
|
|
|
flash: build/soc.fpg
|
|
|
|
m1nor-ng build/soc.fpg
|
|
|
|
|
2012-02-17 12:09:48 -05:00
|
|
|
clean:
|
2013-05-10 16:30:28 -04:00
|
|
|
$(RM) -r build/*
|
2012-02-17 12:09:48 -05:00
|
|
|
|
2013-06-01 11:20:40 -04:00
|
|
|
.PHONY: all load clean flash
|