summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-07-23 22:40:52 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-26 14:40:48 +0100
commitaab76b339937fa666945fefe1167a3e39b5d874f (patch)
tree0001a7c26de588432762b2a51c269bd09d3fc57d /meta/recipes-devtools
parentfecb95620ab130de7718e97f37ffb6aecf0ea0e2 (diff)
downloadpoky-aab76b339937fa666945fefe1167a3e39b5d874f.tar.gz
gcc-cross-initial: Stage self sufficient fixed limits.h
currently gcc installs a limits.h which references to another limits.h which it expects from target sysroot and that header in target sysroot will come from eglibc. So we need to break this catch-22 and hence we install a self sufficient limits.h which is then happy when referenced and doesnt complain about missing limits.h from target sysroot. This is mostly used when eglibc-initial configure is run (From OE-Core rev: eeb445ecbc651ad614a4fc492039bdad0747d45d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.7.inc2
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-initial.inc10
2 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
index 43d77ecf07..709d7d81f3 100644
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
@@ -1,6 +1,6 @@
1require gcc-common.inc 1require gcc-common.inc
2 2
3PR = "r7" 3PR = "r8"
4 4
5# Third digit in PV should be incremented after a minor release 5# Third digit in PV should be incremented after a minor release
6# happens from this branch on gcc e.g. currently its 4.7.1 6# happens from this branch on gcc e.g. currently its 4.7.1
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial.inc b/meta/recipes-devtools/gcc/gcc-cross-initial.inc
index 93a6d78e2e..aee46a6c6c 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-initial.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-initial.inc
@@ -27,3 +27,13 @@ EXTRA_OECONF = "--with-newlib \
27do_compile () { 27do_compile () {
28 oe_runmake all-gcc all-target-libgcc 28 oe_runmake all-gcc all-target-libgcc
29} 29}
30# fixed limits.h infact includes the so called real limits.h
31# which should come from libc but when we build libc-initial
32# then bunch of configure tests include fixed limits.h which in turn
33# includes real limits.h but this real limits.h is not staged yet
34# so we overwirte the generated include-fixed/limits.h for gcc-cross-initial
35# to get rid references to real limits.h
36
37do_install_append1() {
38 cp gcc/include-fixed/limits.h ${D}${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed/limits.h
39}