summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/gcc/gcc-configure-sdk.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2010-11-02 22:03:58 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2010-11-02 22:12:02 +0100
commitbe10a6b1321f250b1034c7d9d0a8ef18b296eef1 (patch)
tree9249025cbfbfbee4cc430d62b27f75301dd4dfde /recipes-devtools/gcc/gcc-configure-sdk.inc
parent93b28937ac67ba46d65f55637e42552e224aa7e2 (diff)
downloadmeta-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-sdk.inc')
-rw-r--r--recipes-devtools/gcc/gcc-configure-sdk.inc48
1 files changed, 48 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/gcc-configure-sdk.inc b/recipes-devtools/gcc/gcc-configure-sdk.inc
new file mode 100644
index 0000000000..0eb33adda8
--- /dev/null
+++ b/recipes-devtools/gcc/gcc-configure-sdk.inc
@@ -0,0 +1,48 @@
1require gcc-configure-common.inc
2
3# The two lines below conflict, this needs fixing - RP
4USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
5USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}'
6
7EXTRA_OECONF_PATHS = "--with-local-prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \
8 --with-gxx-include-dir=${SDKPATH}/sysroots/${TARGET_SYS}${target_includedir}/c++ \
9 --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
10 --with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \
11 --with-build-sysroot=${STAGING_DIR_TARGET}"
12
13#
14# gcc-cross looks and finds these in ${exec_prefix} but we're not so lucky
15# for the sdk. Hardcoding the paths ensures the build doesn't go canadian or worse.
16#
17export AR_FOR_TARGET = "${TARGET_PREFIX}ar"
18export AS_FOR_TARGET = "${TARGET_PREFIX}as"
19export DLLTOOL_FOR_TARGET = "${TARGET_PREFIX}dlltool"
20export CC_FOR_TARGET = "${TARGET_PREFIX}gcc"
21export CXX_FOR_TARGET = "${TARGET_PREFIX}g++"
22export LD_FOR_TARGET = "${TARGET_PREFIX}ld"
23export LIPO_FOR_TARGET = "${TARGET_PREFIX}lipo"
24export NM_FOR_TARGET = "${TARGET_PREFIX}nm"
25export OBJDUMP_FOR_TARGET = "${TARGET_PREFIX}objdump"
26export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib"
27export STRIP_FOR_TARGET = "${TARGET_PREFIX}strip"
28export WINDRES_FOR_TARGET = "${TARGET_PREFIX}windres"
29
30#
31# We need to override this and make sure the compiler can find staging
32#
33export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET}"
34
35do_configure () {
36 export CC_FOR_BUILD="${BUILD_CC}"
37 export CXX_FOR_BUILD="${BUILD_CXX}"
38 export CFLAGS_FOR_BUILD="${BUILD_CFLAGS}"
39 export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
40 export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
41 export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
42 (cd ${S} && gnu-configize) || die "failure running gnu-configize"
43 oe_runconf
44}
45
46do_compile () {
47 oe_runmake all-host all-target-libgcc
48}