diff options
Diffstat (limited to 'meta/packages/gcc/gcc4-build-sdk.inc')
| -rw-r--r-- | meta/packages/gcc/gcc4-build-sdk.inc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc4-build-sdk.inc b/meta/packages/gcc/gcc4-build-sdk.inc new file mode 100644 index 0000000000..86aa566e5c --- /dev/null +++ b/meta/packages/gcc/gcc4-build-sdk.inc | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' | ||
| 2 | |||
| 3 | STAGING_TARGET_INCDIR = "${STAGING_DIR}/${TARGET_SYS}/include" | ||
| 4 | STAGING_TARGET_LIBDIR = "${STAGING_DIR}/${TARGET_SYS}/lib" | ||
| 5 | |||
| 6 | do_configure () { | ||
| 7 | (cd ${S} && gnu-configize) || die "failure running gnu-configize" | ||
| 8 | (cd ${S}/libstdc++-v3 && autoreconf) | ||
| 9 | oe_runconf | ||
| 10 | mkdir -p gcc | ||
| 11 | ln -sf ${CROSS_DIR}/bin/${TARGET_PREFIX}as gcc/as | ||
| 12 | ln -sf ${CROSS_DIR}/bin/${TARGET_PREFIX}ld gcc/ld | ||
| 13 | ln -sf ${STAGING_TARGET_INCDIR}/* ${S}/include | ||
| 14 | ln -sf ${STAGING_TARGET_LIBDIR}/crt*.o gcc/ | ||
| 15 | } | ||
| 16 | |||
| 17 | do_compile () { | ||
| 18 | export CC="${BUILD_CC}" | ||
| 19 | export AR_FOR_TARGET="${TARGET_SYS}-ar" | ||
| 20 | export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib" | ||
| 21 | export LD_FOR_TARGET="${TARGET_SYS}-ld" | ||
| 22 | export NM_FOR_TARGET="${TARGET_SYS}-nm" | ||
| 23 | export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}" | ||
| 24 | oe_runmake CFLAGS_FOR_TARGET="-I${STAGING_TARGET_INCDIR}" | ||
| 25 | } | ||
