From 8a2e251e95205c6501932bf167fc763b1a5b574c Mon Sep 17 00:00:00 2001 From: Sudar Date: Mon, 1 Jul 2013 21:54:56 +0530 Subject: 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 --- bin/ard-verify-size | 9 --------- 1 file changed, 9 deletions(-) delete mode 100755 bin/ard-verify-size (limited to 'bin/ard-verify-size') 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 -- cgit v1.2.3