mtd-utils: update to 1.5.0
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 5 Jul 2015 19:39:52 +0000 (22:39 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 5 Jul 2015 20:20:03 +0000 (23:20 +0300)
recipes/lzo/lzo2_2.09.bb [new file with mode: 0644]
recipes/mtd/mtd-utils-native.inc [deleted file]
recipes/mtd/mtd-utils-native_1.1.0.bb [deleted file]
recipes/mtd/mtd-utils-native_1.2.0+git.bb [deleted file]
recipes/mtd/mtd-utils-native_1.3.1.bb [deleted file]
recipes/mtd/mtd-utils_1.5.0.bb [new file with mode: 0644]

diff --git a/recipes/lzo/lzo2_2.09.bb b/recipes/lzo/lzo2_2.09.bb
new file mode 100644 (file)
index 0000000..a3bc4fd
--- /dev/null
@@ -0,0 +1,23 @@
+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"
+
diff --git a/recipes/mtd/mtd-utils-native.inc b/recipes/mtd/mtd-utils-native.inc
deleted file mode 100644 (file)
index aaef4ac..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-inherit native
-DEPENDS = "zlib-native lzo-native"
-FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/mtd-utils"
-
-NATIVE_INSTALL_WORKS = "1"
diff --git a/recipes/mtd/mtd-utils-native_1.1.0.bb b/recipes/mtd/mtd-utils-native_1.1.0.bb
deleted file mode 100644 (file)
index 2b8d925..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# scheduled to enable 15-03-2008
-DEFAULT_PREFERENCE = "-1"
-
-require mtd-utils_${PV}.bb
-require mtd-utils-native.inc
diff --git a/recipes/mtd/mtd-utils-native_1.2.0+git.bb b/recipes/mtd/mtd-utils-native_1.2.0+git.bb
deleted file mode 100644 (file)
index 5d06844..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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"
diff --git a/recipes/mtd/mtd-utils-native_1.3.1.bb b/recipes/mtd/mtd-utils-native_1.3.1.bb
deleted file mode 100644 (file)
index 5d06844..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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"
diff --git a/recipes/mtd/mtd-utils_1.5.0.bb b/recipes/mtd/mtd-utils_1.5.0.bb
new file mode 100644 (file)
index 0000000..b86e36f
--- /dev/null
@@ -0,0 +1,34 @@
+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"