Makefile 630 B

123456789101112131415161718192021222324252627282930313233
  1. # Project config
  2. PROJ = boot_stub
  3. PROJ_DEPS := misc
  4. PROJ_RTL_SRCS := $(addprefix rtl/, \
  5. )
  6. PROJ_TOP_SRC := rtl/top.v
  7. PROJ_TOP_MOD := top
  8. # Target config
  9. BOARD ?= icebreaker
  10. DEVICE = up5k
  11. PACKAGE = sg48
  12. NEXTPNR_ARGS = --freq 48 --no-promote-globals
  13. # Include default rules
  14. include ../../build/project-rules.mk
  15. # Custom rules
  16. $(BUILD_TMP)/boot_mb.bin: $(BUILD_TMP)/$(PROJ).bin
  17. ./utils/mkmultiboot.py $@ $<
  18. build-mb: $(BUILD_TMP)/boot_mb.bin
  19. prog-mb: $(BUILD_TMP)/boot_mb.bin
  20. $(ICEPROG) $<
  21. sudo-prog-mb: $(BUILD_TMP)/boot_mb.bin
  22. @echo 'Executing prog as root!!!'
  23. sudo $(ICEPROG) $<
  24. .PHONY: build-mb prog-mb sudo-prog-mb