summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-cross.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross.inc')
-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 @@
1inherit cross 1inherit cross
2 2
3DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc ${NATIVEDEPS}" 3DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc ${EXTRADEPENDS} ${NATIVEDEPS}"
4PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" 4PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
5 5
6require gcc-configure-cross.inc 6require gcc-configure-cross.inc
7require gcc-package-cross.inc 7require gcc-package-cross.inc
8 8
9EXTRADEPENDS = ""
10python () {
11 if d.getVar("TARGET_OS", True).startswith("linux"):
12 d.setVar("EXTRADEPENDS", "linux-libc-headers")
13}
14
9do_compile () { 15do_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