* Copy hidden files and directories such as eclipse
project files. Currently these files are not copied
for the top-level directory which makes applications with
eclipse project files not usable with eclipse.
* Only need to copy hidden files for the top-level directory
since subdirectories do not experience this problem
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
# 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 [ ${SRCIPK_INCLUDE_EXTRAFILES} != "0" ]
then