diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-17 16:24:53 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-17 16:24:53 +0000 |
commit | bd910094a134fd1440e1312f02ebbd4ab64a4e27 (patch) | |
tree | 449161367a9d851080d653b460ead6f0eea3de91 | |
parent | a09fcd0c908e04cb671cd51407dcfaebf44ee1c2 (diff) | |
download | poky-bd910094a134fd1440e1312f02ebbd4ab64a4e27.tar.gz |
yaffs2-utils: Convert to BBCLASSEXTEND and drop custom staging function
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | meta/packages/yaffs2/yaffs2-utils-native_cvs.bb | 14 | ||||
-rw-r--r-- | meta/packages/yaffs2/yaffs2-utils.inc | 16 | ||||
-rw-r--r-- | meta/packages/yaffs2/yaffs2-utils_cvs.bb | 8 |
3 files changed, 12 insertions, 26 deletions
diff --git a/meta/packages/yaffs2/yaffs2-utils-native_cvs.bb b/meta/packages/yaffs2/yaffs2-utils-native_cvs.bb deleted file mode 100644 index 72964d6457..0000000000 --- a/meta/packages/yaffs2/yaffs2-utils-native_cvs.bb +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | require yaffs2-utils.inc | ||
2 | |||
3 | inherit native | ||
4 | |||
5 | DEPENDS = "mtd-utils-native" | ||
6 | PR = "r1" | ||
7 | |||
8 | CFLAGS += "-I.. -DCONFIG_YAFFS_UTIL" | ||
9 | |||
10 | do_stage() { | ||
11 | for i in mkyaffsimage mkyaffs2image; do | ||
12 | install -m 0755 utils/$i ${STAGING_BINDIR_NATIVE} | ||
13 | done | ||
14 | } | ||
diff --git a/meta/packages/yaffs2/yaffs2-utils.inc b/meta/packages/yaffs2/yaffs2-utils.inc index 5edc3cd9c6..a451f968c1 100644 --- a/meta/packages/yaffs2/yaffs2-utils.inc +++ b/meta/packages/yaffs2/yaffs2-utils.inc | |||
@@ -4,17 +4,25 @@ HOMEPAGE = "http://www.yaffs.net" | |||
4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
5 | PV = "0.0.0+cvs${SRCDATE}" | 5 | PV = "0.0.0+cvs${SRCDATE}" |
6 | PR = "r0" | 6 | PR = "r0" |
7 | 7 | DEPENDS = "mtd-utils" | |
8 | # | ||
9 | # NOTE: This needs pretty recent mtd-utils otherwise it fails to compile | ||
10 | # | ||
11 | 8 | ||
12 | SRC_URI = "cvs://anonymous@cvs.aleph1.co.uk/home/aleph1/cvs;module=yaffs2 \ | 9 | SRC_URI = "cvs://anonymous@cvs.aleph1.co.uk/home/aleph1/cvs;module=yaffs2 \ |
13 | file://mkyaffs2image.patch;patch=1" | 10 | file://mkyaffs2image.patch;patch=1" |
14 | S = "${WORKDIR}/yaffs2" | 11 | S = "${WORKDIR}/yaffs2" |
15 | 12 | ||
16 | CFLAGS += "-I.. -DCONFIG_YAFFS_UTIL" | 13 | CFLAGS += "-I.. -DCONFIG_YAFFS_UTIL" |
14 | CFLAGS_append_virtclass-native = " -I.. -DCONFIG_YAFFS_UTIL" | ||
17 | 15 | ||
18 | do_compile() { | 16 | do_compile() { |
19 | cd utils && oe_runmake | 17 | cd utils && oe_runmake |
20 | } | 18 | } |
19 | |||
20 | NATIVE_INSTALL_WORKS = "1" | ||
21 | do_install() { | ||
22 | install -d ${D}${sbindir}/ | ||
23 | for i in mkyaffsimage mkyaffs2image; do | ||
24 | install -m 0755 utils/$i ${D}${sbindir}/ | ||
25 | done | ||
26 | } | ||
27 | |||
28 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/packages/yaffs2/yaffs2-utils_cvs.bb b/meta/packages/yaffs2/yaffs2-utils_cvs.bb index cb9660ed85..6171fe55bd 100644 --- a/meta/packages/yaffs2/yaffs2-utils_cvs.bb +++ b/meta/packages/yaffs2/yaffs2-utils_cvs.bb | |||
@@ -1,11 +1,3 @@ | |||
1 | require yaffs2-utils.inc | 1 | require yaffs2-utils.inc |
2 | |||
3 | DEPENDS = "mtd-utils" | ||
4 | PR = "r1" | 2 | PR = "r1" |
5 | 3 | ||
6 | do_install() { | ||
7 | install -d ${D}${sbindir} | ||
8 | for i in mkyaffsimage mkyaffs2image; do | ||
9 | install -m 0755 utils/$i ${D}${sbindir} | ||
10 | done | ||
11 | } | ||