diff options
author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/packages/gcc/gcc3-build-cross.inc | |
download | poky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/gcc/gcc3-build-cross.inc')
-rw-r--r-- | openembedded/packages/gcc/gcc3-build-cross.inc | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/openembedded/packages/gcc/gcc3-build-cross.inc b/openembedded/packages/gcc/gcc3-build-cross.inc new file mode 100644 index 0000000000..a41ae11d64 --- /dev/null +++ b/openembedded/packages/gcc/gcc3-build-cross.inc | |||
@@ -0,0 +1,43 @@ | |||
1 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' | ||
2 | |||
3 | EXTRA_OECONF_PATHS = "--with-local-prefix=${CROSS_DIR}/${TARGET_SYS} \ | ||
4 | --with-gxx-include-dir=${CROSS_DIR}/${TARGET_SYS}/include/c++" | ||
5 | |||
6 | do_configure_prepend () { | ||
7 | rm -f ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}/libgcc_eh.a | ||
8 | } | ||
9 | |||
10 | do_compile_prepend () { | ||
11 | export CC="${BUILD_CC}" | ||
12 | export AR_FOR_TARGET="${TARGET_SYS}-ar" | ||
13 | export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib" | ||
14 | export LD_FOR_TARGET="${TARGET_SYS}-ld" | ||
15 | export NM_FOR_TARGET="${TARGET_SYS}-nm" | ||
16 | export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}" | ||
17 | } | ||
18 | |||
19 | do_stage_append () { | ||
20 | for d in info man share/doc share/locale ; do | ||
21 | rm -rf ${CROSS_DIR}/$d | ||
22 | done | ||
23 | |||
24 | # These aren't useful on the cross toolchain | ||
25 | rm -f ${CROSS_DIR}/bin/*gcov | ||
26 | rm -f ${CROSS_DIR}/bin/*gccbug | ||
27 | |||
28 | # Fix a few include links so cross builds are happier | ||
29 | if [ ! -e ${STAGING_INCDIR}/c++ ]; then | ||
30 | mkdir -p ${STAGING_INCDIR} | ||
31 | ln -sf ${CROSS_DIR}/${TARGET_SYS}/include/c++ \ | ||
32 | ${STAGING_INCDIR}/ | ||
33 | fi | ||
34 | |||
35 | # We use libiberty from binutils | ||
36 | rm -f ${CROSS_DIR}/lib/libiberty.a | ||
37 | |||
38 | # We probably don't need these | ||
39 | rmdir ${CROSS_DIR}/include || : | ||
40 | |||
41 | # We don't really need to keep this around | ||
42 | rm -rf ${CROSS_DIR}/share | ||
43 | } | ||