Skip to content

Commit dddd04b

Browse files
committed
Move kflash.py out of proj.
1 parent eb5ef8e commit dddd04b

File tree

3 files changed

+6
-1454
lines changed

3 files changed

+6
-1454
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ os/Cargo.lock
66
user/target/*
77
user/.idea/*
88
user/Cargo.lock
9+
tools/

os/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ disasm-vim: kernel
7171
@vim $(DISASM_TMP)
7272
@rm $(DISASM_TMP)
7373

74-
run: run-inner
74+
run: tools run-inner
75+
76+
tools:
77+
(which $(K210-BURNER)) || (cd .. && git clone https://github.com/sipeed/kflash.py.git && mv kflash.py tools)
7578

7679
run-inner: build
7780
ifeq ($(BOARD),qemu)
@@ -97,4 +100,4 @@ debug: build
97100
tmux split-window -h "riscv64-unknown-elf-gdb -ex 'file $(KERNEL_ELF)' -ex 'set arch riscv:rv64' -ex 'target remote localhost:1234'" && \
98101
tmux -2 attach-session -d
99102

100-
.PHONY: build env kernel clean disasm disasm-vim run-inner
103+
.PHONY: build env kernel clean disasm disasm-vim run-inner tools

0 commit comments

Comments
 (0)