aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-06-02 12:16:37 -0700
committerKoen Kooi <koen@dominion.thruhere.net>2011-06-04 10:06:44 +0200
commit5a52724b754691322f9f89bbb4d22e721fff1deb (patch)
tree18afd9065eba7e069108faad7eeeec127e235f8c /classes
parent5361b96ef188358ce270d55a45bbabf23fb6d6de (diff)
downloadopenembedded-5a52724b754691322f9f89bbb4d22e721fff1deb.tar.gz
sourceipk: exclude temp dirs when S == WORKDIR
Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'classes')
-rw-r--r--classes/sourceipk.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass
index eb313a1f3f..1b63996997 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" ]