summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/packages/gcc/gcc-cross-canadian_4.2.3.bb23
-rw-r--r--meta/packages/gcc/gcc-crosssdk-initial_4.2.3.bb8
-rw-r--r--meta/packages/gcc/gcc-crosssdk-intermediate_4.2.3.bb11
-rw-r--r--meta/packages/gcc/gcc-crosssdk_4.2.3.bb16
4 files changed, 58 insertions, 0 deletions
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 000000000..f6e60ebf2
--- /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 000000000..fdfaa2e25
--- /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 000000000..339ee6341
--- /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 000000000..3a3d44341
--- /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}#'
+}