summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_deb.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-08-01 12:11:22 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-02 14:32:11 +0100
commitf9da3c269fd7c8260e3457f7f77b22ef659d3752 (patch)
tree53288a5bbee92d57af64b000b4009d80f77840c0 /meta/classes/populate_sdk_deb.bbclass
parent0d5dfb29c359eb778182660e852a6aca273f8179 (diff)
downloadpoky-f9da3c269fd7c8260e3457f7f77b22ef659d3752.tar.gz
bitbake.conf: Add SDK_PACKAGE_ARCHS
Add SDK_PACKAGE_ARCHS to avoid the sed operations we were previously doing inside of the variouns populate_sdk functions and related items. Also add documentation to populate_sdk to explain when the various functions are expected to be doing. Finally fix a bug in populate_sdk_rpm where the wrong value was being set, noticed while working on this change. (From OE-Core rev: 587c1d5bac71fa6faa65ee3a271391cbf931e8f7) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_deb.bbclass')
-rw-r--r--meta/classes/populate_sdk_deb.bbclass13
1 files changed, 1 insertions, 12 deletions
diff --git a/meta/classes/populate_sdk_deb.bbclass b/meta/classes/populate_sdk_deb.bbclass
index a5b6384f7e..25d90c7eda 100644
--- a/meta/classes/populate_sdk_deb.bbclass
+++ b/meta/classes/populate_sdk_deb.bbclass
@@ -34,18 +34,7 @@ fakeroot populate_sdk_deb () {
34 export INSTALL_ROOTFS_DEB="${SDK_OUTPUT}" 34 export INSTALL_ROOTFS_DEB="${SDK_OUTPUT}"
35 export INSTALL_BASEARCH_DEB="${SDK_ARCH}" 35 export INSTALL_BASEARCH_DEB="${SDK_ARCH}"
36 export INSTALL_PACKAGES_NORMAL_DEB="${TOOLCHAIN_HOST_TASK}" 36 export INSTALL_PACKAGES_NORMAL_DEB="${TOOLCHAIN_HOST_TASK}"
37 INSTALL_ARCHS_DEB="" 37 export INSTALL_ARCHS_DEB="${SDK_PACKAGE_ARCHS}"
38 for arch in ${PACKAGE_ARCHS}; do
39 sdkarch=`echo $arch | sed -e 's/${HOST_ARCH}/${SDK_ARCH}/'`
40 extension="-nativesdk"
41 if [ "$sdkarch" = "all" -o "$sdkarch" = "any" -o "$sdkarch" = "noarch" ]; then
42 extension=""
43 fi
44 if [ -e ${DEPLOY_DIR_DEB}/$sdkarch$extension ]; then
45 INSTALL_ARCHS_DEB="$INSTALL_ARCHS_DEB $sdkarch$extension"
46 fi
47 done
48 export INSTALL_ARCHS_DEB
49 38
50 package_install_internal_deb 39 package_install_internal_deb
51 populate_sdk_post_deb ${SDK_OUTPUT}/${SDKPATHNATIVE} 40 populate_sdk_post_deb ${SDK_OUTPUT}/${SDKPATHNATIVE}