[OE-core] [PATCH v2] sstate.bbclass: add option to use alternate compression in lieu of gzip
McClintock Matthew-B29882
B29882 at freescale.com
Tue Dec 6 15:55:11 UTC 2011
On Fri, Dec 2, 2011 at 11:24 AM, Matthew McClintock <msm at freescale.com> wrote:
> - tar -czf ${SSTATE_PKG} *
> + tar -${SSTATE_PKG_TAROPT}cf ${SSTATE_PKG} *
> else
> - tar -cz --file=${SSTATE_PKG} --files-from=/dev/null
> + tar -${SSTATE_PKG_TAROPT}c --file=${SSTATE_PKG} --files-from=/dev/null
> fi
>
> cd ${WORKDIR}
> @@ -463,7 +466,7 @@ sstate_create_package () {
> sstate_unpack_package () {
> mkdir -p ${SSTATE_INSTDIR}
> cd ${SSTATE_INSTDIR}
> - tar -xvzf ${SSTATE_PKG}
> + tar -${SSTATE_PKG_TAROPT}xvf ${SSTATE_PKG}
I'm going to respin this to look more like:
tar -cvf - | "$SSTATE_PKG_TARCOMPRESSION"
such that we don't depend on newer versions of tar for specific types
of compression.
-M
More information about the Openembedded-core
mailing list