diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2007-07-04 17:58:00 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-07-04 17:58:00 +0000 |
commit | 529c3cb8561d06ade5b58a9b439f7c88781b009f (patch) | |
tree | b8d745a204fce126c2b7c4f093a215b6d1082be1 /classes | |
parent | d8f8c8ae824998c9e7b886f0a6c3e0488e998cde (diff) | |
parent | 84d9f6f516ca1c5a001c959b7565fbb63c041c33 (diff) |
merge of '8ccf578d98540e0fe880015d1158e3f2e2d5fada'
and 'ffc6a1cb8a5c35ab9fdca8add26efc64679665b5'
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sanity.bbclass | 3 | ||||
-rw-r--r-- | classes/sdk.bbclass | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index b84efb0848..d2fd4b0b04 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -49,6 +49,9 @@ def check_sanity(e): print "Foo %s" % minversion return + if 0 == os.getuid(): + raise_sanity_error("Do not use Bitbake as root.") + messages = "" if (LooseVersion(__version__) < LooseVersion(minversion)): diff --git a/classes/sdk.bbclass b/classes/sdk.bbclass index 38df66eb4d..0050b2e48e 100644 --- a/classes/sdk.bbclass +++ b/classes/sdk.bbclass @@ -26,3 +26,23 @@ FILES_${PN} = "${prefix}" FILES_${PN}-dbg += "${prefix}/bin/.debug \ ${prefix}/sbin/.debug \ " + +sdk_ipk_do_indexes () { + set -x + + ipkgarchs="${PACKAGE_ARCHS}" + + if [ -z "${DEPLOY_KEEP_PACKAGES}" ]; then + 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} + fi + + for arch in $ipkgarchs; do + if [ -z "${DEPLOY_KEEP_PACKAGES}" ]; then + if [ -e ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/ ] ; then + touch ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages + ipkg-make-index -r ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages -p ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages -l ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages.filelist -m ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/ + fi + fi + done +} |