diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-initial.inc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial.inc b/meta/recipes-devtools/gcc/gcc-cross-initial.inc index a515fb0cc6..543a94a768 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-initial.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-initial.inc | |||
@@ -19,11 +19,23 @@ EXTRA_OECONF = "--with-newlib \ | |||
19 | ${OPTSPACE} \ | 19 | ${OPTSPACE} \ |
20 | --program-prefix=${TARGET_PREFIX} \ | 20 | --program-prefix=${TARGET_PREFIX} \ |
21 | --with-sysroot=${STAGING_DIR_TARGET} \ | 21 | --with-sysroot=${STAGING_DIR_TARGET} \ |
22 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | 22 | --with-build-sysroot=${GCCCROSS_BUILDSYSROOT} \ |
23 | ${EXTRA_OECONF_INITIAL} \ | 23 | ${EXTRA_OECONF_INITIAL} \ |
24 | ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--with-ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)} \ | 24 | ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--with-ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)} \ |
25 | ${EXTRA_OECONF_FPU}" | 25 | ${EXTRA_OECONF_FPU}" |
26 | 26 | ||
27 | |||
28 | GCCCROSS_BUILDSYSROOT = "${B}/tmpsysroot" | ||
29 | |||
30 | do_configure_prepend () { | ||
31 | sysr=${GCCCROSS_BUILDSYSROOT}${target_includedir} | ||
32 | mkdir -p $sysr | ||
33 | for t in linux asm asm-generic; do | ||
34 | rm -f $sysr/$t | ||
35 | ln -s ${STAGING_DIR_TARGET}${target_includedir}/$t $sysr/ | ||
36 | done | ||
37 | } | ||
38 | |||
27 | do_compile () { | 39 | do_compile () { |
28 | oe_runmake all-gcc all-target-libgcc | 40 | oe_runmake all-gcc all-target-libgcc |
29 | } | 41 | } |