aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-28 14:16:04 +0100
committerScott Garman <scott.a.garman@intel.com>2012-10-02 09:01:45 -0700
commitb21d1daf709ddce14c93a5f16c91ff702e1cb7ff (patch)
tree911ba2fde95d74593c8d6bc54ff2a31229926c7a
parent8430748e838872b22fe0e83a7dbf3a2a5b1faba2 (diff)
downloadopenembedded-core-b21d1daf709ddce14c93a5f16c91ff702e1cb7ff.zip
openembedded-core-b21d1daf709ddce14c93a5f16c91ff702e1cb7ff.tar.gz
openembedded-core-b21d1daf709ddce14c93a5f16c91ff702e1cb7ff.tar.bz2
siteconfig: Clear cache before rebuilding
This ensures consistent build results and avoids build failures when compiler flags change for example. (From OE-Core rev: a5ff8396cad130f809f8f8da49bb38e6f80f923c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/siteconfig.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/siteconfig.bbclass b/meta/classes/siteconfig.bbclass
index ccbe5b9..3701b7c 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" \