Permalink
Browse files

sourceipk: exclude temp dirs when S == WORKDIR

Signed-off-by: Chris Larson <chris_larson@mentor.com>
  • Loading branch information...
1 parent 964f73b commit d85c4522b3e5cda41aa7a762bae04bc6cb92b353 @kergoth kergoth committed Jun 2, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 classes/sourceipk.bbclass
@@ -109,7 +109,10 @@ sourceipk_do_create_srcipk() {
# Copy sources for packaging
mkdir -p $tmp_dir/${SRCIPK_INSTALL_DIR}
if [ -e ${S} ]; then
- tar -C ${S} -cO . | tar -C $tmp_dir/${SRCIPK_INSTALL_DIR} -xpf -
+ if [ "${S}" = "${WORKDIR}" ]; then
+ excludes='--exclude ./temp/\* --exclude ./sourceipk-tmp/\* --exclude ./sourceipk-data/\*'
+ fi
+ tar -C ${S} -cO $excludes . | tar -C $tmp_dir/${SRCIPK_INSTALL_DIR} -xpf -
fi
if [ ${SRCIPK_INCLUDE_EXTRAFILES} != "0" ]

0 comments on commit d85c452

Please sign in to comment.