diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-22 21:36:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-24 15:12:28 +0000 |
commit | 5ce6418c13415e76a1287cce750b03d07bdf68ed (patch) | |
tree | ccef0c41b0cd4ab7b1b5c425457d83b56794df21 /meta/recipes-devtools | |
parent | 4fbcd2403f7a9e4818c731ab73ff7b37d46b4877 (diff) | |
download | poky-5ce6418c13415e76a1287cce750b03d07bdf68ed.tar.gz |
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.
(From OE-Core rev: 65e5670ef429bb6c348decb1804e425f1c4d7c61)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross.inc | 8 |
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 @@ | |||
1 | inherit cross | 1 | inherit cross |
2 | 2 | ||
3 | DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc ${NATIVEDEPS}" | 3 | DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc ${EXTRADEPENDS} ${NATIVEDEPS}" |
4 | PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" | 4 | PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" |
5 | 5 | ||
6 | require gcc-configure-cross.inc | 6 | require gcc-configure-cross.inc |
7 | require gcc-package-cross.inc | 7 | require gcc-package-cross.inc |
8 | 8 | ||
9 | EXTRADEPENDS = "" | ||
10 | python () { | ||
11 | if d.getVar("TARGET_OS", True).startswith("linux"): | ||
12 | d.setVar("EXTRADEPENDS", "linux-libc-headers") | ||
13 | } | ||
14 | |||
9 | do_compile () { | 15 | do_compile () { |
10 | oe_runmake all-host all-target-libgcc | 16 | oe_runmake all-host all-target-libgcc |
11 | # now generate script to drive testing | 17 | # now generate script to drive testing |