summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-07-21 14:55:39 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-21 15:39:53 +0100
commit971907567cff64e74f21d349d6751dadc8c09827 (patch)
treee0cfd7ee0ba3091272eca5c5f1b90edffc3653aa /meta
parent50629b3746c149b22bdd8664842a4c69abb2b989 (diff)
downloadpoky-971907567cff64e74f21d349d6751dadc8c09827.tar.gz
Enable build dir outside of the poky directory
You need to first set up the build directory by sourcing the poky build script, after that builds can be run in that directory so long as bitbake is in $PATH removing the need to source the init script for each build. i.e: $ . poky-init-build-env ~/my-build $ bitbake some-image <<later, in a different shell>> $ cd ~/my-build $ export PATH=/path/to/bitbake/bin:$PATH $ bitbake an-image This patch also removes use of OEROOT in recipes, etc. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/imagetest-qemu.bbclass1
-rw-r--r--meta/classes/sanity.bbclass6
-rw-r--r--meta/conf/layer.conf5
-rw-r--r--meta/packages/qemu/qemu-helper-nativesdk_1.0.bb12
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
13PATH := "${PATH}:${LAYERDIR}/scripts" 13PATH := "${PATH}:${LAYERDIR}/scripts"
14 14
15# Set a variable to get to the top of the metadata location
16POKYBASE := ${@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
17QEMUIMAGETESTS := "${OEROOT}/scripts/qemuimage-tests" 20QEMUIMAGETESTS := "${POKYBASE}/scripts/qemuimage-tests"
18 21
19require conf/distro/include/poky-default-revisions.inc 22require 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
6FILESPATH = "${FILE_DIRNAME}/qemu-helper" 6FILESPATH = "${FILE_DIRNAME}/qemu-helper"
7 7
8SRC_URI = "file://${OEROOT}/scripts/poky-qemu \ 8SRC_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
15S = "${WORKDIR}" 15S = "${WORKDIR}"
@@ -23,7 +23,7 @@ do_compile() {
23 23
24do_install() { 24do_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