diff options
author | Richard Purdie <richard@openedhand.com> | 2006-11-25 10:01:30 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-11-25 10:01:30 +0000 |
commit | 4f249a8efbced11400f99c182ef101b7c00e7ba8 (patch) | |
tree | 03766f69c5fd2b6a4d1f3d8936cdf6c6d32b8989 /meta | |
parent | 82dd73248db6eb9be25db48081a573d7027a204f (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes/ccdv.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/distutils.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/mozilla.bbclass | 6 | ||||
-rw-r--r-- | meta/classes/native.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/package_deb.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/scons.bbclass | 4 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 5 | ||||
-rw-r--r-- | meta/packages/apmd/apmd_3.2.2.bb | 2 | ||||
-rw-r--r-- | meta/packages/jpeg/jpeg_6b.bb | 2 | ||||
-rwxr-xr-x | meta/packages/kf/kf_0.5.4.1.bb | 2 | ||||
-rw-r--r-- | meta/packages/perl/perl.inc | 4 | ||||
-rw-r--r-- | meta/packages/perl/perl_5.8.7.bb | 2 | ||||
-rw-r--r-- | meta/packages/puzzles/puzzles_r6915.bb | 4 | ||||
-rw-r--r-- | meta/packages/update-rc.d/update-rc.d_0.7.bb | 2 |
14 files changed, 22 insertions, 20 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 () { | |||
10 | def quiet_libtool(bb,d): | 10 | def 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 | ||
3 | distutils_do_compile() { | 3 | distutils_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 | ||
9 | distutils_do_install() { | 9 | distutils_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}" | |||
19 | export CONFIGURE_ARGS = "${EXTRA_OECONF}" | 19 | export CONFIGURE_ARGS = "${EXTRA_OECONF}" |
20 | export HOST_LIBIDL_CFLAGS = "`${HOST_LIBIDL_CONFIG} --cflags`" | 20 | export HOST_LIBIDL_CFLAGS = "`${HOST_LIBIDL_CONFIG} --cflags`" |
21 | export HOST_LIBIDL_LIBS = "`${HOST_LIBIDL_CONFIG} --libs`" | 21 | export HOST_LIBIDL_LIBS = "`${HOST_LIBIDL_CONFIG} --libs`" |
22 | export HOST_LIBIDL_CONFIG = "PKG_CONFIG_PATH=${STAGING_BINDIR}/../share/pkgconfig pkg-config libIDL-2.0" | 22 | export HOST_LIBIDL_CONFIG = "PKG_CONFIG_PATH=${STAGING_DIR}/${BUILD_SYS}/share/pkgconfig pkg-config libIDL-2.0" |
23 | export HOST_CC = "${BUILD_CC}" | 23 | export HOST_CC = "${BUILD_CC}" |
24 | export HOST_CXX = "${BUILD_CXX}" | 24 | export HOST_CXX = "${BUILD_CXX}" |
25 | export HOST_CFLAGS = "${BUILD_CFLAGS}" | 25 | export 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}" | |||
36 | LDFLAGS = "${BUILD_LDFLAGS}" | 36 | LDFLAGS = "${BUILD_LDFLAGS}" |
37 | LDFLAGS_build-darwin = "-L${STAGING_DIR}/${BUILD_SYS}/lib " | 37 | LDFLAGS_build-darwin = "-L${STAGING_DIR}/${BUILD_SYS}/lib " |
38 | 38 | ||
39 | STAGING_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 |
41 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | 42 | export 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 @@ | |||
1 | DEPENDS += "python-scons-native" | 1 | DEPENDS += "python-scons-native" |
2 | 2 | ||
3 | scons_do_compile() { | 3 | scons_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 | ||
8 | scons_do_install() { | 8 | scons_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 | ||
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 21d68801e7..9f77c82e06 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -156,7 +156,8 @@ S = "${WORKDIR}/${P}" | |||
156 | B = "${S}" | 156 | B = "${S}" |
157 | 157 | ||
158 | STAGING_DIR = "${TMPDIR}/staging" | 158 | STAGING_DIR = "${TMPDIR}/staging" |
159 | STAGING_BINDIR = "${STAGING_DIR}/${BUILD_SYS}/bin" | 159 | STAGING_BINDIR = "${STAGING_DIR}/${BUILD_SYS}/bin/${HOST_SYS}" |
160 | STAGING_BINDIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}/bin" | ||
160 | STAGING_LIBDIR = "${STAGING_DIR}/${HOST_SYS}/lib" | 161 | STAGING_LIBDIR = "${STAGING_DIR}/${HOST_SYS}/lib" |
161 | STAGING_INCDIR = "${STAGING_DIR}/${HOST_SYS}/include" | 162 | STAGING_INCDIR = "${STAGING_DIR}/${HOST_SYS}/include" |
162 | STAGING_DATADIR = "${STAGING_DIR}/${HOST_SYS}/share" | 163 | STAGING_DATADIR = "${STAGING_DIR}/${HOST_SYS}/share" |
@@ -218,7 +219,7 @@ EXTRA_IMAGEDEPENDS = "" | |||
218 | 219 | ||
219 | CROSS_DIR = "${TMPDIR}/cross" | 220 | CROSS_DIR = "${TMPDIR}/cross" |
220 | CROSS_DATADIR = "${CROSS_DIR}/share" | 221 | CROSS_DATADIR = "${CROSS_DIR}/share" |
221 | export PATH_prepend = "${STAGING_BINDIR}/${HOST_SYS}:${STAGING_BINDIR}:${CROSS_DIR}/bin:" | 222 | export PATH_prepend = "${STAGING_BINDIR}:${STAGING_BINDIR_NATIVE}:${CROSS_DIR}/bin:" |
222 | 223 | ||
223 | ################################################################## | 224 | ################################################################## |
224 | # Build utility info. | 225 | # Build utility info. |
diff --git a/meta/packages/apmd/apmd_3.2.2.bb b/meta/packages/apmd/apmd_3.2.2.bb index 4a23f39590..94541581d3 100644 --- a/meta/packages/apmd/apmd_3.2.2.bb +++ b/meta/packages/apmd/apmd_3.2.2.bb | |||
@@ -22,7 +22,7 @@ INITSCRIPT_NAME = "apmd" | |||
22 | INITSCRIPT_PARAMS = "defaults" | 22 | INITSCRIPT_PARAMS = "defaults" |
23 | 23 | ||
24 | do_compile() { | 24 | do_compile() { |
25 | oe_runmake "LIBTOOL=${STAGING_BINDIR}/${TARGET_PREFIX}libtool" apm apmd | 25 | oe_runmake "LIBTOOL=${STAGING_BINDIR_NATIVE}/${TARGET_PREFIX}libtool" apm apmd |
26 | } | 26 | } |
27 | 27 | ||
28 | do_stage() { | 28 | do_stage() { |
diff --git a/meta/packages/jpeg/jpeg_6b.bb b/meta/packages/jpeg/jpeg_6b.bb index 342197c8ad..978ae10be5 100644 --- a/meta/packages/jpeg/jpeg_6b.bb +++ b/meta/packages/jpeg/jpeg_6b.bb | |||
@@ -16,7 +16,7 @@ S = "${WORKDIR}/jpeg-${PV}" | |||
16 | inherit autotools | 16 | inherit autotools |
17 | 17 | ||
18 | EXTRA_OECONF="--enable-static --enable-shared" | 18 | EXTRA_OECONF="--enable-static --enable-shared" |
19 | EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR}/${HOST_SYS}-libtool"' | 19 | EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR_NATIVE}/${HOST_SYS}-libtool"' |
20 | 20 | ||
21 | CFLAGS_append = " -D_REENTRANT" | 21 | CFLAGS_append = " -D_REENTRANT" |
22 | 22 | ||
diff --git a/meta/packages/kf/kf_0.5.4.1.bb b/meta/packages/kf/kf_0.5.4.1.bb index 806a383579..cd4feffa6d 100755 --- a/meta/packages/kf/kf_0.5.4.1.bb +++ b/meta/packages/kf/kf_0.5.4.1.bb | |||
@@ -9,7 +9,7 @@ SRC_URI = "http://jabberstudio.2nw.net/${PN}/${PN}-${PV}.tar.gz \ | |||
9 | 9 | ||
10 | inherit autotools pkgconfig | 10 | inherit autotools pkgconfig |
11 | 11 | ||
12 | export PKG_CONFIG="${STAGING_BINDIR}/pkg-config" | 12 | export PKG_CONFIG="${STAGING_BINDIR_NATIVE}/pkg-config" |
13 | 13 | ||
14 | EXTRA_OECONF = "--disable-binreloc" | 14 | EXTRA_OECONF = "--disable-binreloc" |
15 | 15 | ||
diff --git a/meta/packages/perl/perl.inc b/meta/packages/perl/perl.inc index 7e42f45314..6ee0ed702c 100644 --- a/meta/packages/perl/perl.inc +++ b/meta/packages/perl/perl.inc | |||
@@ -14,10 +14,10 @@ SRC_URI = "ftp://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz \ | |||
14 | file://config.sh-mipsel-linux \ | 14 | file://config.sh-mipsel-linux \ |
15 | file://config.sh-i686-linux" | 15 | file://config.sh-i686-linux" |
16 | 16 | ||
17 | HOSTPERL="${STAGING_BINDIR}/perl${PV}" | 17 | HOSTPERL="${STAGING_BINDIR_NATIVE}/perl${PV}" |
18 | 18 | ||
19 | do_configure() { | 19 | do_configure() { |
20 | ln -sf ${HOSTPERL} ${STAGING_BINDIR}/hostperl | 20 | ln -sf ${HOSTPERL} ${STAGING_BINDIR_NATIVE}/hostperl |
21 | cp ${HOSTPERL} hostperl | 21 | cp ${HOSTPERL} hostperl |
22 | cd Cross | 22 | cd Cross |
23 | rm Makefile.SH.patch | 23 | rm Makefile.SH.patch |
diff --git a/meta/packages/perl/perl_5.8.7.bb b/meta/packages/perl/perl_5.8.7.bb index a7095433a3..40d499eac3 100644 --- a/meta/packages/perl/perl_5.8.7.bb +++ b/meta/packages/perl/perl_5.8.7.bb | |||
@@ -26,7 +26,7 @@ PARALLEL_MAKE = "" | |||
26 | PR = "r21" | 26 | PR = "r21" |
27 | 27 | ||
28 | do_configure() { | 28 | do_configure() { |
29 | ln -sf ${HOSTPERL} ${STAGING_BINDIR}/hostperl | 29 | ln -sf ${HOSTPERL} ${STAGING_BINDIR_NATIVE}/hostperl |
30 | cp ${HOSTPERL} hostperl | 30 | cp ${HOSTPERL} hostperl |
31 | cd Cross | 31 | cd Cross |
32 | rm Makefile.SH.patch | 32 | rm Makefile.SH.patch |
diff --git a/meta/packages/puzzles/puzzles_r6915.bb b/meta/packages/puzzles/puzzles_r6915.bb index f8ffcb7d01..2c1d17dca8 100644 --- a/meta/packages/puzzles/puzzles_r6915.bb +++ b/meta/packages/puzzles/puzzles_r6915.bb | |||
@@ -6,8 +6,8 @@ SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar | |||
6 | file://game.png" | 6 | file://game.png" |
7 | 7 | ||
8 | do_compile_prepend = " \ | 8 | do_compile_prepend = " \ |
9 | export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR}/pkg-config gtk+-2.0 --libs`'; \ | 9 | export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --libs`'; \ |
10 | export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR}/pkg-config gtk+-2.0 --cflags`'; " | 10 | export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --cflags`'; " |
11 | 11 | ||
12 | FILES_${PN} = "${prefix}/games/* ${datadir}/applications/* ${datadir}/pixmaps" | 12 | FILES_${PN} = "${prefix}/games/* ${datadir}/applications/* ${datadir}/pixmaps" |
13 | FILES_${PN}-dbg += "${prefix}/games/.debug" | 13 | FILES_${PN}-dbg += "${prefix}/games/.debug" |
diff --git a/meta/packages/update-rc.d/update-rc.d_0.7.bb b/meta/packages/update-rc.d/update-rc.d_0.7.bb index 5c7ef67aed..8070197b82 100644 --- a/meta/packages/update-rc.d/update-rc.d_0.7.bb +++ b/meta/packages/update-rc.d/update-rc.d_0.7.bb | |||
@@ -13,7 +13,7 @@ do_compile() { | |||
13 | } | 13 | } |
14 | 14 | ||
15 | do_stage() { | 15 | do_stage() { |
16 | install -m 0755 ${S}/update-rc.d ${STAGING_BINDIR}/ | 16 | install -m 0755 ${S}/update-rc.d ${STAGING_BINDIR_NATIVE}/ |
17 | } | 17 | } |
18 | 18 | ||
19 | do_install() { | 19 | do_install() { |