From 971907567cff64e74f21d349d6751dadc8c09827 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Wed, 21 Jul 2010 14:55:39 +0100 Subject: 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 <> $ 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 --- meta/conf/layer.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meta/conf/layer.conf') 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" # Add scripts to PATH PATH := "${PATH}:${LAYERDIR}/scripts" +# Set a variable to get to the top of the metadata location +POKYBASE := ${@os.path.normpath("${LAYERDIR}/../")} + # Set path to qemu image tests included in this layer -QEMUIMAGETESTS := "${OEROOT}/scripts/qemuimage-tests" +QEMUIMAGETESTS := "${POKYBASE}/scripts/qemuimage-tests" require conf/distro/include/poky-default-revisions.inc -- cgit v1.2.3-54-g00ecf