Patchwork [meta-filesystems,v1] yaffs2: Adds git version recipe (initial recipe)

login
register
mail settings
Submitter Pengyu Ma
Date Aug. 21, 2013, 3:14 a.m.
Message ID <1377054890-12769-1-git-send-email-pengyu.ma@windriver.com>
Download mbox | patch
Permalink /patch/56095/
State Accepted, archived
Headers show

Comments

Pengyu Ma - Aug. 21, 2013, 3:14 a.m.
Added CONFIG in CFLAGS to resolve missing definition error.

Signed-off-by: Pengyu Ma <pengyu.ma@windriver.com>
---
 .../recipes-filesystems/yaffs2/yaffs2-utils_git.bb | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb

Patch

diff --git a/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb
new file mode 100644
index 0000000..2b7452b
--- /dev/null
+++ b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb
@@ -0,0 +1,38 @@ 
+SUMMARY = "Yet Another Flash File System"
+
+DESCRIPTION = "Tools for managing 'yaffs2' file systems."
+
+SECTION = "base"
+HOMEPAGE = "http://www.yaffs.net"
+LICENSE = "GPLv2"
+
+PR = "r0"
+PV = "0.0+git${SRCPV}"
+
+DEPENDS = "mtd-utils"
+S = "${WORKDIR}/git"
+
+# Source is the HEAD of master branch at the time of writing this recipe
+SRC_URI = "git://www.aleph1.co.uk/yaffs2;protocol=git;branch=master \
+          "
+SRCREV = "bc76682d93955cfb33051beb503ad9f8a5450578"
+
+LIC_FILES_CHKSUM = "file://utils/mkyaffs2image.c;beginline=12;endline=14;md5=5f5464f9b3e981ca574e65b00e438561"
+
+CFLAGS_append = " -I.. -DCONFIG_YAFFS_UTIL -DCONFIG_YAFFS_DEFINES_TYPES"
+
+do_compile() {
+	cd utils && oe_runmake
+}
+
+INSTALL_FILES = "mkyaffsimage \
+                 mkyaffs2image \
+                "
+do_install() {
+	install -d ${D}${sbindir}/
+	for i in ${INSTALL_FILES}; do
+		install -m 0755 utils/$i ${D}${sbindir}/
+	done
+}
+
+BBCLASSEXTEND = "native"