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

git version control git at git.openembedded.org
Thu Jun 2 19:15:29 UTC 2011


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

Author: clarson <clarson at 6a149ff2-cb3c-0410-b4c8-c88968701766>
Date:   Thu May 19 23:50:11 2011 +0000

sourceipk: exclude temp dirs when S == WORKDIR

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

git-svn-id: http://svr-alm-svn-01.alm.mentorg.com:8080/svn/ea/easi_oe/system-builder/release-2011.1/sb-core@4922 6a149ff2-cb3c-0410-b4c8-c88968701766

---

 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