diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/imagetest-qemu.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/sanity.bbclass | 6 | ||||
-rw-r--r-- | meta/conf/layer.conf | 5 | ||||
-rw-r--r-- | meta/packages/qemu/qemu-helper-nativesdk_1.0.bb | 12 |
4 files changed, 14 insertions, 10 deletions
diff --git a/meta/classes/imagetest-qemu.bbclass b/meta/classes/imagetest-qemu.bbclass index 742b759208..feab868476 100644 --- a/meta/classes/imagetest-qemu.bbclass +++ b/meta/classes/imagetest-qemu.bbclass | |||
@@ -47,6 +47,7 @@ python do_qemuimagetest() { | |||
47 | os.environ["QEMUARCH"] = machine | 47 | os.environ["QEMUARCH"] = machine |
48 | os.environ["QEMUTARGET"] = pname | 48 | os.environ["QEMUTARGET"] = pname |
49 | os.environ["DISPLAY"] = bb.data.getVar("DISPLAY", d, True) | 49 | os.environ["DISPLAY"] = bb.data.getVar("DISPLAY", d, True) |
50 | os.environ["POKYBASE"] = bb.data.getVar("POKYBASE", d, True) | ||
50 | 51 | ||
51 | """run Test Case""" | 52 | """run Test Case""" |
52 | bb.note("Run %s test in scenario %s" % (case, scen)) | 53 | bb.note("Run %s test in scenario %s" % (case, scen)) |
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 94e96f8524..31b8dd2b07 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -194,11 +194,11 @@ def check_sanity(e): | |||
194 | f.write(current_abi) | 194 | f.write(current_abi) |
195 | f.close() | 195 | f.close() |
196 | 196 | ||
197 | oeroot = data.getVar('OEROOT', e.data) | 197 | oeroot = data.getVar('POKYBASE', e.data) |
198 | if oeroot.find ('+') != -1: | 198 | if oeroot.find ('+') != -1: |
199 | messages = messages + "Error, you have an invalid character (+) in your OEROOT directory path. Please more Poky to a directory which doesn't include a +." | 199 | messages = messages + "Error, you have an invalid character (+) in your POKYBASE directory path. Please more Poky to a directory which doesn't include a +." |
200 | elif oeroot.find (' ') != -1: | 200 | elif oeroot.find (' ') != -1: |
201 | messages = messages + "Error, you have a space in your OEROOT directory path. Please move Poky to a directory which doesn't include a space." | 201 | messages = messages + "Error, you have a space in your POKYBASE directory path. Please move Poky to a directory which doesn't include a space." |
202 | 202 | ||
203 | if messages != "": | 203 | if messages != "": |
204 | raise_sanity_error(messages) | 204 | raise_sanity_error(messages) |
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index d0d74884ec..30068d6aec 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf | |||
@@ -12,9 +12,12 @@ BBFILE_PRIORITY_normal = "5" | |||
12 | # Add scripts to PATH | 12 | # Add scripts to PATH |
13 | PATH := "${PATH}:${LAYERDIR}/scripts" | 13 | PATH := "${PATH}:${LAYERDIR}/scripts" |
14 | 14 | ||
15 | # Set a variable to get to the top of the metadata location | ||
16 | POKYBASE := ${@os.path.normpath("${LAYERDIR}/../")} | ||
17 | |||
15 | # Set path to qemu image tests included in this layer | 18 | # Set path to qemu image tests included in this layer |
16 | 19 | ||
17 | QEMUIMAGETESTS := "${OEROOT}/scripts/qemuimage-tests" | 20 | QEMUIMAGETESTS := "${POKYBASE}/scripts/qemuimage-tests" |
18 | 21 | ||
19 | require conf/distro/include/poky-default-revisions.inc | 22 | require conf/distro/include/poky-default-revisions.inc |
20 | 23 | ||
diff --git a/meta/packages/qemu/qemu-helper-nativesdk_1.0.bb b/meta/packages/qemu/qemu-helper-nativesdk_1.0.bb index 5d8e45f123..a4294ef5cf 100644 --- a/meta/packages/qemu/qemu-helper-nativesdk_1.0.bb +++ b/meta/packages/qemu/qemu-helper-nativesdk_1.0.bb | |||
@@ -5,11 +5,11 @@ PR = "r7" | |||
5 | 5 | ||
6 | FILESPATH = "${FILE_DIRNAME}/qemu-helper" | 6 | FILESPATH = "${FILE_DIRNAME}/qemu-helper" |
7 | 7 | ||
8 | SRC_URI = "file://${OEROOT}/scripts/poky-qemu \ | 8 | SRC_URI = "file://${POKYBASE}/scripts/poky-qemu \ |
9 | file://${OEROOT}/scripts/poky-qemu-internal \ | 9 | file://${POKYBASE}/scripts/poky-qemu-internal \ |
10 | file://${OEROOT}/scripts/poky-addptable2image \ | 10 | file://${POKYBASE}/scripts/poky-addptable2image \ |
11 | file://${OEROOT}/scripts/poky-qemu-ifup \ | 11 | file://${POKYBASE}/scripts/poky-qemu-ifup \ |
12 | file://${OEROOT}/scripts/poky-qemu-ifdown \ | 12 | file://${POKYBASE}/scripts/poky-qemu-ifdown \ |
13 | file://raw2flash.c" | 13 | file://raw2flash.c" |
14 | 14 | ||
15 | S = "${WORKDIR}" | 15 | S = "${WORKDIR}" |
@@ -23,7 +23,7 @@ do_compile() { | |||
23 | 23 | ||
24 | do_install() { | 24 | do_install() { |
25 | install -d ${D}${bindir} | 25 | install -d ${D}${bindir} |
26 | install -m 0755 ${WORKDIR}${OEROOT}/scripts/poky-* ${D}${bindir}/ | 26 | install -m 0755 ${WORKDIR}${POKYBASE}/scripts/poky-* ${D}${bindir}/ |
27 | install raw2flash.spitz ${D}${bindir}/ | 27 | install raw2flash.spitz ${D}${bindir}/ |
28 | install flash2raw.spitz ${D}${bindir}/ | 28 | install flash2raw.spitz ${D}${bindir}/ |
29 | ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.akita | 29 | ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.akita |