From 6181925b31bba790fb639d8c6a39027f94e639e5 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 24 Jan 2008 21:33:10 +0000 Subject: gcc: Add missing sdk 3.4.4 and initial 4.1.2 git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3592 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/packages/gcc/gcc-cross-initial_4.1.2.bb | 5 +++++ meta/packages/gcc/gcc-cross-sdk_3.4.4.bb | 16 ++++++++++++++++ meta/packages/gcc/gcc3-build-sdk.inc | 27 +++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 meta/packages/gcc/gcc-cross-initial_4.1.2.bb create mode 100644 meta/packages/gcc/gcc-cross-sdk_3.4.4.bb create mode 100644 meta/packages/gcc/gcc3-build-sdk.inc (limited to 'meta') diff --git a/meta/packages/gcc/gcc-cross-initial_4.1.2.bb b/meta/packages/gcc/gcc-cross-initial_4.1.2.bb new file mode 100644 index 0000000000..1c1d094382 --- /dev/null +++ b/meta/packages/gcc/gcc-cross-initial_4.1.2.bb @@ -0,0 +1,5 @@ +require gcc-cross_${PV}.bb +require gcc-cross-initial.inc + +EXTRA_OECONF += "--disable-libmudflap \ + --disable-libssp" diff --git a/meta/packages/gcc/gcc-cross-sdk_3.4.4.bb b/meta/packages/gcc/gcc-cross-sdk_3.4.4.bb new file mode 100644 index 0000000000..038d39040b --- /dev/null +++ b/meta/packages/gcc/gcc-cross-sdk_3.4.4.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "The GNU cc and gcc C compilers." +HOMEPAGE = "http://www.gnu.org/software/gcc/" +SECTION = "devel" +LICENSE = "GPL" +require gcc_${PV}.bb +PR = "r2" + +inherit sdk + +FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}" + +DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc" +PACKAGES = "${PN}" + +require gcc3-build-sdk.inc +require gcc-package-sdk.inc diff --git a/meta/packages/gcc/gcc3-build-sdk.inc b/meta/packages/gcc/gcc3-build-sdk.inc new file mode 100644 index 0000000000..e2ec9565a7 --- /dev/null +++ b/meta/packages/gcc/gcc3-build-sdk.inc @@ -0,0 +1,27 @@ +USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' + +SRC_URI += 'file://sdk-libstdc++-includes.patch;patch=1' + +STAGING_TARGET_INCDIR = "${STAGING_DIR}/${TARGET_SYS}/include" +STAGING_TARGET_LIBDIR = "${STAGING_DIR}/${TARGET_SYS}/lib" + +do_configure () { + (cd ${S} && gnu-configize) || die "failure running gnu-configize" + (cd ${S}/libstdc++-v3 && autoreconf) + oe_runconf + mkdir -p gcc + ln -sf ${CROSS_DIR}/bin/${TARGET_PREFIX}as gcc/as + ln -sf ${CROSS_DIR}/bin/${TARGET_PREFIX}ld gcc/ld + ln -sf ${STAGING_TARGET_INCDIR}/* ${S}/include + ln -sf ${STAGING_TARGET_LIBDIR}/crt*.o gcc/ +} + +do_compile () { + export CC="${BUILD_CC}" + export AR_FOR_TARGET="${TARGET_SYS}-ar" + export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib" + export LD_FOR_TARGET="${TARGET_SYS}-ld" + export NM_FOR_TARGET="${TARGET_SYS}-nm" + export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}" + oe_runmake CFLAGS_FOR_TARGET="-I${STAGING_TARGET_INCDIR}" +} -- cgit v1.2.3-54-g00ecf