summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2007-07-04 12:01:08 +0000
committerFlorian Boor <florian.boor@kernelconcepts.de>2007-07-04 12:01:08 +0000
commit58849960f0c6a71880a57d0ff7d624fc10ed1bbb (patch)
tree21f18b1d67c7871407d106792b688715af169678 /classes
parentc135979b41af99c0ab5c76e26a9652d5e8ed6858 (diff)
parent5e742cbea0a8ce2c71773fc6fbb7eac0beb996ff (diff)
merge of '0e150443d291bc62c30745eee41a34a08f3eb3db'
and '1b058511a74a92f00fa349a145e6d36bc37c7e21'
Diffstat (limited to 'classes')
-rw-r--r--classes/sdk.bbclass20
1 files changed, 20 insertions, 0 deletions
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
+}