summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-25 10:01:30 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-25 10:01:30 +0000
commit4f249a8efbced11400f99c182ef101b7c00e7ba8 (patch)
tree03766f69c5fd2b6a4d1f3d8936cdf6c6d32b8989 /meta/classes
parent82dd73248db6eb9be25db48081a573d7027a204f (diff)
downloadpoky-4f249a8efbced11400f99c182ef101b7c00e7ba8.tar.gz
Fix STAGING_BINDIR for multimachine use by spliting into STAGING_BINDIR and STAGING_BINDIR_NATIVE and adding both to PATH
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@958 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/ccdv.bbclass2
-rw-r--r--meta/classes/distutils.bbclass4
-rw-r--r--meta/classes/mozilla.bbclass6
-rw-r--r--meta/classes/native.bbclass1
-rw-r--r--meta/classes/package_deb.bbclass2
-rw-r--r--meta/classes/scons.bbclass4
6 files changed, 10 insertions, 9 deletions
diff --git a/meta/classes/ccdv.bbclass b/meta/classes/ccdv.bbclass
index a28ea672e5..8c8306cbf1 100644
--- a/meta/classes/ccdv.bbclass
+++ b/meta/classes/ccdv.bbclass
@@ -10,7 +10,7 @@ python () {
10def quiet_libtool(bb,d): 10def quiet_libtool(bb,d):
11 deps = (bb.data.getVar('DEPENDS', d, 1) or "").split() 11 deps = (bb.data.getVar('DEPENDS', d, 1) or "").split()
12 if 'libtool-cross' in deps: 12 if 'libtool-cross' in deps:
13 return "'LIBTOOL=${STAGING_BINDIR}/${HOST_SYS}-libtool --silent'" 13 return "'LIBTOOL=${STAGING_BINDIR_NATIVE}/${HOST_SYS}-libtool --silent'"
14 elif 'libtool-native' in deps: 14 elif 'libtool-native' in deps:
15 return "'LIBTOOL=${B}/${HOST_SYS}-libtool --silent'" 15 return "'LIBTOOL=${B}/${HOST_SYS}-libtool --silent'"
16 else: 16 else:
diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index a2b0e2b770..5f57a9ea19 100644
--- a/meta/classes/distutils.bbclass
+++ b/meta/classes/distutils.bbclass
@@ -2,13 +2,13 @@ inherit distutils-base
2 2
3distutils_do_compile() { 3distutils_do_compile() {
4 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ 4 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
5 ${STAGING_BINDIR}/python setup.py build || \ 5 ${STAGING_BINDIR_NATIVE}/python setup.py build || \
6 oefatal "python setup.py build execution failed." 6 oefatal "python setup.py build execution failed."
7} 7}
8 8
9distutils_do_install() { 9distutils_do_install() {
10 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ 10 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
11 ${STAGING_BINDIR}/python setup.py install --prefix=${D}/${prefix} --install-data=${D}/${datadir} || \ 11 ${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${D}/${prefix} --install-data=${D}/${datadir} || \
12 oefatal "python setup.py install execution failed." 12 oefatal "python setup.py install execution failed."
13} 13}
14 14
diff --git a/meta/classes/mozilla.bbclass b/meta/classes/mozilla.bbclass
index 3295c2b270..bd8e9193d9 100644
--- a/meta/classes/mozilla.bbclass
+++ b/meta/classes/mozilla.bbclass
@@ -19,7 +19,7 @@ export MOZ_OBJDIR = "${S}"
19export CONFIGURE_ARGS = "${EXTRA_OECONF}" 19export CONFIGURE_ARGS = "${EXTRA_OECONF}"
20export HOST_LIBIDL_CFLAGS = "`${HOST_LIBIDL_CONFIG} --cflags`" 20export HOST_LIBIDL_CFLAGS = "`${HOST_LIBIDL_CONFIG} --cflags`"
21export HOST_LIBIDL_LIBS = "`${HOST_LIBIDL_CONFIG} --libs`" 21export HOST_LIBIDL_LIBS = "`${HOST_LIBIDL_CONFIG} --libs`"
22export HOST_LIBIDL_CONFIG = "PKG_CONFIG_PATH=${STAGING_BINDIR}/../share/pkgconfig pkg-config libIDL-2.0" 22export HOST_LIBIDL_CONFIG = "PKG_CONFIG_PATH=${STAGING_DIR}/${BUILD_SYS}/share/pkgconfig pkg-config libIDL-2.0"
23export HOST_CC = "${BUILD_CC}" 23export HOST_CC = "${BUILD_CC}"
24export HOST_CXX = "${BUILD_CXX}" 24export HOST_CXX = "${BUILD_CXX}"
25export HOST_CFLAGS = "${BUILD_CFLAGS}" 25export HOST_CFLAGS = "${BUILD_CFLAGS}"
@@ -33,8 +33,8 @@ mozilla_do_configure() {
33 set -e 33 set -e
34 for cg in `find ${S} -name config.guess`; do 34 for cg in `find ${S} -name config.guess`; do
35 install -m 0755 \ 35 install -m 0755 \
36 ${STAGING_BINDIR}/../share/gnu-config/config.guess \ 36 ${STAGING_DIR}/${BUILD_SYS}/share/gnu-config/config.guess \
37 ${STAGING_BINDIR}/../share/gnu-config/config.sub \ 37 ${STAGING_DIR}/${BUILD_SYS}/share/gnu-config/config.sub \
38 `dirname $cg`/ 38 `dirname $cg`/
39 done 39 done
40 ) 40 )
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 04ff7d92d1..7d80c9c2bd 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -36,6 +36,7 @@ CXXFLAGS = "${BUILD_CFLAGS}"
36LDFLAGS = "${BUILD_LDFLAGS}" 36LDFLAGS = "${BUILD_LDFLAGS}"
37LDFLAGS_build-darwin = "-L${STAGING_DIR}/${BUILD_SYS}/lib " 37LDFLAGS_build-darwin = "-L${STAGING_DIR}/${BUILD_SYS}/lib "
38 38
39STAGING_BINDIR = "${STAGING_BINDIR_NATIVE}"
39 40
40# set the compiler as well. It could have been set to something else 41# set the compiler as well. It could have been set to something else
41export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" 42export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index ae085c301d..f346fceb82 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -18,7 +18,7 @@ python do_package_deb_install () {
18 rootfs = bb.data.getVar('IMAGE_ROOTFS', d, 1) 18 rootfs = bb.data.getVar('IMAGE_ROOTFS', d, 1)
19 debdir = bb.data.getVar('DEPLOY_DIR_DEB', d, 1) 19 debdir = bb.data.getVar('DEPLOY_DIR_DEB', d, 1)
20 stagingdir = bb.data.getVar('STAGING_DIR', d, 1) 20 stagingdir = bb.data.getVar('STAGING_DIR', d, 1)
21 stagingbindir = bb.data.getVar('STAGING_BINDIR', d, 1) 21 stagingbindir = bb.data.getVar('STAGING_BINDIR_NATIVE', d, 1)
22 tmpdir = bb.data.getVar('TMPDIR', d, 1) 22 tmpdir = bb.data.getVar('TMPDIR', d, 1)
23 23
24 if None in (pkg,pkgfn,rootfs): 24 if None in (pkg,pkgfn,rootfs):
diff --git a/meta/classes/scons.bbclass b/meta/classes/scons.bbclass
index 3160eca69a..89b5da2d0e 100644
--- a/meta/classes/scons.bbclass
+++ b/meta/classes/scons.bbclass
@@ -1,12 +1,12 @@
1DEPENDS += "python-scons-native" 1DEPENDS += "python-scons-native"
2 2
3scons_do_compile() { 3scons_do_compile() {
4 ${STAGING_BINDIR}/scons || \ 4 ${STAGING_BINDIR_NATIVE}/scons || \
5 oefatal "scons build execution failed." 5 oefatal "scons build execution failed."
6} 6}
7 7
8scons_do_install() { 8scons_do_install() {
9 ${STAGING_BINDIR}/scons install || \ 9 ${STAGING_BINDIR_NATIVE}/scons install || \
10 oefatal "scons install execution failed." 10 oefatal "scons install execution failed."
11} 11}
12 12