From: Richard Purdie Date: Fri, 28 Sep 2012 13:16:04 +0000 (+0100) Subject: siteconfig: Clear cache before rebuilding X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~39841 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5ff8396cad130f809f8f8da49bb38e6f80f923c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git siteconfig: Clear cache before rebuilding This ensures consistent build results and avoids build failures when compiler flags change for example. Signed-off-by: Richard Purdie --- diff --git a/meta/classes/siteconfig.bbclass b/meta/classes/siteconfig.bbclass index ccbe5b99c97..3701b7cd815 100644 --- a/meta/classes/siteconfig.bbclass +++ b/meta/classes/siteconfig.bbclass @@ -18,6 +18,7 @@ siteconfig_do_siteconfig_gencache () { >${WORKDIR}/site_config_${MACHINE}/configure.ac cd ${WORKDIR}/site_config_${MACHINE} autoconf + rm -f ${PN}_cache CONFIG_SITE="" ${EXTRASITECONFIG} ./configure ${CONFIGUREOPTS} --cache-file ${PN}_cache sed -n -e "/ac_cv_c_bigendian/p" -e "/ac_cv_sizeof_/p" \ -e "/ac_cv_type_/p" -e "/ac_cv_header_/p" -e "/ac_cv_func_/p" \