Patchwork mtd-utils: split into multiple packages

login
register
mail settings
Submitter Frans Meulenbroeks
Date Jan. 21, 2013, 11:17 a.m.
Message ID <1358767027-26070-1-git-send-email-fransmeulenbroeks@gmail.com>
Download mbox | patch
Permalink /patch/43047/
State Accepted
Commit ca9d10543f22b60ba32fd78130970591782b880c
Headers show

Comments

Frans Meulenbroeks - Jan. 21, 2013, 11:17 a.m.
This allows one not to install rarely used or fs specific files
As discussed in http://thread.gmane.org/gmane.comp.handhelds.openembedded.core/31744/focus=31804

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
---
 meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb b/meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb
index 12ad9d4..5797204 100644
--- a/meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb
+++ b/meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb
@@ -13,7 +13,7 @@  SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git \
 
 S = "${WORKDIR}/git/"
 
-PR = "r2"
+PR = "r3"
 
 EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"
 
@@ -21,6 +21,12 @@  do_install () {
 	oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
 }
 
+PACKAGES =+ "mtd-utils-jffs2 mtd-utils-ubifs mtd-utils-misc"
+
+FILES_mtd-utils-jffs2 = "${sbindir}/mkfs.jffs2 ${sbindir}/jffs2dump ${sbindir}/jffs2reader ${sbindir}/sumtool"
+FILES_mtd-utils-ubifs = "${sbindir}/mkfs.ubifs ${sbindir}/ubi*"
+FILES_mtd-utils-misc = "${sbindir}/nftl* ${sbindir}/ftl* ${sbindir}/rfd* ${sbindir}/doc* ${sbindir}/serve_image ${sbindir}/recv_image"
+
 PARALLEL_MAKE = ""
 
 BBCLASSEXTEND = "native"