summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-28 13:16:04 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-10 22:30:08 (GMT)
commitd156f75fea0bdbfabaad51e99ad424cd0b791662 (patch)
tree843253a2fa1f691540c51192728a111ac18c8ce4
parent809d97b938a34553d651152548e752573690ebd3 (diff)
downloadpoky-d156f75fea0bdbfabaad51e99ad424cd0b791662.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) (From OE-Core rev: b21d1daf709ddce14c93a5f16c91ff702e1cb7ff) 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 () {
18 >${WORKDIR}/site_config_${MACHINE}/configure.ac 18 >${WORKDIR}/site_config_${MACHINE}/configure.ac
19 cd ${WORKDIR}/site_config_${MACHINE} 19 cd ${WORKDIR}/site_config_${MACHINE}
20 autoconf 20 autoconf
21 rm -f ${PN}_cache
21 CONFIG_SITE="" ${EXTRASITECONFIG} ./configure ${CONFIGUREOPTS} --cache-file ${PN}_cache 22 CONFIG_SITE="" ${EXTRASITECONFIG} ./configure ${CONFIGUREOPTS} --cache-file ${PN}_cache
22 sed -n -e "/ac_cv_c_bigendian/p" -e "/ac_cv_sizeof_/p" \ 23 sed -n -e "/ac_cv_c_bigendian/p" -e "/ac_cv_sizeof_/p" \
23 -e "/ac_cv_type_/p" -e "/ac_cv_header_/p" -e "/ac_cv_func_/p" \ 24 -e "/ac_cv_type_/p" -e "/ac_cv_header_/p" -e "/ac_cv_func_/p" \