diff options
Diffstat (limited to 'meta/packages/mtd/mtd-utils_20060223.bb')
-rw-r--r-- | meta/packages/mtd/mtd-utils_20060223.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/packages/mtd/mtd-utils_20060223.bb b/meta/packages/mtd/mtd-utils_20060223.bb new file mode 100644 index 0000000000..21d0f21fcd --- /dev/null +++ b/meta/packages/mtd/mtd-utils_20060223.bb | |||
@@ -0,0 +1,36 @@ | |||
1 | DESCRIPTION = "Tools for managing memory technology devices." | ||
2 | SECTION = "base" | ||
3 | DEPENDS = "zlib" | ||
4 | HOMEPAGE = "http://www.linux-mtd.infradead.org/" | ||
5 | LICENSE = "GPLv2" | ||
6 | PR = "r0" | ||
7 | SRCDATE = "${PV}" | ||
8 | |||
9 | SRC_URI = "cvs://anoncvs:anoncvs@cvs.infradead.org/home/cvs;module=mtd \ | ||
10 | file://add-exclusion-to-mkfs-jffs2-20060131.patch;patch=1 \ | ||
11 | file://fix-ignoreerrors-20060131.patch;patch=1" | ||
12 | S = "${WORKDIR}/mtd/" | ||
13 | |||
14 | CFLAGS_prepend = "-I${S}/include " | ||
15 | |||
16 | do_compile () { | ||
17 | oe_runmake -C util ${mtd_utils} | ||
18 | } | ||
19 | |||
20 | do_stage () { | ||
21 | install -d ${STAGING_INCDIR}/mtd | ||
22 | for f in ${S}/include/mtd/*.h; do | ||
23 | install -m 0644 $f ${STAGING_INCDIR}/mtd/ | ||
24 | done | ||
25 | } | ||
26 | |||
27 | mtd_utils = "ftl_format flash_erase flash_eraseall nanddump doc_loadbios \ | ||
28 | mkfs.jffs ftl_check mkfs.jffs2 flash_lock flash_unlock flash_info mtd_debug \ | ||
29 | flashcp nandwrite jffs2dump sumtool" | ||
30 | |||
31 | do_install () { | ||
32 | install -d ${D}${bindir} | ||
33 | for binary in ${mtd_utils}; do | ||
34 | install -m 0755 util/$binary ${D}${bindir} | ||
35 | done | ||
36 | } | ||