diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross-intermediate.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-intermediate.inc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc new file mode 100644 index 0000000000..72a42411b1 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc | |||
@@ -0,0 +1,28 @@ | |||
1 | DEPENDS = "virtual/${TARGET_PREFIX}binutils ${NATIVEDEPS}" | ||
2 | DEPENDS += "virtual/${TARGET_PREFIX}libc-initial gettext-native" | ||
3 | PROVIDES = "virtual/${TARGET_PREFIX}gcc-intermediate" | ||
4 | PACKAGES = "" | ||
5 | |||
6 | # This is intended to be a -very- basic config | ||
7 | # sysroot is needed in case we use libc-initial | ||
8 | EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \ | ||
9 | --enable-shared \ | ||
10 | --disable-multilib \ | ||
11 | --disable-threads \ | ||
12 | --enable-languages=c \ | ||
13 | ${OPTSPACE} \ | ||
14 | --program-prefix=${TARGET_PREFIX} \ | ||
15 | --with-sysroot=${STAGING_DIR_TARGET} \ | ||
16 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | ||
17 | ${EXTRA_OECONF_INTERMEDIATE} \ | ||
18 | ${@get_gcc_fpu_setting(bb, d)}" | ||
19 | |||
20 | do_compile () { | ||
21 | oe_runmake | ||
22 | } | ||
23 | |||
24 | do_install () { | ||
25 | oe_runmake 'DESTDIR=${D}' install | ||
26 | install -d ${D}${target_base_libdir}/ | ||
27 | mv ${D}${exec_prefix}/${TARGET_SYS}/lib/* ${D}${target_base_libdir}/ | ||
28 | } | ||