summaryrefslogtreecommitdiffstats
path: root/meta/packages/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/mtd')
-rw-r--r--meta/packages/mtd/mtd-utils-native.inc13
-rw-r--r--meta/packages/mtd/mtd-utils-native_1.1.0+git.bb2
-rw-r--r--meta/packages/mtd/mtd-utils_1.1.0+git.bb22
3 files changed, 8 insertions, 29 deletions
diff --git a/meta/packages/mtd/mtd-utils-native.inc b/meta/packages/mtd/mtd-utils-native.inc
deleted file mode 100644
index 01337697ef..0000000000
--- a/meta/packages/mtd/mtd-utils-native.inc
+++ /dev/null
@@ -1,13 +0,0 @@
1inherit native
2DEPENDS = "zlib-native lzo-native"
3
4do_stage () {
5 install -d ${STAGING_INCDIR}/mtd
6 for f in ${S}/include/mtd/*.h; do
7 install -m 0644 $f ${STAGING_INCDIR}/mtd/
8 done
9 for binary in ${mtd_utils}; do
10 install -m 0755 $binary ${STAGING_BINDIR}
11 done
12}
13
diff --git a/meta/packages/mtd/mtd-utils-native_1.1.0+git.bb b/meta/packages/mtd/mtd-utils-native_1.1.0+git.bb
deleted file mode 100644
index 6f9d71e10c..0000000000
--- a/meta/packages/mtd/mtd-utils-native_1.1.0+git.bb
+++ /dev/null
@@ -1,2 +0,0 @@
1require mtd-utils_${PV}.bb
2require mtd-utils-native.inc
diff --git a/meta/packages/mtd/mtd-utils_1.1.0+git.bb b/meta/packages/mtd/mtd-utils_1.1.0+git.bb
index a6b8b4df29..fa62475f4b 100644
--- a/meta/packages/mtd/mtd-utils_1.1.0+git.bb
+++ b/meta/packages/mtd/mtd-utils_1.1.0+git.bb
@@ -3,7 +3,7 @@ SECTION = "base"
3DEPENDS = "zlib lzo" 3DEPENDS = "zlib lzo"
4HOMEPAGE = "http://www.linux-mtd.infradead.org/" 4HOMEPAGE = "http://www.linux-mtd.infradead.org/"
5LICENSE = "GPLv2" 5LICENSE = "GPLv2"
6PR = "r1" 6PR = "r2"
7 7
8SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=b995f89a81589be8d8a41c374a6df109d0ee12b3 \ 8SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=b995f89a81589be8d8a41c374a6df109d0ee12b3 \
9 file://add-exclusion-to-mkfs-jffs2-git.patch;patch=1 \ 9 file://add-exclusion-to-mkfs-jffs2-git.patch;patch=1 \
@@ -14,22 +14,16 @@ S = "${WORKDIR}/git/"
14 14
15EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR'" 15EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR'"
16 16
17do_stage () { 17do_install () {
18 install -d ${STAGING_INCDIR}/mtd 18 oe_runmake install DESTDIR=${D}
19 install -d ${D}${includedir}/mtd/
19 for f in ${S}/include/mtd/*.h; do 20 for f in ${S}/include/mtd/*.h; do
20 install -m 0644 $f ${STAGING_INCDIR}/mtd/ 21 install -m 0644 $f ${D}${includedir}/mtd/
21 done 22 done
22 for binary in ${mtd_utils}; do
23 install -m 0755 $binary ${STAGING_BINDIR}
24 done
25}
26 23
27mtd_utils = "ftl_format flash_erase flash_eraseall nanddump doc_loadbios \
28 ftl_check mkfs.jffs2 flash_lock flash_unlock flash_info mtd_debug \
29 flashcp nandwrite jffs2dump sumtool"
30
31do_install () {
32 oe_runmake install DESTDIR=${D}
33} 24}
34 25
35PARALLEL_MAKE = "" 26PARALLEL_MAKE = ""
27
28BBCLASSEXTEND = "native"
29NATIVE_INSTALL_WORKS = "1"