diff options
author | Richard Purdie <richard@openedhand.com> | 2008-01-24 21:33:10 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-01-24 21:33:10 +0000 |
commit | 6181925b31bba790fb639d8c6a39027f94e639e5 (patch) | |
tree | b363d1b9de844c158cdcf47b4b6f1534670e4eb8 /meta | |
parent | c673a12162ed112edea7c97141946d2b88152c3a (diff) | |
download | poky-6181925b31bba790fb639d8c6a39027f94e639e5.tar.gz |
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
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/gcc/gcc-cross-initial_4.1.2.bb | 5 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-cross-sdk_3.4.4.bb | 16 | ||||
-rw-r--r-- | meta/packages/gcc/gcc3-build-sdk.inc | 27 |
3 files changed, 48 insertions, 0 deletions
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 @@ | |||
1 | require gcc-cross_${PV}.bb | ||
2 | require gcc-cross-initial.inc | ||
3 | |||
4 | EXTRA_OECONF += "--disable-libmudflap \ | ||
5 | --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 @@ | |||
1 | DESCRIPTION = "The GNU cc and gcc C compilers." | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gcc/" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "GPL" | ||
5 | require gcc_${PV}.bb | ||
6 | PR = "r2" | ||
7 | |||
8 | inherit sdk | ||
9 | |||
10 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}" | ||
11 | |||
12 | DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc" | ||
13 | PACKAGES = "${PN}" | ||
14 | |||
15 | require gcc3-build-sdk.inc | ||
16 | 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 @@ | |||
1 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' | ||
2 | |||
3 | SRC_URI += 'file://sdk-libstdc++-includes.patch;patch=1' | ||
4 | |||
5 | STAGING_TARGET_INCDIR = "${STAGING_DIR}/${TARGET_SYS}/include" | ||
6 | STAGING_TARGET_LIBDIR = "${STAGING_DIR}/${TARGET_SYS}/lib" | ||
7 | |||
8 | do_configure () { | ||
9 | (cd ${S} && gnu-configize) || die "failure running gnu-configize" | ||
10 | (cd ${S}/libstdc++-v3 && autoreconf) | ||
11 | oe_runconf | ||
12 | mkdir -p gcc | ||
13 | ln -sf ${CROSS_DIR}/bin/${TARGET_PREFIX}as gcc/as | ||
14 | ln -sf ${CROSS_DIR}/bin/${TARGET_PREFIX}ld gcc/ld | ||
15 | ln -sf ${STAGING_TARGET_INCDIR}/* ${S}/include | ||
16 | ln -sf ${STAGING_TARGET_LIBDIR}/crt*.o gcc/ | ||
17 | } | ||
18 | |||
19 | do_compile () { | ||
20 | export CC="${BUILD_CC}" | ||
21 | export AR_FOR_TARGET="${TARGET_SYS}-ar" | ||
22 | export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib" | ||
23 | export LD_FOR_TARGET="${TARGET_SYS}-ld" | ||
24 | export NM_FOR_TARGET="${TARGET_SYS}-nm" | ||
25 | export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}" | ||
26 | oe_runmake CFLAGS_FOR_TARGET="-I${STAGING_TARGET_INCDIR}" | ||
27 | } | ||