sdk.bbclass: Set PACKAGE_ARCH to something suitable (update task-sdk, meta-toolchain)

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1956 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2007-06-16 11:25:53 +00:00
parent c866903e84
commit ac63e5a341
3 changed files with 15 additions and 6 deletions

View File

@@ -2,8 +2,10 @@
# or indirectly via dependency. No need to be in 'world'.
EXCLUDE_FROM_WORLD = "1"
SDK_NAME = "poky/${TARGET_ARCH}"
PACKAGE_ARCH = "${BUILD_ARCH}"
SDK_NAME = "${DISTRO}/${TARGET_ARCH}"
OLD_PACKAGE_ARCH := ${PACKAGE_ARCH}
PACKAGE_ARCH = "${BUILD_ARCH}-${OLD_PACKAGE_ARCH}-sdk"
HOST_ARCH = "${BUILD_ARCH}"
HOST_VENDOR = "${BUILD_VENDOR}"

View File

@@ -1,7 +1,7 @@
DESCRIPTION = "Meta package for building a installable toolchain"
LICENSE = "MIT"
DEPENDS = "ipkg-native ipkg-utils-native fakeroot-native sed-native"
PR = "r1"
PR = "r2"
inherit sdk
@@ -20,7 +20,14 @@ IPKG_TARGET = "ipkg-cl -f ${SDK_DIR}/ipkg-target.conf -o ${SDK_OUTPUT}/${prefix}
HOST_INSTALL = "\
binutils-cross-sdk \
gcc-cross-sdk \
gdb-cross"
g++ \
cpp \
libgcc \
libstdc++ \
libstdc++-dev \
gdb-cross \
"
TARGET_INSTALL = "\
task-sdk-bare \
"
@@ -36,7 +43,6 @@ do_populate_sdk() {
cat <<EOF >${SDK_DIR}/ipkg-host.conf
src oe file:${DEPLOY_DIR_IPK}
arch ${BUILD_ARCH} 1
EOF
cat <<EOF >${SDK_DIR}/ipkg-target.conf
src oe file:${DEPLOY_DIR_IPK}
@@ -45,6 +51,7 @@ EOF
priority=1
for arch in $ipkgarchs; do
echo "arch $arch $priority" >> ${SDK_DIR}/ipkg-target.conf
echo "arch ${BUILD_ARCH}-$arch-sdk $priority" >> ${SDK_DIR}/ipkg-host.conf
priority=$(expr $priority + 5)
done

View File

@@ -1,5 +1,5 @@
DESCRIPTION = "SDK packages"
PR = "r9"
PR = "r12"
LICENSE = "MIT"
ALLOW_EMPTY = "1"