--- /dev/null
+DESCRIPTION = "Lossless data compression library"
+HOMEPAGE = "http://www.oberhumer.com/opensource/lzo/"
+LICENSE = "GPLv2+"
+SECTION = "libs"
+PRIORITY = "optional"
+
+SRC_URI = "http://www.oberhumer.com/opensource/lzo/download/lzo-${PV}.tar.gz"
+SRC_URI[md5sum] = "c7ffc9a103afe2d1bba0b015e7aa887f"
+SRC_URI[sha256sum] = "f294a7ced313063c057c504257f437c8335c41bfeed23531ee4e6a2b87bcb34c"
+
+S = "${WORKDIR}/lzo-${PV}"
+
+inherit autotools
+
+EXTRA_OECONF = "--enable-shared"
+
+do_configure() {
+ gnu-configize --force
+ oe_runconf
+}
+
+BBCLASSEXTEND = "native"
+
+++ /dev/null
-inherit native
-DEPENDS = "zlib-native lzo-native"
-FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/mtd-utils"
-
-NATIVE_INSTALL_WORKS = "1"
+++ /dev/null
-# scheduled to enable 15-03-2008
-DEFAULT_PREFERENCE = "-1"
-
-require mtd-utils_${PV}.bb
-require mtd-utils-native.inc
+++ /dev/null
-# Doesn't build for everyone, errors range from missing includes to linking errors
-DEFAULT_PREFERENCE = "-1"
-DEFAULT_PREFERENCE_angstrom = "1"
-
-require mtd-utils_${PV}.bb
-require mtd-utils-native.inc
-DEPENDS += "util-linux-ng-native"
+++ /dev/null
-# Doesn't build for everyone, errors range from missing includes to linking errors
-DEFAULT_PREFERENCE = "-1"
-DEFAULT_PREFERENCE_angstrom = "1"
-
-require mtd-utils_${PV}.bb
-require mtd-utils-native.inc
-DEPENDS += "util-linux-ng-native"
--- /dev/null
+DESCRIPTION = "Tools for managing memory technology devices."
+SECTION = "base"
+DEPENDS = "zlib util-linux-ng lzo2"
+#DEPENDS = "zlib lzo e2fsprogs util-linux"
+HOMEPAGE = "http://www.linux-mtd.infradead.org/"
+LICENSE = "GPLv2+"
+PR = "r0"
+
+TAG = "v${PV}"
+
+SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=${TAG} \
+ file://add-exclusion-to-mkfs-jffs2-git-2.patch;patch=1 \
+ "
+
+S = "${WORKDIR}/git/"
+
+EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"
+
+do_install () {
+ oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
+ install -d ${D}${includedir}/mtd/
+ for f in ${S}/include/mtd/*.h; do
+ install -m 0644 $f ${D}${includedir}/mtd/
+ done
+}
+
+PACKAGES =+ "mkfs-jffs2 mkfs-ubifs"
+FILES_mkfs-jffs2 = "${sbindir}/mkfs.jffs2"
+FILES_mkfs-ubifs = "${sbindir}/mkfs.ubifs"
+
+PARALLEL_MAKE = ""
+
+BBCLASSEXTEND = "native"
+NATIVE_INSTALL_WORKS = "1"