summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/yaffs2/yaffs2-utils.inc
blob: 0863fee02649592b4a9ce836a1cfc3195882d0a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DESCRIPTION = "Tools for managing 'yaffs2' file systems."
SECTION = "base"
HOMEPAGE = "http://www.yaffs.net"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://yaffs_fs.c;beginline=1;endline=19;md5=353dca22c3100881669871c4bd5cbf73"
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
}

do_install() {
	install -d ${D}${sbindir}/
	for i in mkyaffsimage mkyaffs2image; do
		install -m 0755 utils/$i ${D}${sbindir}/
	done
}

BBCLASSEXTEND = "native"