Skip to content

Commit

Permalink
Change bootcode import to be a phony target
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Eggimann committed Dec 11, 2020
1 parent 80ae1ce commit c36a752
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,14 @@ install: $(INSTALL_HEADERS)
vopt:
export VOPT_FLOW=1 && cd $(VSIM_PATH) && vsim -64 -c -do "source tcl_files/config/vsim.tcl; quit"

.PHONY: import-bootcode
## Import the latest bootcode. This should not be called by the user.
import-bootcode: sim/boot/boot_code.cde
import-bootcode: boot_code/boot_code.cde
cp boot_code/boot_code.cde sim/boot/boot_code.cde

boot_code/boot_code.cde: boot_code/boot_code.c boot_code/crt0.S boot_code/link.ld
$(MAKE) -C boot_code boot_code.cde

sim/boot/boot_code.cde: boot_code/boot_code.cde
cp $< $@

check-env-pulp-gcc:
ifndef PULP_RISCV_GCC_TOOLCHAIN
$(error PULP_RISCV_GCC_TOOLCHAIN is undefined.\
Expand Down

0 comments on commit c36a752

Please sign in to comment.