mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +00:00
Meta: Add a rebuild-world command to serenity.sh
This was brought up as something that would be useful by `RealKC` on the discord, and I happened to agree that it would be useful. Especially given the abundance of Toolchain changes recently.
This commit is contained in:
parent
c195ee6fd2
commit
8f6a5a1c39
1 changed files with 9 additions and 0 deletions
|
@ -39,6 +39,7 @@ Usage: $NAME COMMAND [TARGET] [ARGS...]
|
||||||
Resolves the ADDRESS in BINARY_FILE to a file:line. It will
|
Resolves the ADDRESS in BINARY_FILE to a file:line. It will
|
||||||
attempt to find the BINARY_FILE in the appropriate build directory
|
attempt to find the BINARY_FILE in the appropriate build directory
|
||||||
rebuild-toolchain: Deletes and re-builds the TARGET's toolchain
|
rebuild-toolchain: Deletes and re-builds the TARGET's toolchain
|
||||||
|
rebuild-world: Deletes and re-builds the toolchain and build environment for TARGET.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
$NAME run i686 smp=on
|
$NAME run i686 smp=on
|
||||||
|
@ -307,6 +308,14 @@ elif [ "$CMD" = "rebuild-toolchain" ]; then
|
||||||
lagom_unsupported "The lagom target uses the host toolchain"
|
lagom_unsupported "The lagom target uses the host toolchain"
|
||||||
delete_toolchain
|
delete_toolchain
|
||||||
ensure_toolchain
|
ensure_toolchain
|
||||||
|
elif [ "$CMD" = "rebuild-world" ]; then
|
||||||
|
cmd_with_target
|
||||||
|
lagom_unsupported "The lagom target uses the host toolchain"
|
||||||
|
delete_toolchain
|
||||||
|
delete_target
|
||||||
|
ensure_toolchain
|
||||||
|
ensure_target
|
||||||
|
build_target
|
||||||
elif [ "$CMD" = "__tmux_cmd" ]; then
|
elif [ "$CMD" = "__tmux_cmd" ]; then
|
||||||
trap kill_tmux_session EXIT
|
trap kill_tmux_session EXIT
|
||||||
cmd_with_target
|
cmd_with_target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue