diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2014-11-07 13:21:57 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-09 10:21:20 +0000 |
commit | 0ee5eb295c89a797fc505fc3cca2bbc5ff88fff0 (patch) | |
tree | 4d62dd0700a79761ae0481976d734076610b4ece /meta/recipes-devtools/gcc/gcc-common.inc | |
parent | b78e3e3b27a2e92acfb2c7d7d9f8779c60b2c6dc (diff) | |
download | poky-0ee5eb295c89a797fc505fc3cca2bbc5ff88fff0.tar.gz |
gcc: Fix intermittent failures during configure
If configure or any of the components it uses from the shared work directory
change, do_configure may fail.
An existing do_preconfigure was created to handle these conditions, but
a 'sed' operation was missed, and a call to gnu-configize was also missed.
(From OE-Core rev: 21c2cfff14442cf224e3568bdbb9bcd4070be247)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-common.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-common.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index 0bf26b5c62..9d41f651ed 100644 --- a/meta/recipes-devtools/gcc/gcc-common.inc +++ b/meta/recipes-devtools/gcc/gcc-common.inc | |||
@@ -86,6 +86,8 @@ python do_preconfigure () { | |||
86 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) | 86 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
87 | # See 0044-gengtypes.patch, we need to regenerate this file | 87 | # See 0044-gengtypes.patch, we need to regenerate this file |
88 | bb.utils.remove(d.expand("${S}/gcc/gengtype-lex.c")) | 88 | bb.utils.remove(d.expand("${S}/gcc/gengtype-lex.c")) |
89 | cmd = d.expand("sed -i 's/BUILD_INFO=info/BUILD_INFO=/' ${S}/gcc/configure") | ||
90 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) | ||
89 | } | 91 | } |
90 | addtask do_preconfigure after do_patch before do_configure | 92 | addtask do_preconfigure after do_patch before do_configure |
91 | do_preconfigure[depends] += "gnu-config-native:do_populate_sysroot autoconf-native:do_populate_sysroot" | 93 | do_preconfigure[depends] += "gnu-config-native:do_populate_sysroot autoconf-native:do_populate_sysroot" |