summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-22 21:36:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-24 15:12:04 +0000
commit65e5670ef429bb6c348decb1804e425f1c4d7c61 (patch)
tree0ca01f240871dfa486116003cdf8bb28b7e9cd9c
parenteeec307917234d97be2674beeadef71599fb1487 (diff)
downloadopenembedded-core-65e5670ef429bb6c348decb1804e425f1c4d7c61.tar.gz
openembedded-core-65e5670ef429bb6c348decb1804e425f1c4d7c61.tar.bz2
openembedded-core-65e5670ef429bb6c348decb1804e425f1c4d7c61.zip
gcc-cross: Explicitly depend on linux-libc-headers
gcc-cross cannot build without linux-libc-headers but doesn't explicitly depend on it relying on the implied dependency through libc. With cases where pieces can be installed through sstate, we now need this explicit dependency to ensure builds with partial sstate work. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index 6d160d659a..9d29f56421 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -1,11 +1,17 @@
inherit cross
-DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc ${NATIVEDEPS}"
+DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc ${EXTRADEPENDS} ${NATIVEDEPS}"
PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
require gcc-configure-cross.inc
require gcc-package-cross.inc
+EXTRADEPENDS = ""
+python () {
+ if d.getVar("TARGET_OS", True).startswith("linux"):
+ d.setVar("EXTRADEPENDS", "linux-libc-headers")
+}
+
do_compile () {
oe_runmake all-host all-target-libgcc
# now generate script to drive testing