diff options
author | Richard Purdie <richard@openedhand.com> | 2007-09-01 22:49:32 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-09-01 22:49:32 +0000 |
commit | f19cf866982d04bbde0a007fca07ed5db66e3898 (patch) | |
tree | 6eaf0af43b7b232583c965eda7672ff64f451a25 | |
parent | c6938aad87ce4b9ce25ecd020ecddfe62b319bcf (diff) | |
download | openembedded-core-f19cf866982d04bbde0a007fca07ed5db66e3898.tar.gz openembedded-core-f19cf866982d04bbde0a007fca07ed5db66e3898.tar.bz2 openembedded-core-f19cf866982d04bbde0a007fca07ed5db66e3898.zip |
meta-toolchain: Change to be more generic and use package_ipk conf generation functions. Also rename task-poky-standalone-sdk-host to task-sdk-host and add copyright.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2638 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/packages/meta/meta-toolchain.bb | 18 | ||||
-rw-r--r-- | meta/packages/tasks/task-sdk-host.bb (renamed from meta/packages/tasks/task-poky-standalone-sdk-host.bb) | 6 |
2 files changed, 11 insertions, 13 deletions
diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index a0f38404b0..36c1479b68 100644 --- a/meta/packages/meta/meta-toolchain.bb +++ b/meta/packages/meta/meta-toolchain.bb @@ -11,33 +11,27 @@ SDK_DEPLOY = "${TMPDIR}/deploy/sdk" IPKG_HOST = "ipkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}" IPKG_TARGET = "ipkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${prefix}" -HOST_INSTALL = "task-poky-standalone-sdk-host" +TOOLCHAIN_HOST_TASK ?= "task-sdk-host" +TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target" -TARGET_INSTALL = "task-poky-standalone-sdk-target" - -RDEPENDS = "${TARGET_INSTALL} ${HOST_INSTALL}" +RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" do_populate_sdk() { - touch ${DEPLOY_DIR_IPK}/Packages - ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK} - rm -rf ${SDK_OUTPUT} mkdir -p ${SDK_OUTPUT} + package_update_index_ipk package_generate_ipkg_conf for arch in ${PACKAGE_ARCHS}; do revipkgarchs="$arch $revipkgarchs" done - rm -r ${SDK_OUTPUT} - mkdir -p ${SDK_OUTPUT} - ${IPKG_HOST} update - ${IPKG_HOST} -force-depends install ${HOST_INSTALL} + ${IPKG_HOST} -force-depends install ${TOOLCHAIN_HOST_TASK} ${IPKG_TARGET} update - ${IPKG_TARGET} install ${TARGET_INSTALL} + ${IPKG_TARGET} install ${TOOLCHAIN_TARGET_TASK} mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS} cp -pPR ${SDK_OUTPUT}/${prefix}/usr/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS} diff --git a/meta/packages/tasks/task-poky-standalone-sdk-host.bb b/meta/packages/tasks/task-sdk-host.bb index a8beb054ad..d238b46144 100644 --- a/meta/packages/tasks/task-poky-standalone-sdk-host.bb +++ b/meta/packages/tasks/task-sdk-host.bb @@ -1,4 +1,8 @@ -DESCRIPTION = "Host packages for the standalone SDK (external toolchain)" +# +# Copyright (C) 2007 OpenedHand Ltd +# + +DESCRIPTION = "Host packages for the standalone SDK or external toolchain" PR = "r1" LICENSE = "MIT" ALLOW_EMPTY = "1" |