Skip to content

Commit

Permalink
Update justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKruckenberg committed Aug 21, 2024
1 parent 99d7938 commit 7d655d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ check-fmt *FLAGS:
{{ _cargo }} fmt --check --all {{ FLAGS }}

# Builds the kernel using the given config and runs it using QEMU
run config *CARGO_ARGS="": (build config CARGO_ARGS) (_run config "target/k23/bootimg.bin")
run config CARGO_ARGS="" *ARGS="": (build config CARGO_ARGS) (_run config "target/k23/bootimg.bin" ARGS)

# Builds the kernel using the given config
build config *CARGO_ARGS="": && (_make_bootimg config "target/k23/payload" CARGO_ARGS)
Expand Down Expand Up @@ -143,7 +143,8 @@ _run config binary *ARGS:
"qemu-system-riscv64" => "rv64"
}

(run-external $runner
print {{binary}}
(^$runner
"-kernel"
{{binary}}
"-machine" "virt"
Expand All @@ -155,6 +156,7 @@ _run config binary *ARGS:
"-serial" "stdio"
"-semihosting-config"
"enable=on,target=native"
{{ARGS}}
#"-monitor"
#"unix:qemu-monitor-socket,server,nowait"
)
Expand Down

0 comments on commit 7d655d0

Please sign in to comment.