summaryrefslogtreecommitdiff
path: root/packages/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'packages/mtd')
-rw-r--r--packages/mtd/.mtn2git_empty0
-rw-r--r--packages/mtd/mtd-utils-native_20050615.bb12
-rw-r--r--packages/mtd/mtd-utils/.mtn2git_empty0
-rw-r--r--packages/mtd/mtd-utils/more-verbosity.patch17
-rw-r--r--packages/mtd/mtd-utils_20050615.bb34
5 files changed, 63 insertions, 0 deletions
diff --git a/packages/mtd/.mtn2git_empty b/packages/mtd/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/mtd/.mtn2git_empty
diff --git a/packages/mtd/mtd-utils-native_20050615.bb b/packages/mtd/mtd-utils-native_20050615.bb
index e69de29bb2..cd1fb7d11b 100644
--- a/packages/mtd/mtd-utils-native_20050615.bb
+++ b/packages/mtd/mtd-utils-native_20050615.bb
@@ -0,0 +1,12 @@
+LICENSE = "GPLv2"
+SECTION = "base"
+include mtd-utils_${PV}.bb
+inherit native
+DEPENDS = "zlib-native"
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/mtd-utils"
+
+do_stage () {
+ for binary in ${mtd_utils}; do
+ install -m 0755 util/$binary ${STAGING_BINDIR}/
+ done
+}
diff --git a/packages/mtd/mtd-utils/.mtn2git_empty b/packages/mtd/mtd-utils/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/mtd/mtd-utils/.mtn2git_empty
diff --git a/packages/mtd/mtd-utils/more-verbosity.patch b/packages/mtd/mtd-utils/more-verbosity.patch
index e69de29bb2..25b98d35bb 100644
--- a/packages/mtd/mtd-utils/more-verbosity.patch
+++ b/packages/mtd/mtd-utils/more-verbosity.patch
@@ -0,0 +1,17 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+--- mtd/util/mkfs.jffs2.c~add-progress 2005-01-31 22:55:34.662944000 +0100
++++ mtd/util/mkfs.jffs2.c 2005-01-31 23:45:50.604511261 +0100
+@@ -374,6 +374,9 @@
+ struct filesystem_entry *entry;
+ struct ignorepath_entry* element = ignorepath;
+
++ if (verbose) {
++ printf( "mkfs.jffs2: scanning '%s'...\n", targetpath );
++ }
+
+ if (lstat(hostpath, &sb)) {
+ perror_msg_and_die("%s", hostpath);
diff --git a/packages/mtd/mtd-utils_20050615.bb b/packages/mtd/mtd-utils_20050615.bb
index e69de29bb2..6b457d52d7 100644
--- a/packages/mtd/mtd-utils_20050615.bb
+++ b/packages/mtd/mtd-utils_20050615.bb
@@ -0,0 +1,34 @@
+DESCRIPTION = "Tools for managing memory technology devices."
+SECTION = "base"
+DEPENDS = "zlib"
+HOMEPAGE = "http://www.linux-mtd.infradead.org/"
+LICENSE = "GPLv2"
+mtd_utils = "ftl_format flash_erase flash_eraseall nanddump doc_loadbios \
+ mkfs.jffs ftl_check mkfs.jffs2 flash_lock flash_unlock flash_info mtd_debug \
+ flashcp nandwrite jffs2dump"
+PR = "r2"
+
+SRC_URI = "ftp://ftp.uk.linux.org/pub/people/dwmw2/mtd/cvs/mtd-snapshot-${PV}.tar.bz2 \
+ file://add-exclusion-to-mkfs-jffs2.patch;patch=1 \
+ file://more-verbosity.patch;patch=1"
+S = "${WORKDIR}/mtd/"
+
+CFLAGS_prepend = "-I${S}/include "
+
+do_compile () {
+ oe_runmake -C util ${mtd_utils}
+}
+
+do_stage () {
+ install -d ${STAGING_INCDIR}/mtd
+ for f in ${S}/include/mtd/*.h; do
+ install -m 0644 $f ${STAGING_INCDIR}/mtd/
+ done
+}
+
+do_install () {
+ install -d ${D}${bindir}
+ for binary in ${mtd_utils}; do
+ install -m 0755 util/$binary ${D}${bindir}
+ done
+}