[oe] [PATCH] sourceipk: modify excludes to include directory names

Chase Maupin Chase.Maupin at ti.com
Wed Jun 6 13:29:01 UTC 2012


* When the S variable is set to WORKDIR in the sourceipk class
  a list of excludes is generated to prevent packaging the
  sourceipk data along with the actual source files.  This
  excludes list is a regular expression that currently does not
  also cover the directory names.  For example:
    * temp/* is excluded but the directory temp is not
* This leads to the sourceipk still including the contents of
  the directories to be excluded.  By removing the wildcard the
  directory is excluded as well and the contents are not copied
  into the sourcipk.

Signed-off-by: Chase Maupin <Chase.Maupin at ti.com>
---
 classes/sourceipk.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass
index 546ec67..09d6eb8 100644
--- a/classes/sourceipk.bbclass
+++ b/classes/sourceipk.bbclass
@@ -110,7 +110,7 @@ sourceipk_do_create_srcipk() {
         mkdir -p $tmp_dir/${SRCIPK_INSTALL_DIR}
         if [ -e ${S} ]; then
 	    if [ "${S}" = "${WORKDIR}" ]; then
-		excludes='--exclude ./temp/\* --exclude ./sourceipk-tmp/\* --exclude ./sourceipk-data/\*'
+		excludes='--exclude ./temp --exclude ./sourceipk-tmp --exclude ./sourceipk-data'
 	    fi
             tar -C ${S} -cO $excludes . | tar -C $tmp_dir/${SRCIPK_INSTALL_DIR} -xpf -
         fi
-- 
1.7.0.4





More information about the Openembedded-devel mailing list