diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-source.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-source.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-source.inc b/meta/recipes-devtools/gcc/gcc-source.inc index 03bab97815..265bcf4bef 100644 --- a/meta/recipes-devtools/gcc/gcc-source.inc +++ b/meta/recipes-devtools/gcc/gcc-source.inc | |||
@@ -17,15 +17,21 @@ STAMPCLEAN = "${STAMPS_DIR}/work-shared/gcc-${PV}-*" | |||
17 | INHIBIT_DEFAULT_DEPS = "1" | 17 | INHIBIT_DEFAULT_DEPS = "1" |
18 | DEPENDS = "" | 18 | DEPENDS = "" |
19 | PACKAGES = "" | 19 | PACKAGES = "" |
20 | TARGET_ARCH = "allarch" | ||
21 | TARGET_AS_ARCH = "none" | ||
22 | TARGET_CC_ARCH = "none" | ||
23 | TARGET_LD_ARCH = "none" | ||
24 | TARGET_OS = "linux" | ||
25 | baselib = "lib" | ||
26 | PACKAGE_ARCH = "all" | ||
20 | 27 | ||
28 | B = "${WORKDIR}/build" | ||
21 | 29 | ||
22 | # This needs to be Python to avoid lots of shell variables becoming dependencies. | 30 | # This needs to be Python to avoid lots of shell variables becoming dependencies. |
23 | python do_preconfigure () { | 31 | python do_preconfigure () { |
24 | import subprocess | 32 | import subprocess |
25 | cmd = d.expand('cd ${S} && PATH=${PATH} gnu-configize') | 33 | cmd = d.expand('cd ${S} && PATH=${PATH} gnu-configize') |
26 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) | 34 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
27 | # See 0044-gengtypes.patch, we need to regenerate this file | ||
28 | bb.utils.remove(d.expand("${S}/gcc/gengtype-lex.c")) | ||
29 | cmd = d.expand("sed -i 's/BUILD_INFO=info/BUILD_INFO=/' ${S}/gcc/configure") | 35 | cmd = d.expand("sed -i 's/BUILD_INFO=info/BUILD_INFO=/' ${S}/gcc/configure") |
30 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) | 36 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
31 | 37 | ||