summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-source.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-source.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-source.inc10
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}-*"
17INHIBIT_DEFAULT_DEPS = "1" 17INHIBIT_DEFAULT_DEPS = "1"
18DEPENDS = "" 18DEPENDS = ""
19PACKAGES = "" 19PACKAGES = ""
20TARGET_ARCH = "allarch"
21TARGET_AS_ARCH = "none"
22TARGET_CC_ARCH = "none"
23TARGET_LD_ARCH = "none"
24TARGET_OS = "linux"
25baselib = "lib"
26PACKAGE_ARCH = "all"
20 27
28B = "${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.
23python do_preconfigure () { 31python 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