diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2010-11-02 22:03:58 +0100 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2010-11-02 22:12:02 +0100 |
| commit | be10a6b1321f250b1034c7d9d0a8ef18b296eef1 (patch) | |
| tree | 9249025cbfbfbee4cc430d62b27f75301dd4dfde /recipes-devtools/gcc/gcc-configure-cross.inc | |
| parent | 93b28937ac67ba46d65f55637e42552e224aa7e2 (diff) | |
| download | meta-openembedded-be10a6b1321f250b1034c7d9d0a8ef18b296eef1.tar.gz | |
angstrom-layers: meta-openembedded: replace poky gcc 4.5 sources with OE ones
This needs further investigation, but for now we can get the tested sources into the poky gcc harness
Signed-off-by: Koen Kooi <k-kooi@ti.com>
Diffstat (limited to 'recipes-devtools/gcc/gcc-configure-cross.inc')
| -rw-r--r-- | recipes-devtools/gcc/gcc-configure-cross.inc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/gcc-configure-cross.inc b/recipes-devtools/gcc/gcc-configure-cross.inc new file mode 100644 index 0000000000..3da92e24a1 --- /dev/null +++ b/recipes-devtools/gcc/gcc-configure-cross.inc | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | require gcc-configure-common.inc | ||
| 2 | |||
| 3 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' | ||
| 4 | |||
| 5 | EXTRA_OECONF += " --enable-poison-system-directories " | ||
| 6 | |||
| 7 | EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_exec_prefix} \ | ||
| 8 | --with-gxx-include-dir=${STAGING_DIR_TARGET}/${target_includedir}/c++ \ | ||
| 9 | --with-sysroot=${STAGING_DIR_TARGET} \ | ||
| 10 | --with-build-sysroot=${STAGING_DIR_TARGET}" | ||
| 11 | |||
| 12 | do_compile_prepend () { | ||
| 13 | export CC="${BUILD_CC}" | ||
| 14 | export AR_FOR_TARGET="${TARGET_SYS}-ar" | ||
| 15 | export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib" | ||
| 16 | export LD_FOR_TARGET="${TARGET_SYS}-ld" | ||
| 17 | export NM_FOR_TARGET="${TARGET_SYS}-nm" | ||
| 18 | export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}" | ||
| 19 | } | ||
| 20 | |||
| 21 | LIBGCCS_VAR = "-lgcc_s" | ||
| 22 | LIBGCCS_VAR_avr32 = "" | ||
| 23 | |||
| 24 | do_package_write_ipk[depends] += "virtual/libc:do_package" | ||
