summaryrefslogtreecommitdiff
path: root/kconfig
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-08-12 20:32:36 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-08-12 20:32:36 +0200
commit3e2d4be94e153c953c218f6d8d8330949cbe1f31 (patch)
tree4bb638843cfec4aa438263bf54d3d0a7b1b8cb11 /kconfig
parent932197cf2955399f4bfe600b172e96f51c1f79a3 (diff)
downloadembtoolkit-3e2d4be94e153c953c218f6d8d8330949cbe1f31.tar.gz
embtoolkit-3e2d4be94e153c953c218f6d8d8330949cbe1f31.tar.bz2
embtoolkit-3e2d4be94e153c953c218f6d8d8330949cbe1f31.tar.xz
Rootfs: update mtd-utils and make JFFS2 filesystem image useable
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'kconfig')
-rw-r--r--kconfig/fs.kconfig33
-rw-r--r--kconfig/mtdutils.kconfig52
2 files changed, 78 insertions, 7 deletions
diff --git a/kconfig/fs.kconfig b/kconfig/fs.kconfig
index d51fb6b..a9a55c4 100644
--- a/kconfig/fs.kconfig
+++ b/kconfig/fs.kconfig
@@ -45,19 +45,38 @@ choice
Use bzip2 compression algorithm.
endchoice
-#JFFS2 root filesystem image build
+#####################################
+# JFFS2 root filesystem image build #
+#####################################
config EMBTK_ROOTFS_HAVE_JFFS2
bool "Build a JFFS2 root filesystem image"
+ select EMBTK_HOST_HAVE_MTDUTILS
help
- Build a JFFS2 root filesystem image for your target
-config EMBTK_ROOTFS_HAVE_JFFS2_BLOCKSIZE
+ Build a JFFS2 root filesystem image for your target.
+config EMBTK_ROOTFS_HAVE_JFFS2_ERASEBLOCKSIZE
depends on EMBTK_ROOTFS_HAVE_JFFS2
help
- Erase block size to use in KB
- int "Erase block size to use in KB"
- default 128
+ Erase block size to use in bytes
+ NOTE: If erase block size is below 4096 the unit is assumed
+ to be KiB
+ int "Erase block size to use in bytes"
+ default 16384
+config EMBTK_ROOTFS_HAVE_JFFS2_PAGESIZE
+ depends on EMBTK_ROOTFS_HAVE_JFFS2
+ help
+ Page size to use in bytes
+ int "Page size to use in bytes"
+ default 4096
+config EMBTK_ROOTFS_HAVE_JFFS2_CLEANMARKERSIZE
+ depends on EMBTK_ROOTFS_HAVE_JFFS2
+ help
+ Size of cleanmarker in bytes (almost always 12)
+ int "Size of cleanmarker in bytes (almost always 12)"
+ default 12
-#SQUASHFS root filesystem
+############################
+# SQUASHFS root filesystem #
+############################
config EMBTK_ROOTFS_HAVE_SQUASHFS
bool "Build a squashfs root filesystem image"
help
diff --git a/kconfig/mtdutils.kconfig b/kconfig/mtdutils.kconfig
new file mode 100644
index 0000000..a1360ac
--- /dev/null
+++ b/kconfig/mtdutils.kconfig
@@ -0,0 +1,52 @@
+################################################################################
+# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2010 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file mtdutils.kconfig
+# \brief mtdutils.kconfig of Embtoolkit.
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date August 2010
+################################################################################
+
+config EMBTK_HOST_HAVE_MTDUTILS
+ bool
+ select EMBTK_HAVE_UTILLINUXNG
+ help
+ mtd-utils intented to run on the host development machine.
+choice
+ prompt "mtd-utils version used"
+ depends on EMBTK_HOST_HAVE_MTDUTILS || EMBTK_ROOTFS_HAVE_MTDUTILS
+ help
+ mtd-utils version used
+ NOTE: This version of mtd-utils is patched to fix various issue,
+ these patches come from mtd-utils git repository.
+
+ config EMBTK_MTDUTILS_VERSION_1_3_1
+ bool "mtd-utils-1.3.1"
+ select EMBTK_MTDUTILS_NEED_PATCH
+ help
+ mtd-utils-1.3.1
+endchoice
+
+config EMBTK_MTDUTILS_VERSION_STRING
+ string
+ default "1.3.1" if EMBTK_MTDUTILS_VERSION_1_3_1
+
+config EMBTK_MTDUTILS_NEED_PATCH
+ bool
+