summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/packages/yaffs2/yaffs2-utils-native_cvs.bb14
-rw-r--r--meta/packages/yaffs2/yaffs2-utils.inc16
-rw-r--r--meta/packages/yaffs2/yaffs2-utils_cvs.bb8
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 @@
1require yaffs2-utils.inc
2
3inherit native
4
5DEPENDS = "mtd-utils-native"
6PR = "r1"
7
8CFLAGS += "-I.. -DCONFIG_YAFFS_UTIL"
9
10do_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"
4LICENSE = "GPLv2" 4LICENSE = "GPLv2"
5PV = "0.0.0+cvs${SRCDATE}" 5PV = "0.0.0+cvs${SRCDATE}"
6PR = "r0" 6PR = "r0"
7 7DEPENDS = "mtd-utils"
8#
9# NOTE: This needs pretty recent mtd-utils otherwise it fails to compile
10#
11 8
12SRC_URI = "cvs://anonymous@cvs.aleph1.co.uk/home/aleph1/cvs;module=yaffs2 \ 9SRC_URI = "cvs://anonymous@cvs.aleph1.co.uk/home/aleph1/cvs;module=yaffs2 \
13 file://mkyaffs2image.patch;patch=1" 10 file://mkyaffs2image.patch;patch=1"
14S = "${WORKDIR}/yaffs2" 11S = "${WORKDIR}/yaffs2"
15 12
16CFLAGS += "-I.. -DCONFIG_YAFFS_UTIL" 13CFLAGS += "-I.. -DCONFIG_YAFFS_UTIL"
14CFLAGS_append_virtclass-native = " -I.. -DCONFIG_YAFFS_UTIL"
17 15
18do_compile() { 16do_compile() {
19 cd utils && oe_runmake 17 cd utils && oe_runmake
20} 18}
19
20NATIVE_INSTALL_WORKS = "1"
21do_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
28BBCLASSEXTEND = "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 @@
1require yaffs2-utils.inc 1require yaffs2-utils.inc
2
3DEPENDS = "mtd-utils"
4PR = "r1" 2PR = "r1"
5 3
6do_install() {
7 install -d ${D}${sbindir}
8 for i in mkyaffsimage mkyaffs2image; do
9 install -m 0755 utils/$i ${D}${sbindir}
10 done
11}