Sylvain Munaut | da65157 | 2020-09-14 10:10:49 +0200 | [diff] [blame] | 1 | # Project config |
| 2 | PROJ=icE1usb-proto |
| 3 | |
| 4 | PROJ_DEPS := no2e1 no2ice40 no2misc no2usb |
| 5 | PROJ_RTL_SRCS := $(addprefix rtl/, \ |
| 6 | misc.v \ |
| 7 | sysmgr.v \ |
| 8 | ) |
| 9 | PROJ_RTL_SRCS += $(addprefix ../common/rtl/, \ |
| 10 | dfu_helper.v \ |
| 11 | picorv32.v \ |
| 12 | soc_base.v \ |
| 13 | soc_bram.v \ |
| 14 | soc_iobuf.v \ |
| 15 | soc_picorv32_bridge.v \ |
| 16 | soc_spram.v \ |
| 17 | wb_arbiter.v \ |
| 18 | wb_dma.v \ |
| 19 | wb_epbuf.v \ |
| 20 | ) |
| 21 | PROJ_PREREQ = \ |
| 22 | $(BUILD_TMP)/boot.hex \ |
| 23 | $(NULL) |
| 24 | PROJ_TOP_SRC := rtl/top.v |
| 25 | PROJ_TOP_MOD := top |
| 26 | |
| 27 | # Target config |
| 28 | BOARD ?= icebreaker |
| 29 | DEVICE = up5k |
| 30 | PACKAGE = sg48 |
| 31 | |
| 32 | NEXTPNR_ARGS = --pre-pack data/clocks.py --seed 4 |
| 33 | |
| 34 | # Include default rules |
| 35 | NO2BUILD_DIR := ../build |
| 36 | include $(NO2BUILD_DIR)/project-rules.mk |
| 37 | |
| 38 | # Custom rules |
| 39 | ../common/fw/boot.hex: |
| 40 | make -C ../common/fw boot.hex |
| 41 | |
| 42 | $(BUILD_TMP)/boot.hex: ../common/fw/boot.hex |
| 43 | cp $< $@ |