From cb137719f254359fbd5a9f92a76c597e4e5216e7 Mon Sep 17 00:00:00 2001 From: Laurentiu Palcu Date: Wed, 22 Jan 2014 14:33:57 +0200 Subject: populate_sdk_(deb|ipk).bbclass: remove old shell code The old code no more needed since the job is done in python now. (From OE-Core rev: 58f06621aa1a5618dc969e8d1b537e32763a9461) Signed-off-by: Laurentiu Palcu Signed-off-by: Richard Purdie --- meta/classes/populate_sdk_deb.bbclass | 59 ----------------------------------- 1 file changed, 59 deletions(-) (limited to 'meta/classes/populate_sdk_deb.bbclass') diff --git a/meta/classes/populate_sdk_deb.bbclass b/meta/classes/populate_sdk_deb.bbclass index a63280d1ef..d03b0551e9 100644 --- a/meta/classes/populate_sdk_deb.bbclass +++ b/meta/classes/populate_sdk_deb.bbclass @@ -8,65 +8,6 @@ DEB_SDK_ARCH = "${@[d.getVar('SDK_ARCH', True), "i386"]\ do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" -populate_sdk_post_deb () { - - local target_rootfs=$1 - - mkdir -p ${target_rootfs}/etc - tar -cf - -C ${STAGING_ETCDIR_NATIVE} -p apt | tar -xf - -C ${target_rootfs}/etc -} - -populate_sdk_deb () { - - # update index - package_update_index_deb - - ## install target ## - # This needs to work in the same way as rootfs_deb.bbclass - echo "Installing TARGET packages" - - mkdir -p ${IMAGE_ROOTFS}/var/dpkg/alternatives - - export INSTALL_ROOTFS_DEB="${SDK_OUTPUT}/${SDKTARGETSYSROOT}" - export INSTALL_BASEARCH_DEB="${DPKG_ARCH}" - export INSTALL_ARCHS_DEB="${PACKAGE_ARCHS}" - export INSTALL_PACKAGES_NORMAL_DEB="${TOOLCHAIN_TARGET_TASK}" - export INSTALL_PACKAGES_ATTEMPTONLY_DEB="${TOOLCHAIN_TARGET_TASK_ATTEMPTONLY}" - export PACKAGES_LINGUAS_DEB="" - export INSTALL_TASK_DEB="populate_sdk-target" - export INTERCEPT_DIR=${WORKDIR}/intercept_scripts - export NATIVE_ROOT=${STAGING_DIR_NATIVE} - - package_install_internal_deb - - ${POPULATE_SDK_POST_TARGET_COMMAND} - - populate_sdk_post_deb ${INSTALL_ROOTFS_DEB} - - populate_sdk_log_check populate_sdk - - ## install nativesdk ## - echo "Installing NATIVESDK packages" - export INSTALL_ROOTFS_DEB="${SDK_OUTPUT}" - export INSTALL_BASEARCH_DEB="${DEB_SDK_ARCH}" - export INSTALL_ARCHS_DEB="${SDK_PACKAGE_ARCHS}" - export INSTALL_PACKAGES_NORMAL_DEB="${TOOLCHAIN_HOST_TASK}" - export INSTALL_PACKAGES_ATTEMPTONLY_DEB="${TOOLCHAIN_HOST_TASK_ATTEMPTONLY}" - export PACKAGES_LINGUAS_DEB="" - export INSTALL_TASK_DEB="populate_sdk-nativesdk" - - package_install_internal_deb - ${POPULATE_SDK_POST_HOST_COMMAND} - populate_sdk_post_deb ${SDK_OUTPUT}/${SDKPATHNATIVE} - - #move remainings - install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}/var/lib/dpkg - mv ${SDK_OUTPUT}/var/lib/dpkg/* ${SDK_OUTPUT}/${SDKPATHNATIVE}/var/lib/dpkg - rm -rf ${SDK_OUTPUT}/var - - populate_sdk_log_check populate_sdk -} - # This will of course only work after rootfs_deb_do_rootfs or populate_sdk_deb has been called DPKG_QUERY_COMMAND = "${STAGING_BINDIR_NATIVE}/dpkg-query --admindir=$INSTALL_ROOTFS_DEB/var/lib/dpkg" -- cgit v1.2.3-54-g00ecf