diff options
author | Richard Purdie <richard@openedhand.com> | 2008-05-15 13:04:49 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-05-15 13:04:49 +0000 |
commit | 3c819c6330effe9e3fbe92fb636cc8d610b380e0 (patch) | |
tree | fea47c571b4e1f0ac92f2fa33c5f14b48563a05b /meta/packages | |
parent | a71df5506ad870dd64c91ae5490bf2611463b308 (diff) | |
download | poky-3c819c6330effe9e3fbe92fb636cc8d610b380e0.tar.gz |
meta-toolchain: Add some extra useful configuration variables and darwin specific tweaks
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4476 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/meta/meta-toolchain.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index b5dc6cccab..497c76fd08 100644 --- a/meta/packages/meta/meta-toolchain.bb +++ b/meta/packages/meta/meta-toolchain.bb | |||
@@ -99,6 +99,15 @@ do_populate_sdk() { | |||
99 | echo 'export PKG_CONFIG_SYSROOT_DIR=${prefix}/${TARGET_SYS}' >> $script | 99 | echo 'export PKG_CONFIG_SYSROOT_DIR=${prefix}/${TARGET_SYS}' >> $script |
100 | echo 'export PKG_CONFIG_PATH=${prefix}/${TARGET_SYS}${layout_libdir}/pkgconfig' >> $script | 100 | echo 'export PKG_CONFIG_PATH=${prefix}/${TARGET_SYS}${layout_libdir}/pkgconfig' >> $script |
101 | echo 'export CONFIG_SITE=${prefix}/site-config' >> $script | 101 | echo 'export CONFIG_SITE=${prefix}/site-config' >> $script |
102 | echo 'export CC=${TARGET_PREFIX}gcc' >> $script | ||
103 | echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${HOST_SYS}"' >> $script | ||
104 | if [ "${TARGET_OS}" = "darwin8" ]; then | ||
105 | echo 'export TARGET_CFLAGS="-I${prefix}/${TARGET_SYS}${layout_includedir}"' >> $script | ||
106 | echo 'export TARGET_LDFLAGS="-L${prefix}/${TARGET_SYS}${layout_libdir}"' >> $script | ||
107 | # Workaround darwin toolchain sysroot path problems | ||
108 | cd ${SDK_OUTPUT}/usr | ||
109 | ln -s local /usr/local | ||
110 | fi | ||
102 | echo "alias opkg='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${sysconfdir}/opkg-sdk.conf -o ${prefix}'" >> $script | 111 | echo "alias opkg='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${sysconfdir}/opkg-sdk.conf -o ${prefix}'" >> $script |
103 | echo "alias opkg-target='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${prefix}/${TARGET_SYS}${layout_sysconfdir}/opkg.conf -o ${prefix}/${TARGET_SYS}'" >> $script | 112 | echo "alias opkg-target='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${prefix}/${TARGET_SYS}${layout_sysconfdir}/opkg.conf -o ${prefix}/${TARGET_SYS}'" >> $script |
104 | 113 | ||