|
@@ -23,6 +23,7 @@ PROJ_TOP_SRC := rtl/top.v
|
|
|
PROJ_TOP_MOD := top
|
|
|
|
|
|
# Target config
|
|
|
+BOOT_CODE ?= app
|
|
|
BOARD ?= icebreaker
|
|
|
DEVICE = up5k
|
|
|
PACKAGE = sg48
|
|
@@ -37,8 +38,8 @@ ifeq ($(BOOT_CODE),dfu)
|
|
|
YOSYS_READ_ARGS += -DDFU=1
|
|
|
endif
|
|
|
|
|
|
-fw/boot.hex:
|
|
|
- make -C fw boot.hex
|
|
|
+fw/boot_$(BOOT_CODE).hex:
|
|
|
+ make -C fw boot_$(BOOT_CODE).hex
|
|
|
|
|
|
-$(BUILD_TMP)/boot.hex: fw/boot.hex
|
|
|
+$(BUILD_TMP)/boot.hex: fw/boot_$(BOOT_CODE).hex
|
|
|
cp $< $@
|