File tree Expand file tree Collapse file tree 3 files changed +6
-1454
lines changed Expand file tree Collapse file tree 3 files changed +6
-1454
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ os/Cargo.lock
66user /target /*
77user /.idea /*
88user /Cargo.lock
9+ tools /
Original file line number Diff line number Diff line change @@ -78,7 +78,10 @@ disasm-vim: kernel
7878 @vim $(DISASM_TMP )
7979 @rm $(DISASM_TMP )
8080
81- run : run-inner
81+ run : tools run-inner
82+
83+ tools :
84+ (which $( K210-BURNER) ) || (cd .. && git clone https://github.com/sipeed/kflash.py.git && mv kflash.py tools)
8285
8386run-inner : build
8487ifeq ($(BOARD ) ,qemu)
@@ -104,4 +107,4 @@ debug: build
104107 tmux split-window -h " riscv64-unknown-elf-gdb -ex 'file $( KERNEL_ELF) ' -ex 'set arch riscv:rv64' -ex 'target remote localhost:1234'" && \
105108 tmux -2 attach-session -d
106109
107- .PHONY : build env kernel clean disasm disasm-vim run-inner
110+ .PHONY : build env kernel clean disasm disasm-vim run-inner tools
You can’t perform that action at this time.
0 commit comments