diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-06-02 12:16:21 -0700 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-06-04 10:06:44 +0200 |
commit | 3d15e897768f88b94ff9de263087934a41a6a19e (patch) | |
tree | 801f4e49d9935e277bb33652f55a103833683dc2 /classes | |
parent | 78c3f2f3c6e66772a5d5ba821a03ea10b27a3a0c (diff) | |
download | openembedded-3d15e897768f88b94ff9de263087934a41a6a19e.tar.gz |
sourceipk: use tar to get the files copied, rather than cp
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.bbclass | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass index a92e462325..8214f78ecf 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 |