[oe] [RFC] bogofeed creation
Rod Whitby
rod at whitby.id.au
Fri Mar 9 10:54:58 UTC 2007
You all know what this is about, so I won't bother repeating the
arguments for or against.
Here is a proposed method of bogofeed creation.
> ============================================================
> --- packages/meta/package-index.bb 4f33564e2d11f46b7975676e5901b225190d4920
> +++ packages/meta/package-index.bb bd6e82e439382919a03c936ef326e8de3149c27d
> @@ -27,6 +27,28 @@ do_build() {
> do_build[dirs] = "${DEPLOY_DIR_IPK}"
> do_build() {
> set -ex
> +
> rootfs_ipk_do_indexes
> +
> + if [ "${DEPLOY_BUILD_BOGOFEED}" = "1" ]; then
> +
> + rm -rf ${DEPLOY_DIR_IPK}/bogofeed
> + mkdir ${DEPLOY_DIR_IPK}/bogofeed
> +
> + for d in ${PACKAGE_ARCHS} ; do
> + if [ -e ${DEPLOY_DIR_IPK}/$d ] ; then
> + rm -rf ${DEPLOY_DIR_IPK}/$d/morgue
> + find ${DEPLOY_DIR_IPK}/$d -type f -name '*.ipk' \
> + -exec cp '{}' ${DEPLOY_DIR_IPK}/bogofeed/ \;
> + fi
> + done
> +
> + touch ${DEPLOY_DIR_IPK}/bogofeed/Packages
> + ipkg-make-index -r ${DEPLOY_DIR_IPK}/bogofeed/Packages \
> + -p ${DEPLOY_DIR_IPK}/bogofeed/Packages \
> + -l ${DEPLOY_DIR_IPK}/bogofeed/Packages.filelist \
> + -m ${DEPLOY_DIR_IPK}/bogofeed
> + fi
> +
> set +ex
> }
Constructive comments welcome. Other remarks to /dev/null please.
-- Rod
More information about the Openembedded-devel
mailing list