[oe-commits] Chris Larson : sourceipk: exclude temp dirs when S == WORKDIR

git version control git at git.openembedded.org
Thu Jun 2 19:23:10 UTC 2011


Module: openembedded.git
Branch: master
Commit: d85c4522b3e5cda41aa7a762bae04bc6cb92b353
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=d85c4522b3e5cda41aa7a762bae04bc6cb92b353

Author: Chris Larson <chris_larson at mentor.com>
Date:   Thu Jun  2 12:16:37 2011 -0700

sourceipk: exclude temp dirs when S == WORKDIR

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 classes/sourceipk.bbclass |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass
index eb313a1..1b63996 100644
--- a/classes/sourceipk.bbclass
+++ b/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" ]





More information about the Openembedded-commits mailing list