diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-17 00:49:03 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-17 22:25:23 +0100 |
commit | afa02c54709474cee4bb91368a823a8678f57998 (patch) | |
tree | f56e06bb995aeeffe9ff4a39e6db16944519f5a1 /meta/packages | |
parent | c906f2bce424ecf201f16a486959dab600a847b0 (diff) | |
download | openembedded-core-afa02c54709474cee4bb91368a823a8678f57998.tar.gz openembedded-core-afa02c54709474cee4bb91368a823a8678f57998.tar.bz2 openembedded-core-afa02c54709474cee4bb91368a823a8678f57998.zip |
cross-canadian: Add cross-canadian class with gcc and binutils recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/binutils/binutils-cross-canadian.inc | 24 | ||||
-rw-r--r-- | meta/packages/binutils/binutils-cross-canadian_2.18.bb | 3 | ||||
-rw-r--r-- | meta/packages/binutils/binutils-cross-canadian_2.19.bb | 3 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-cross-canadian.inc | 4 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-cross-canadian_4.3.3.bb | 23 |
5 files changed, 57 insertions, 0 deletions
diff --git a/meta/packages/binutils/binutils-cross-canadian.inc b/meta/packages/binutils/binutils-cross-canadian.inc new file mode 100644 index 0000000000..8d21db70ee --- /dev/null +++ b/meta/packages/binutils/binutils-cross-canadian.inc @@ -0,0 +1,24 @@ +inherit cross-canadian +DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/libc-nativesdk zlib-nativesdk" +EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \ + --program-prefix=${TARGET_PREFIX}" + +do_stage() { + : +} + +do_install () { + autotools_do_install + + # Fix the ${prefix}/${TARGET_SYS}/bin/* files to be symlinks + rm ${D}${prefix}/${TARGET_SYS}/bin/.debug -Rf + rm ${D}${prefix}/${TARGET_SYS}/bin/* + for l in ${D}${bindir}/*; do + ln -sf "${bindir}/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`" + done + + # Install the libiberty header + install -d ${D}${includedir} + install -m 644 ${S}/include/ansidecl.h ${D}${includedir} + install -m 644 ${S}/include/libiberty.h ${D}${includedir} +} diff --git a/meta/packages/binutils/binutils-cross-canadian_2.18.bb b/meta/packages/binutils/binutils-cross-canadian_2.18.bb new file mode 100644 index 0000000000..13fc22aa64 --- /dev/null +++ b/meta/packages/binutils/binutils-cross-canadian_2.18.bb @@ -0,0 +1,3 @@ +require binutils_${PV}.bb +require binutils-cross-canadian.inc +PR = "r3" diff --git a/meta/packages/binutils/binutils-cross-canadian_2.19.bb b/meta/packages/binutils/binutils-cross-canadian_2.19.bb new file mode 100644 index 0000000000..7dad2a620b --- /dev/null +++ b/meta/packages/binutils/binutils-cross-canadian_2.19.bb @@ -0,0 +1,3 @@ +require binutils_${PV}.bb +require binutils-cross-canadian.inc +PR = "r0" diff --git a/meta/packages/gcc/gcc-cross-canadian.inc b/meta/packages/gcc/gcc-cross-canadian.inc new file mode 100644 index 0000000000..1f2b5e833a --- /dev/null +++ b/meta/packages/gcc/gcc-cross-canadian.inc @@ -0,0 +1,4 @@ +inherit cross-canadian + +DEPENDS = "virtual/${HOST_PREFIX}binutils-crosssdk virtual/${TARGET_PREFIX}libc-for-gcc" + diff --git a/meta/packages/gcc/gcc-cross-canadian_4.3.3.bb b/meta/packages/gcc/gcc-cross-canadian_4.3.3.bb new file mode 100644 index 0000000000..f6e60ebf2d --- /dev/null +++ b/meta/packages/gcc/gcc-cross-canadian_4.3.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 = "" |