diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-17 00:47:50 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-17 22:25:23 +0100 |
commit | c906f2bce424ecf201f16a486959dab600a847b0 (patch) | |
tree | ddf72ee5854156dfa63289c752580f1b18b8d00d | |
parent | eb1e80fae46d07fcc9e758d924aed25e70927ea1 (diff) | |
download | openembedded-core-c906f2bce424ecf201f16a486959dab600a847b0.tar.gz openembedded-core-c906f2bce424ecf201f16a486959dab600a847b0.tar.bz2 openembedded-core-c906f2bce424ecf201f16a486959dab600a847b0.zip |
crosssdk: Add crosssdk class with gcc and binutils recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | meta/classes/crosssdk.bbclass | 15 | ||||
-rw-r--r-- | meta/packages/binutils/binutils-crosssdk_2.19.bb | 12 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-crosssdk-initial_4.3.3.bb | 8 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-crosssdk-intermediate_4.3.3.bb | 11 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-crosssdk_4.3.3.bb | 10 |
5 files changed, 56 insertions, 0 deletions
diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass new file mode 100644 index 0000000000..66be3ee216 --- /dev/null +++ b/meta/classes/crosssdk.bbclass @@ -0,0 +1,15 @@ +inherit cross + +PACKAGES = "" + +BASE_PACKAGE_ARCH = "${SDK_ARCH}" +PACKAGE_ARCH = "${BASE_PACKAGE_ARCH}" +STAGING_DIR_TARGET = "${STAGING_DIR}/${SDK_ARCH}-${TARGET_ARCH}-nativesdk${TARGET_VENDOR}-${TARGET_OS}" + +TARGET_ARCH = "${SDK_ARCH}" +TARGET_VENDOR = "${SDK_VENDOR}" +TARGET_OS = "${SDK_OS}" +TARGET_PREFIX = "${SDK_PREFIX}" +TARGET_CC_ARCH = "${SDK_CC_ARCH}" + + diff --git a/meta/packages/binutils/binutils-crosssdk_2.19.bb b/meta/packages/binutils/binutils-crosssdk_2.19.bb new file mode 100644 index 0000000000..8a9275003f --- /dev/null +++ b/meta/packages/binutils/binutils-crosssdk_2.19.bb @@ -0,0 +1,12 @@ +require binutils-cross_${PV}.bb + +inherit crosssdk + +PROVIDES = "virtual/${TARGET_PREFIX}binutils-crosssdk" + +PR = "r1" + +do_configure_prepend () { + sed -i 's#/usr/local/lib /lib /usr/lib#${SDKPATH}/lib /usr/local/lib /lib /usr/lib#' ${S}/ld/configure.tgt +} + diff --git a/meta/packages/gcc/gcc-crosssdk-initial_4.3.3.bb b/meta/packages/gcc/gcc-crosssdk-initial_4.3.3.bb new file mode 100644 index 0000000000..fdfaa2e254 --- /dev/null +++ b/meta/packages/gcc/gcc-crosssdk-initial_4.3.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.3.3.bb b/meta/packages/gcc/gcc-crosssdk-intermediate_4.3.3.bb new file mode 100644 index 0000000000..339ee63416 --- /dev/null +++ b/meta/packages/gcc/gcc-crosssdk-intermediate_4.3.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.3.3.bb b/meta/packages/gcc/gcc-crosssdk_4.3.3.bb new file mode 100644 index 0000000000..f5967ba682 --- /dev/null +++ b/meta/packages/gcc/gcc-crosssdk_4.3.3.bb @@ -0,0 +1,10 @@ +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" |