From 9bc9811472e53b53555343934664962c8e7c5d30 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 18 Jun 2022 15:19:48 +0800 Subject: [PATCH] modify the bloat message to help enforce some discipline on binary size --- buildpush.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildpush.ps1 b/buildpush.ps1 index 6d988feac..267f25b1e 100644 --- a/buildpush.ps1 +++ b/buildpush.ps1 @@ -28,5 +28,6 @@ scp -i c:/users/bunnie/.ssh/id_pi target/riscv32imac-unknown-xous-elf/release/xo $file = Get-Item target/riscv32imac-unknown-xous-elf/release/xous.img $SizeinBytes = $file.Length if($SizeinBytes -gt 6815743) { - "Warning: xous.img exceeds the 24-bit limit of JTAG. Upload using USB instead!" + $Overage = $SizeinBytes - 6815743 + "Warning: xous.img is getting bloated. Bloat over ideal target: $Overage bytes." } \ No newline at end of file