[poky] [PATCH 3/4] Calculate CCACHE_DIR by calling host's ccache config.

Alex deVries alex.devries at windriver.com
Wed Dec 15 12:34:59 PST 2010


---
 meta/classes/image-swab.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/meta/classes/image-swab.bbclass b/meta/classes/image-swab.bbclass
index 7cb1c1e..d0fb009 100644
--- a/meta/classes/image-swab.bbclass
+++ b/meta/classes/image-swab.bbclass
@@ -68,6 +68,10 @@ do_generate_swabber_report () {
 
   REPORTSTAMP=${SWAB_ORIG_TASK}-`date +%2m%2d%2H%2M%Y`
 
+  if [ `which ccache` ] ; then
+    CCACHE_DIR=`( ccache -s | grep "cache directory" | grep -o '[^ ]*$' 2> /dev/null )`
+  fi
+
   if [ "$(ls -A ${HOST_DATA})" ]; then
     echo "Generating swabber report"
     swabber -d ${HOST_DATA} -l ${SWABBER_LOGS} -o ${SWABBER_REPORT}/report-${REPORTSTAMP}.txt -r ${SWABBER_REPORT}/extra_report-${REPORTSTAMP}.txt -c all -p ${TOPDIR} -f ${OEROOT}/meta/conf/swabber ${TOPDIR} ${OEROOT} ${CCACHE_DIR}
-- 
1.7.0.4




More information about the poky mailing list