From 8f6a5a1c3965e09c45e60ce8640a4a5d366c8dce Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Mon, 19 Apr 2021 21:29:10 -0700 Subject: [PATCH] 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. --- Meta/serenity.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Meta/serenity.sh b/Meta/serenity.sh index 1c6c15fa6f..ec412f6163 100755 --- a/Meta/serenity.sh +++ b/Meta/serenity.sh @@ -39,6 +39,7 @@ Usage: $NAME COMMAND [TARGET] [ARGS...] Resolves the ADDRESS in BINARY_FILE to a file:line. It will attempt to find the BINARY_FILE in the appropriate build directory rebuild-toolchain: Deletes and re-builds the TARGET's toolchain + rebuild-world: Deletes and re-builds the toolchain and build environment for TARGET. Examples: $NAME run i686 smp=on @@ -307,6 +308,14 @@ elif [ "$CMD" = "rebuild-toolchain" ]; then lagom_unsupported "The lagom target uses the host toolchain" delete_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 trap kill_tmux_session EXIT cmd_with_target