[OE-core] [PATCH 1/1] archive.bbclass: archive work directory

Phil Blundell philb at gnu.org
Fri Jan 6 17:39:57 UTC 2012


On Fri, 2012-01-06 at 16:20 +0800, wenzong.fan at windriver.com wrote:
> +    if [[ -d ${S} && ${S} != ${WORKDIR} ]]; then
> +        if [[ ${S} =~ "/work-shared/gcc" ]]; then
> +            # Create temporary sources directory for gcc
> +            mkdir -p ${PF}/temp
> +            cp -r ${S} ${PF}
> +            cp -r ${S}/../temp/* ${PF}/temp
> +            cp -r ${WORKDIR}/temp/* ${PF}/temp
> +            tarbase=`pwd`

Special-casing gcc like this seems a bit lame.  Is that check really
needed?

Also, will the above code work with all shells?  It looks a bit
bash-specific to me.

p.






More information about the Openembedded-core mailing list