From 3d3053e6cca7a066a3841a6b0d7222b276895ccf Mon Sep 17 00:00:00 2001 From: Esben Haabendal Date: Thu, 19 Nov 2009 14:15:19 +0100 Subject: Add crosssdk and cross-canadian gcc 4.2.3 recipes --- meta/packages/gcc/gcc-cross-canadian_4.2.3.bb | 23 ++++++++++++++++++++++ meta/packages/gcc/gcc-crosssdk-initial_4.2.3.bb | 8 ++++++++ .../gcc/gcc-crosssdk-intermediate_4.2.3.bb | 11 +++++++++++ meta/packages/gcc/gcc-crosssdk_4.2.3.bb | 16 +++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 meta/packages/gcc/gcc-cross-canadian_4.2.3.bb create mode 100644 meta/packages/gcc/gcc-crosssdk-initial_4.2.3.bb create mode 100644 meta/packages/gcc/gcc-crosssdk-intermediate_4.2.3.bb create mode 100644 meta/packages/gcc/gcc-crosssdk_4.2.3.bb (limited to 'meta') diff --git a/meta/packages/gcc/gcc-cross-canadian_4.2.3.bb b/meta/packages/gcc/gcc-cross-canadian_4.2.3.bb new file mode 100644 index 0000000000..f6e60ebf2d --- /dev/null +++ b/meta/packages/gcc/gcc-cross-canadian_4.2.3.bb @@ -0,0 +1,23 @@ +inherit cross-canadian + +require gcc-${PV}.inc +require gcc-cross-canadian.inc +require gcc-configure-sdk.inc +require gcc-package-sdk.inc + +PR = "r7" + +DEPENDS += "gmp-nativesdk mpfr-nativesdk" +RDEPENDS_${PN} += "mpfr-nativesdk" + +SYSTEMHEADERS = "/usr/include" +SYSTEMLIBS1 = "/usr/lib/" + +EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \ + --disable-libgomp --disable-libmudflap \ + --with-mpfr=${STAGING_DIR_HOST}${layout_exec_prefix}" + +# to find libmpfr +# export LD_LIBRARY_PATH = "{STAGING_DIR_HOST}${layout_exec_prefix}" + +PARALLEL_MAKE = "" diff --git a/meta/packages/gcc/gcc-crosssdk-initial_4.2.3.bb b/meta/packages/gcc/gcc-crosssdk-initial_4.2.3.bb new file mode 100644 index 0000000000..fdfaa2e254 --- /dev/null +++ b/meta/packages/gcc/gcc-crosssdk-initial_4.2.3.bb @@ -0,0 +1,8 @@ +require gcc-cross-initial_${PV}.bb +inherit crosssdk + +SYSTEMHEADERS = "${SDKPATH}/include" +SYSTEMLIBS1 = "${SDKPATH}/lib/" + +DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk" +PROVIDES = "virtual/${TARGET_PREFIX}gcc-initial-crosssdk" diff --git a/meta/packages/gcc/gcc-crosssdk-intermediate_4.2.3.bb b/meta/packages/gcc/gcc-crosssdk-intermediate_4.2.3.bb new file mode 100644 index 0000000000..339ee63416 --- /dev/null +++ b/meta/packages/gcc/gcc-crosssdk-intermediate_4.2.3.bb @@ -0,0 +1,11 @@ +require gcc-cross-intermediate_${PV}.bb +inherit crosssdk + +SYSTEMHEADERS = "${SDKPATH}/include" +SYSTEMLIBS1 = "${SDKPATH}/lib/" + +PR = "r1" + +DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk" +DEPENDS += "virtual/${TARGET_PREFIX}libc-initial-nativesdk" +PROVIDES = "virtual/${TARGET_PREFIX}gcc-intermediate-crosssdk" diff --git a/meta/packages/gcc/gcc-crosssdk_4.2.3.bb b/meta/packages/gcc/gcc-crosssdk_4.2.3.bb new file mode 100644 index 0000000000..3a3d443413 --- /dev/null +++ b/meta/packages/gcc/gcc-crosssdk_4.2.3.bb @@ -0,0 +1,16 @@ +require gcc-cross_${PV}.bb +inherit crosssdk + +SYSTEMHEADERS = "${SDKPATH}/include" +SYSTEMLIBS1 = "${SDKPATH}/lib/" + +GCCMULTILIB = "--disable-multilib" + +DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk virtual/${TARGET_PREFIX}libc-for-gcc-nativesdk" +PROVIDES = "virtual/${TARGET_PREFIX}gcc-crosssdk virtual/${TARGET_PREFIX}g++-crosssdk" + +do_configure_prepend () { + # Change the default dynamic linker path to the one in the SDK + sed -i ${S}/gcc/config/*/linux*.h -e 's#\(GLIBC_DYNAMIC_LINKER.*\)/lib/#\1${SYSTEMLIBS1}#' + sed -i ${S}/gcc/config/*/linux*.h -e 's#\(GLIBC_DYNAMIC_LINKER.*\)/lib64/#\1${SYSTEMLIBS1}#' +} -- cgit v1.2.3