aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-06-02 12:16:37 -0700
committerChris Larson <chris_larson@mentor.com>2011-06-02 12:17:26 -0700
commitd85c4522b3e5cda41aa7a762bae04bc6cb92b353 (patch)
treeabf416c7d3a97c3952578827d4a32a4f430745ad
parent964f73b2bac99adc2505462ac254e4a4b9a24865 (diff)
downloadopenembedded-d85c4522b3e5cda41aa7a762bae04bc6cb92b353.zip
openembedded-d85c4522b3e5cda41aa7a762bae04bc6cb92b353.tar.gz
openembedded-d85c4522b3e5cda41aa7a762bae04bc6cb92b353.tar.bz2
sourceipk: exclude temp dirs when S == WORKDIRtesting-next
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--classes/sourceipk.bbclass5
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" ]