On Mon, 2016-05-02 at 15:22 +0300, Ed Bartosh wrote: > Generated standalone bmaptool script that is more convenient > to use than native script. It can be run straight from > its location ./tmp/deploy/tools/bmaptool. The script doesn't > depend on anything except Python. > > Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> > --- > meta/recipes-support/bmap-tools/bmap-tools_3.2.bb | 20 > +++++++++++++++++++- > 1 file changed, 19 insertions(+), 1 deletion(-) > > diff --git a/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb > b/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb > index e10f5fd..0f95788 100644 > --- a/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb > +++ b/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb > @@ -15,10 +15,28 @@ SRC_URI[sha256sum] = > "cc6c7f7dc0a37e2a32deb127308e24e6c4b80bfb54f3803c308efab02b > > RDEPENDS_${PN} = "python-core python-compression" > > -inherit setuptools > +inherit setuptools deploy > > BBCLASSEXTEND = "native" > > do_install_append_class-native() { > sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env > nativepython|' ${D}${bindir}/bmaptool > } > + > +do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}" > +do_deploy[stamp-extra-info] = "" > +do_deploy_class-native() { > + cp bmaptool __main__.py > + python -m zipfile -c bmaptool.zip bmaptools __main__.py > + echo '#!/usr/bin/env python' | cat - bmaptool.zip > bmaptool > -standalone > + install -d ${DEPLOYDIR} > + install -m 0755 bmaptool-standalone ${DEPLOYDIR}/bmaptool-${PV} > + rm -f ${DEPLOYDIR}/bmaptool > + ln -sf ./bmaptool-${PV} ${DEPLOYDIR}/bmaptool > +} > + > +do_deploy() { > + : > +} > + > +addtask deploy before do_package after do_install
I'm not sure if we want to do this in the first place. Regardless, the addtask here is incorrect too. Cheers, Richard -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core