diff options
Diffstat (limited to 'recipes/yaffs2/yaffs2-utils.inc')
-rw-r--r-- | recipes/yaffs2/yaffs2-utils.inc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes/yaffs2/yaffs2-utils.inc b/recipes/yaffs2/yaffs2-utils.inc new file mode 100644 index 0000000000..a451f968c1 --- /dev/null +++ b/recipes/yaffs2/yaffs2-utils.inc @@ -0,0 +1,28 @@ +DESCRIPTION = "Tools for managing 'yaffs2' file systems." +SECTION = "base" +HOMEPAGE = "http://www.yaffs.net" +LICENSE = "GPLv2" +PV = "0.0.0+cvs${SRCDATE}" +PR = "r0" +DEPENDS = "mtd-utils" + +SRC_URI = "cvs://anonymous@cvs.aleph1.co.uk/home/aleph1/cvs;module=yaffs2 \ + file://mkyaffs2image.patch;patch=1" +S = "${WORKDIR}/yaffs2" + +CFLAGS += "-I.. -DCONFIG_YAFFS_UTIL" +CFLAGS_append_virtclass-native = " -I.. -DCONFIG_YAFFS_UTIL" + +do_compile() { + cd utils && oe_runmake +} + +NATIVE_INSTALL_WORKS = "1" +do_install() { + install -d ${D}${sbindir}/ + for i in mkyaffsimage mkyaffs2image; do + install -m 0755 utils/$i ${D}${sbindir}/ + done +} + +BBCLASSEXTEND = "native" |