diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-configure-sdk.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-sdk.inc b/meta/recipes-devtools/gcc/gcc-configure-sdk.inc deleted file mode 100644 index 6c55bc7e23..0000000000 --- a/meta/recipes-devtools/gcc/gcc-configure-sdk.inc +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | require gcc-configure-common.inc | ||
2 | |||
3 | EXTRA_OECONF_PATHS = "--with-gxx-include-dir=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${target_includedir}/c++ \ | ||
4 | --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \ | ||
5 | --with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \ | ||
6 | --with-build-sysroot=${STAGING_DIR_TARGET}" | ||
7 | |||
8 | # | ||
9 | # gcc-cross looks and finds these in ${exec_prefix} but we're not so lucky | ||
10 | # for the sdk. Hardcoding the paths ensures the build doesn't go canadian or worse. | ||
11 | # | ||
12 | export AR_FOR_TARGET = "${TARGET_PREFIX}ar" | ||
13 | export AS_FOR_TARGET = "${TARGET_PREFIX}as" | ||
14 | export DLLTOOL_FOR_TARGET = "${TARGET_PREFIX}dlltool" | ||
15 | export CC_FOR_TARGET = "${TARGET_PREFIX}gcc" | ||
16 | export CXX_FOR_TARGET = "${TARGET_PREFIX}g++" | ||
17 | export LD_FOR_TARGET = "${TARGET_PREFIX}ld" | ||
18 | export LIPO_FOR_TARGET = "${TARGET_PREFIX}lipo" | ||
19 | export NM_FOR_TARGET = "${TARGET_PREFIX}nm" | ||
20 | export OBJDUMP_FOR_TARGET = "${TARGET_PREFIX}objdump" | ||
21 | export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib" | ||
22 | export STRIP_FOR_TARGET = "${TARGET_PREFIX}strip" | ||
23 | export WINDRES_FOR_TARGET = "${TARGET_PREFIX}windres" | ||
24 | |||
25 | # | ||
26 | # We need to override this and make sure the compiler can find staging | ||
27 | # | ||
28 | export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET}" | ||
29 | |||
30 | do_configure () { | ||
31 | export CC_FOR_BUILD="${BUILD_CC}" | ||
32 | export CXX_FOR_BUILD="${BUILD_CXX}" | ||
33 | export CFLAGS_FOR_BUILD="${BUILD_CFLAGS}" | ||
34 | export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}" | ||
35 | export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}" | ||
36 | export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}" | ||
37 | export CFLAGS_FOR_TARGET="${TARGET_CFLAGS}" | ||
38 | export CPPFLAGS_FOR_TARGET="${TARGET_CPPFLAGS}" | ||
39 | export CXXFLAGS_FOR_TARGET="${TARGET_CXXFLAGS}" | ||
40 | export LDFLAGS_FOR_TARGET="${TARGET_LDFLAGS}" | ||
41 | (cd ${S} && gnu-configize) || die "failure running gnu-configize" | ||
42 | oe_runconf | ||
43 | } | ||
44 | |||
45 | do_compile () { | ||
46 | oe_runmake all-host | ||
47 | } | ||