aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-06-02 12:16:21 -0700
committerChris Larson <chris_larson@mentor.com>2011-06-02 12:17:13 -0700
commitaca8df4471a62568c3d896e45c797fd509c8ddbe (patch)
treee5e9b4e2d434faf3f26f0e1880fe3e1c5b659d9a
parent17fd4202c0f0997bbc8fb893f48c1f6900cd363a (diff)
downloadopenembedded-aca8df4471a62568c3d896e45c797fd509c8ddbe.zip
openembedded-aca8df4471a62568c3d896e45c797fd509c8ddbe.tar.gz
openembedded-aca8df4471a62568c3d896e45c797fd509c8ddbe.tar.bz2
sourceipk: use tar to get the files copied, rather than cp
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--classes/sourceipk.bbclass14
1 files changed, 3 insertions, 11 deletions
diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass
index a92e462..8214f78 100644
--- a/classes/sourceipk.bbclass
+++ b/classes/sourceipk.bbclass
@@ -108,17 +108,9 @@ sourceipk_do_create_srcipk() {
# Copy sources for packaging
mkdir -p $tmp_dir/${SRCIPK_INSTALL_DIR}
- cp -RLf ${S}/* $tmp_dir/${SRCIPK_INSTALL_DIR}/
- # Copy any hidden files in the source directory such as
- # eclipse project files. Use a regex to avoid trying to
- # copy the . and .. directories. This is only required for
- # the top-level directory as the hidden files will be copied
- # for subdiretories.
- hidden_files=`find ${S} -maxdepth 1 -name ".*"`
- for f in $hidden_files
- do
- cp -rf $f $tmp_dir/${SRCIPK_INSTALL_DIR}/
- done
+ if [ -e ${S} ]; then
+ tar -C ${S} -cO . | tar -C $tmp_dir/${SRCIPK_INSTALL_DIR} -xpf -
+ fi
if [ ${SRCIPK_INCLUDE_EXTRAFILES} != "0" ]
then