Fix scripts/check-binary-sizes
The script needed updating since we switched to rust/mcu being a
workspace.
BUG=None
TEST=./scripts/check-binary-sizes
Change-Id: I392f68a10a8b95d8296f58c487e185f68a6c4012
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/hps-firmware/+/3403440
Reviewed-by: Jakub Młynarczyk <jakubm@chromium.org>
Tested-by: David Lattimore <dml@chromium.org>
Commit-Queue: David Lattimore <dml@chromium.org>
diff --git a/scripts/check-binary-sizes b/scripts/check-binary-sizes
index 0c60be6..cfbcbf2 100755
--- a/scripts/check-binary-sizes
+++ b/scripts/check-binary-sizes
@@ -12,19 +12,19 @@
source "${PROJECT_ROOT}/environment"
set -e
-STAGE0="${PROJECT_ROOT}/rust/mcu/stage0/target/thumbv6m-none-eabi/release/stage0.bin"
-APPLICATION="${PROJECT_ROOT}/rust/mcu/stage1_app/target/thumbv6m-none-eabi/release/stage1_app.bin"
+STAGE0="${PROJECT_ROOT}/rust/mcu/target/thumbv6m-none-eabi/release/stage0.bin"
+APPLICATION="${PROJECT_ROOT}/rust/mcu/target/thumbv6m-none-eabi/release/stage1_app.bin"
(
- cd "${PROJECT_ROOT}/rust/mcu/stage0"
- cargo "+${RUST_VERSION}" build --release
+ cd "${PROJECT_ROOT}/rust/mcu"
+ cargo "+${RUST_VERSION}" build -p stage0 --release
arm-none-eabi-objcopy \
-O binary \
target/thumbv6m-none-eabi/release/stage0 \
"${STAGE0}"
)
(
- cd "${PROJECT_ROOT}/rust/mcu/stage1_app"
- cargo "+${RUST_VERSION}" build --release
+ cd "${PROJECT_ROOT}/rust/mcu"
+ cargo "+${RUST_VERSION}" build -p stage1_app --release
arm-none-eabi-objcopy \
-O binary \
target/thumbv6m-none-eabi/release/stage1_app \