common binary support fix
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 16 Jul 2015 00:31:44 +0000 (09:31 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 16 Jul 2015 00:31:44 +0000 (09:31 +0900)
ChangeLog
src/configure

index df4c4b2..2210691 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-07-16  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/configure (FLASH_PAGE_SIZE, FLASH_SIZE, MEMORY_SIZE)
+       [sys1_compat]: Use safe values for common binary.
+
 2015-07-15  Niibe Yutaka  <gniibe@fsij.org>
 
        * tool/usb_strings.py (field): Add 'Board'.
index 064aa0c..11f1e4c 100755 (executable)
@@ -255,6 +255,10 @@ SERIALNO_STR_LEN_DEFINE="#define SERIALNO_STR_LEN ${#SERIALNO}"
 if test "$sys1_compat" = "yes"; then
   CONFIG="$target:dfu=$with_dfu:debug=$debug:pinpad=$pinpad:certdo=$certdo:keygen=$keygen"
 else
+  # Override settings for common binary.  Safer side.
+  FLASH_PAGE_SIZE=2048
+  FLASH_SIZE=128
+  MEMORY_SIZE=20
   CONFIG="dfu=$with_dfu:debug=$debug:pinpad=$pinpad:certdo=$certdo:keygen=$keygen"
 fi