summaryrefslogtreecommitdiffstats
path: root/meta/classes/siteconfig.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-28 14:16:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-28 15:19:42 +0100
commit15216fc1ec10c93d009f1a6262e90cada5254697 (patch)
tree3239760c71de4acb66f22f607a09f91f20a4e013 /meta/classes/siteconfig.bbclass
parent3d3893d26191307e99a261064885aeaf1e4c1ec7 (diff)
downloadast2050-yocto-poky-15216fc1ec10c93d009f1a6262e90cada5254697.zip
ast2050-yocto-poky-15216fc1ec10c93d009f1a6262e90cada5254697.tar.gz
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>
Diffstat (limited to 'meta/classes/siteconfig.bbclass')
-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" \
OpenPOWER on IntegriCloud