diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-20 22:29:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-23 16:20:12 +0100 |
commit | a966f3017b1af8df515e19fdd3a39366ab4dc219 (patch) | |
tree | 49034b6ab883dd61c19763ed8512c5d010b7ada5 /meta/recipes-devtools | |
parent | 19950532859eefcce3ccf91ee880fd16f5d933ef (diff) | |
download | poky-a966f3017b1af8df515e19fdd3a39366ab4dc219.tar.gz |
gcc-cross-canadian: Merge 4.7 and 4.8 recipes into common include
This removes duplication and follows the pattern of the other gcc recipes.
(From OE-Core rev: 3296c896f5a5ef7dd50ab4e00ddbf1c2476462dc)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 19 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb | 23 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-canadian_4.8.bb | 20 |
3 files changed, 19 insertions, 43 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc index 10ddacf7fa..85c3166424 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc | |||
@@ -7,3 +7,22 @@ BPN = "gcc" | |||
7 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-${HOST_PREFIX}libc-for-gcc nativesdk-gettext" | 7 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-${HOST_PREFIX}libc-for-gcc nativesdk-gettext" |
8 | 8 | ||
9 | GCCMULTILIB = "--enable-multilib" | 9 | GCCMULTILIB = "--enable-multilib" |
10 | |||
11 | require gcc-configure-sdk.inc | ||
12 | require gcc-package-sdk.inc | ||
13 | |||
14 | ELFUTILS = "nativesdk-elfutils" | ||
15 | DEPENDS += "nativesdk-gmp nativesdk-mpfr nativesdk-libmpc ${ELFUTILS} nativesdk-zlib" | ||
16 | RDEPENDS_${PN} += "nativesdk-mpfr nativesdk-libmpc ${ELFUTILS}" | ||
17 | |||
18 | SYSTEMHEADERS = "/usr/include" | ||
19 | SYSTEMLIBS = "${target_base_libdir}/" | ||
20 | SYSTEMLIBS1 = "${target_libdir}/" | ||
21 | |||
22 | EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \ | ||
23 | --disable-libgomp --disable-libmudflap \ | ||
24 | --with-mpfr=${STAGING_DIR_HOST}${layout_exec_prefix} \ | ||
25 | --with-mpc=${STAGING_DIR_HOST}${layout_exec_prefix}" | ||
26 | |||
27 | # gcc 4.7 needs -isystem | ||
28 | export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}" | ||
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb index 53c463264f..355757c656 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb | |||
@@ -1,26 +1,3 @@ | |||
1 | inherit cross-canadian | ||
2 | |||
3 | require recipes-devtools/gcc/gcc-${PV}.inc | 1 | require recipes-devtools/gcc/gcc-${PV}.inc |
4 | require gcc-cross-canadian.inc | 2 | require gcc-cross-canadian.inc |
5 | require gcc-configure-sdk.inc | ||
6 | require gcc-package-sdk.inc | ||
7 | |||
8 | DEPENDS += "nativesdk-gmp nativesdk-mpfr nativesdk-libmpc nativesdk-elfutils" | ||
9 | RDEPENDS_${PN} += "nativesdk-mpfr nativesdk-libmpc nativesdk-elfutils" | ||
10 | |||
11 | SYSTEMHEADERS = "/usr/include" | ||
12 | SYSTEMLIBS = "${target_base_libdir}/" | ||
13 | SYSTEMLIBS1 = "${target_libdir}/" | ||
14 | |||
15 | EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \ | ||
16 | --disable-libgomp --disable-libmudflap \ | ||
17 | --with-mpfr=${STAGING_DIR_HOST}${layout_exec_prefix} \ | ||
18 | --with-mpc=${STAGING_DIR_HOST}${layout_exec_prefix}" | ||
19 | |||
20 | # to find libmpfr | ||
21 | # export LD_LIBRARY_PATH = "{STAGING_DIR_HOST}${layout_exec_prefix}" | ||
22 | |||
23 | PARALLEL_MAKE = "" | ||
24 | 3 | ||
25 | # gcc 4.7 needs -isystem | ||
26 | export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}" | ||
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.8.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.8.bb index bf49c3d0bb..bf53c5cd78 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.8.bb +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.8.bb | |||
@@ -1,25 +1,5 @@ | |||
1 | inherit cross-canadian | ||
2 | |||
3 | require recipes-devtools/gcc/gcc-${PV}.inc | 1 | require recipes-devtools/gcc/gcc-${PV}.inc |
4 | require gcc-cross-canadian.inc | 2 | require gcc-cross-canadian.inc |
5 | require gcc-configure-sdk.inc | ||
6 | require gcc-package-sdk.inc | ||
7 | |||
8 | ELFUTILS = "nativesdk-elfutils" | ||
9 | DEPENDS += "nativesdk-gmp nativesdk-mpfr nativesdk-libmpc ${ELFUTILS} nativesdk-zlib" | ||
10 | RDEPENDS_${PN} += "nativesdk-mpfr nativesdk-libmpc ${ELFUTILS}" | ||
11 | |||
12 | SYSTEMHEADERS = "/usr/include" | ||
13 | SYSTEMLIBS = "${target_base_libdir}/" | ||
14 | SYSTEMLIBS1 = "${target_libdir}/" | ||
15 | 3 | ||
16 | EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \ | ||
17 | --disable-libgomp --disable-libmudflap \ | ||
18 | --with-mpfr=${STAGING_DIR_HOST}${layout_exec_prefix} \ | ||
19 | --with-mpc=${STAGING_DIR_HOST}${layout_exec_prefix}" | ||
20 | 4 | ||
21 | # to find libmpfr | ||
22 | # export LD_LIBRARY_PATH = "{STAGING_DIR_HOST}${layout_exec_prefix}" | ||
23 | 5 | ||
24 | # gcc 4.7 needs -isystem | ||
25 | export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}" | ||