Add --slot-size to allow size checking without pad

Add the new `--slot-size` and make `--pad` a bool flag, to allow
checking that firmware fits in the slot without overflowing into the
trailer region even when no padding was requested.

Fixes #241

Signed-off-by: Fabio Utzig <utzig@apache.org>
diff --git a/samples/zephyr/Makefile b/samples/zephyr/Makefile
index 9b246b7..1477bbf 100644
--- a/samples/zephyr/Makefile
+++ b/samples/zephyr/Makefile
@@ -130,6 +130,7 @@
 		--align $(FLASH_ALIGNMENT) \
 		--version 1.2 \
 		--included-header \
+		--slot-size 0x60000
 		$(BUILD_DIR_HELLO1)/zephyr/zephyr.bin \
 		signed-hello1.bin
 
@@ -155,7 +156,8 @@
 		--align $(FLASH_ALIGNMENT) \
 		--version 1.2 \
 		--included-header \
-		--pad 0x60000 \
+		--slot-size 0x60000 \
+		--pad \
 		$(BUILD_DIR_HELLO2)/zephyr/zephyr.bin \
 		signed-hello2.bin