Skip to content

Commit

Permalink
[setups/examples] support loading through arg TASK=load
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Jun 8, 2021
1 parent a7a501c commit 2e08d60
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setups/examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@ EXAMPLES := ../../../examples
TEMPLATES := ../../../../rtl/templates
MV := mv

TASK := clean $(BITSTREAM)

BOARD ?= UPDuino_v3

build:
run:
$(eval TASK ?= clean $(BITSTREAM))
$(MAKE) -C $(OSFLOW)/$(BOARD)/ \
BOARD_SRC=$(EXAMPLES)/neorv32_$(BOARD)_BoardTop_$(DESIGN).vhd \
TOP=neorv32_$(BOARD)_BoardTop_$(DESIGN) \
ID=$(DESIGN) \
clean $(BITSTREAM)
$(TASK)
$(MV) $(OSFLOW)/$(BOARD)/$(BITSTREAM) ./

UPduino_v3:
$(MAKE) \
BITSTREAM=neorv32_$(BOARD)_$(DESIGN).bit \
build
run

MinimalBoot:
$(MAKE) \
Expand Down

0 comments on commit 2e08d60

Please sign in to comment.