Skip to contentSkip to conversation

meta-handheld: use explicit ERASEBLOCKSIZE and remove the variable

PATCH New Andrea Adami 1 participant 1 message Oct 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-handheld: use explicit ERASEBLOCKSIZE and remove the variable

---
 conf/machine/akita.conf  | 6 ++----
 conf/machine/c7x0.conf   | 6 ++----
 conf/machine/collie.conf | 6 ++----
 conf/machine/h3600.conf  | 3 +--
 conf/machine/poodle.conf | 6 ++----
 conf/machine/spitz.conf  | 6 ++----
 conf/machine/tosa.conf   | 6 ++----
 7 files changed, 13 insertions(+), 26 deletions(-)
conf/machine/akita.conf +2 -4
index b7b1ed7..12a2fe9 100644
@@ -11,12 +11,10 @@ require conf/machine/include/tune-xscale.inc
 PACKAGE_EXTRA_ARCHS_tune-xscale += "iwmmxt" 
 MACHINE_FEATURES += "iwmmxt"
 
-ERASEBLOCKSIZE = "0x20000"
-
-EXTRA_IMAGECMD_jffs2 = "-p -l --eraseblock=${ERASEBLOCKSIZE}"
+EXTRA_IMAGECMD_jffs2 = "-p -l -e 0x20000"
 EXTRA_IMAGECMD_sum.jffs2 = "${EXTRA_IMAGECMD_jffs2}"
 
 # UBI: max akita (128-7 MiB = 968 PEBs)
 # 121 x 1024 : 128 = 968 PEBs
 MKUBIFS_ARGS = "-m 2048 -e 129024 -c 968 -x zlib"
-UBINIZE_ARGS = "-m 2048 -p ${ERASEBLOCKSIZE} -s 512"
+UBINIZE_ARGS = "-m 2048 -p 131072 -s 512"
conf/machine/c7x0.conf +2 -4
index 3c8e69a..ffa998d 100644
@@ -11,12 +11,10 @@
 require conf/machine/include/zaurus.inc
 require conf/machine/include/tune-xscale.inc
 
-ERASEBLOCKSIZE = "0x4000"
-
-EXTRA_IMAGECMD_jffs2 = "-p -l --eraseblock=${ERASEBLOCKSIZE}"
+EXTRA_IMAGECMD_jffs2 = "-p -l -e 0x4000"
 EXTRA_IMAGECMD_sum.jffs2 = "${EXTRA_IMAGECMD_jffs2}"
 
 # UBI: max c7x0 (128-7 MiB = 7744 PEBs)
 # 121 x 1024 : 16 = 7744 PEBs
 MKUBIFS_ARGS = "-m 512 -e 15872 -c 7744 -x zlib"
-UBINIZE_ARGS = "-m 512 -p ${ERASEBLOCKSIZE} -s 256"
+UBINIZE_ARGS = "-m 512 -p 16384 -s 256"
conf/machine/collie.conf +2 -4
index 00a25bf..26bc257 100644
@@ -5,10 +5,8 @@
 require conf/machine/include/zaurus.inc
 require conf/machine/include/tune-strongarm1100.inc
 
-ERASEBLOCKSIZE = "0x20000"
-
-EXTRA_IMAGECMD_jffs2 = "--pad=14680064 --little-endian --eraseblock=${ERASEBLOCKSIZE} -n"
-EXTRA_IMAGECMD_sum.jffs2 = "--pad -l --eraseblock=0x20000 -n"
+EXTRA_IMAGECMD_jffs2 = "-p 14680064 -l -e 0x20000 -n"
+EXTRA_IMAGECMD_sum.jffs2 = "-p -l -e 0x20000 -n"
 
 # UBI: max collie (14.125 = 113 PEBs)
 # 14.125 x 1024 : 128 = 113 PEBs
