diff options
| author | Sudar <sudar@sudarmuthu.com> | 2013-07-01 21:54:56 +0530 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2013-07-01 21:54:56 +0530 |
| commit | 8a2e251e95205c6501932bf167fc763b1a5b574c (patch) | |
| tree | 74e9fb1baf6d2b81179462f7372383e88375a927 /bin | |
| parent | 45f230c5c8f33c31d9d2af0d5ab629a3332c1fcb (diff) | |
Move binary sketch size verification logic inside makefile
Earlier bin/ard-verify-size shell script was used to validate that the
binary hex file size is less than the flash memory of the target
microcontroller.
This commit removes the dependency on the external shell script, by
moving the binary size verification logic inside the makefile itself.
Fix #54
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/ard-verify-size | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/bin/ard-verify-size b/bin/ard-verify-size deleted file mode 100755 index 2a7fa28..0000000 --- a/bin/ard-verify-size +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -TARGET_HEX="$1" -MAX_SIZE="$2" -HEX_SIZE="$(cut -c12- < $TARGET_HEX | tr -d \\n | tr -d \\r | wc -c | awk '{print $1/2}')" -if [ $HEX_SIZE -gt $MAX_SIZE ] -then - echo "Sketch size is ${HEX_SIZE} bytes and maximum allowed is ${MAX_SIZE} bytes; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it." 1>&2 - exit 1 -fi |
