diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-06-02 12:16:37 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-06-02 12:17:26 -0700 |
commit | d85c4522b3e5cda41aa7a762bae04bc6cb92b353 (patch) | |
tree | abf416c7d3a97c3952578827d4a32a4f430745ad | |
parent | 964f73b2bac99adc2505462ac254e4a4b9a24865 (diff) | |
download | openembedded-testing-next.tar.gz |
sourceipk: exclude temp dirs when S == WORKDIRtesting-next
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r-- | classes/sourceipk.bbclass | 5 |
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" ] |