conf/machine/h3600.conf +1 -2
index adb354d..78e11be 100644
@@ -27,8 +27,7 @@ MACHINE_EXTRA_RDEPENDS = "mtd-utils mtd-utils-jffs2"
 
 MACHINE_EXTRA_RRECOMMENDS = ""
 
-ERASEBLOCKSIZE = "0x40000"
-EXTRA_IMAGECMD_jffs2 = "-p -l --eraseblock=${ERASEBLOCKSIZE}"
+EXTRA_IMAGECMD_jffs2 = "-p -l -e 0x40000"
 
 #
 # Modules autoload and other boot properties
conf/machine/poodle.conf +2 -4
index b3a34f8..53dbc4a 100644
@@ -8,12 +8,10 @@
 require conf/machine/include/zaurus.inc
 require conf/machine/include/tune-xscale.inc
 
-ERASEBLOCKSIZE = "0x4000"
-
-EXTRA_IMAGECMD_jffs2 = "-p -l --eraseblock=${ERASEBLOCKSIZE}"
+EXTRA_IMAGECMD_jffs2 = "-p -l -e 0x4000"
 EXTRA_IMAGECMD_sum.jffs2 = "${EXTRA_IMAGECMD_jffs2}"
 
 # UBI: max poodle (64-7 MiB = 3648 PEBs)
 # 57 x 1024 : 16 = 3648 PEBs
 MKUBIFS_ARGS = "-m 512 -e 15872 -c 3648 -x zlib"
-UBINIZE_ARGS = "-m 512 -p ${ERASEBLOCKSIZE} -s 256"
+UBINIZE_ARGS = "-m 512 -p 16384 -s 256"
conf/machine/spitz.conf +2 -4
index e88462e..d4243fa 100644
@@ -22,12 +22,10 @@ PACKAGE_EXTRA_ARCHS_tune-xscale += "iwmmxt"
 # MKUBIFS_ARGS = "-m 512 -e 15872 -c 576 -x zlib"
 # UBINIZE_ARGS = "-m 512 -p 16384 -s 256"
 
-ERASEBLOCKSIZE = "0x20000"
-
-EXTRA_IMAGECMD_jffs2 = "-p -l --eraseblock=${ERASEBLOCKSIZE}"
+EXTRA_IMAGECMD_jffs2 = "-p -l -e 0x20000"
 EXTRA_IMAGECMD_sum.jffs2 = "${EXTRA_IMAGECMD_jffs2}"
 
 # UBI: max spitz (128-7 MiB = 968 PEBs)
 # 121 x 1024 : 128 = 968 PEBs
 MKUBIFS_ARGS = "-m 2048 -e 129024 -c 968 -x zlib"
-UBINIZE_ARGS = "-m 2048 -p ${ERASEBLOCKSIZE} -s 512"
+UBINIZE_ARGS = "-m 2048 -p 131072 -s 512"
conf/machine/tosa.conf +2 -4
index dcfad04..0ec93c7 100644
@@ -8,12 +8,10 @@
 require conf/machine/include/zaurus.inc
 require conf/machine/include/tune-xscale.inc
 
-ERASEBLOCKSIZE = "0x4000"
-
-EXTRA_IMAGECMD_jffs2 = "-p -l --eraseblock=${ERASEBLOCKSIZE}"
+EXTRA_IMAGECMD_jffs2 = "-p -l -e 0x4000"
 EXTRA_IMAGECMD_sum.jffs2 = "${EXTRA_IMAGECMD_jffs2}"
 
 # UBI: max tosa (128-7 MiB = 7744 PEBs)
 # 121 x 1024 : 16 = 7744 PEBs
 MKUBIFS_ARGS = "-m 512 -e 15872 -c 7744 -x zlib"
-UBINIZE_ARGS = "-m 512 -p ${ERASEBLOCKSIZE} -s 256"
+UBINIZE_ARGS = "-m 512 -p 16384 -s 256"
Signature · 1 line
1.8.1.5