mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
gcc 4.5: import http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f13cb20ed19c41b9ff85ef1c9ec0883a21d1d5bf and convert to INC_PR
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -14,6 +14,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
|
|||||||
|
|
||||||
SRCREV = "167948"
|
SRCREV = "167948"
|
||||||
PV = "4.5"
|
PV = "4.5"
|
||||||
|
INC_PR = "r11"
|
||||||
|
|
||||||
# BINV should be incremented after updating to a revision
|
# BINV should be incremented after updating to a revision
|
||||||
# after a minor gcc release (e.g. 4.5.1 or 4.5.2) has been made
|
# after a minor gcc release (e.g. 4.5.1 or 4.5.2) has been made
|
||||||
# the value will be minor-release+1 e.g. if minor release was
|
# the value will be minor-release+1 e.g. if minor release was
|
||||||
@@ -162,6 +164,7 @@ SRC_URI = "svn://gcc.gnu.org/svn/gcc/branches;module=${BRANCH} \
|
|||||||
\
|
\
|
||||||
file://optional_libstdc.patch \
|
file://optional_libstdc.patch \
|
||||||
file://64bithack.patch \
|
file://64bithack.patch \
|
||||||
|
file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 "
|
SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 "
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# by default c++ include directories are not relative to "--sysroot"
|
||||||
|
# which brings one trouble when using the toolchain in an environment
|
||||||
|
# where the build directory generating that toolchain doesn't exist,
|
||||||
|
# e.g. in sstate, machine specific sysroot and relocatable SDK
|
||||||
|
# toolchain. This patch now enables c++ include paths under sysroot.
|
||||||
|
# This way it's enough as long as "--sysroot" is correctly enabled
|
||||||
|
# in the new environment.
|
||||||
|
#
|
||||||
|
# Signed-off-by Kevin Tian <kevin.tian@intel.com>, 2010-12-30
|
||||||
|
|
||||||
|
diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c
|
||||||
|
index 5024f48..9b47d1c 100644
|
||||||
|
--- a/gcc/cppdefault.c
|
||||||
|
+++ b/gcc/cppdefault.c
|
||||||
|
@@ -48,15 +48,15 @@ const struct default_include cpp_include_defaults[]
|
||||||
|
= {
|
||||||
|
#ifdef GPLUSPLUS_INCLUDE_DIR
|
||||||
|
/* Pick up GNU C++ generic include files. */
|
||||||
|
- { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, 0, 0 },
|
||||||
|
+ { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, 1, 0 },
|
||||||
|
#endif
|
||||||
|
#ifdef GPLUSPLUS_TOOL_INCLUDE_DIR
|
||||||
|
/* Pick up GNU C++ target-dependent include files. */
|
||||||
|
- { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, 0, 1 },
|
||||||
|
+ { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, 1, 1 },
|
||||||
|
#endif
|
||||||
|
#ifdef GPLUSPLUS_BACKWARD_INCLUDE_DIR
|
||||||
|
/* Pick up GNU C++ backward and deprecated include files. */
|
||||||
|
- { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, 0, 0 },
|
||||||
|
+ { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, 1, 0 },
|
||||||
|
#endif
|
||||||
|
#ifdef LOCAL_INCLUDE_DIR
|
||||||
|
/* /usr/local/include comes before the fixincluded header files. */
|
||||||
@@ -5,7 +5,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
|
|||||||
EXTRA_OECONF += " --enable-poison-system-directories "
|
EXTRA_OECONF += " --enable-poison-system-directories "
|
||||||
|
|
||||||
EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_exec_prefix} \
|
EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_exec_prefix} \
|
||||||
--with-gxx-include-dir=${STAGING_DIR_TARGET}/${target_includedir}/c++ \
|
--with-gxx-include-dir=${target_includedir}/c++ \
|
||||||
--with-sysroot=${STAGING_DIR_TARGET} \
|
--with-sysroot=${STAGING_DIR_TARGET} \
|
||||||
--with-build-sysroot=${STAGING_DIR_TARGET}"
|
--with-build-sysroot=${STAGING_DIR_TARGET}"
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
|
|||||||
USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}'
|
USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}'
|
||||||
|
|
||||||
EXTRA_OECONF_PATHS = "--with-local-prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \
|
EXTRA_OECONF_PATHS = "--with-local-prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \
|
||||||
--with-gxx-include-dir=${SDKPATH}/sysroots/${TARGET_SYS}${target_includedir}/c++ \
|
--with-gxx-include-dir=${target_includedir}/c++ \
|
||||||
--with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
|
--with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
|
||||||
--with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \
|
--with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \
|
||||||
--with-build-sysroot=${STAGING_DIR_TARGET}"
|
--with-build-sysroot=${STAGING_DIR_TARGET}"
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ require gcc-cross-canadian.inc
|
|||||||
require gcc-configure-sdk.inc
|
require gcc-configure-sdk.inc
|
||||||
require gcc-package-sdk.inc
|
require gcc-package-sdk.inc
|
||||||
|
|
||||||
PR = "r10"
|
PR = "${INC_PR}.0"
|
||||||
|
|
||||||
DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
|
DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
|
||||||
RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
|
RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
|
||||||
|
|
||||||
SYSTEMHEADERS = "/usr/include"
|
SYSTEMHEADERS = "/usr/include"
|
||||||
SYSTEMLIBS = "/lib/"
|
SYSTEMLIBS = "/lib/"
|
||||||
SYSTEMLIBS1 = "/usr/lib/"
|
SYSTEMLIB. = "/usr/lib/"
|
||||||
|
|
||||||
EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \
|
EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \
|
||||||
--disable-libgomp --disable-libmudflap \
|
--disable-libgomp --disable-libmudflap \
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
require gcc-cross_${PV}.bb
|
require gcc-cross_${PV}.bb
|
||||||
require gcc-cross-initial.inc
|
require gcc-cross-initial.inc
|
||||||
|
|
||||||
PR = "r10"
|
PR = "${INC_PR}.0"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
require gcc-cross_${PV}.bb
|
require gcc-cross_${PV}.bb
|
||||||
require gcc-cross-intermediate.inc
|
require gcc-cross-intermediate.inc
|
||||||
PR = "r10"
|
PR = "${INC_PR}.0"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
PR = "r12"
|
PR = "${INC_PR}.2"
|
||||||
|
|
||||||
require gcc-${PV}.inc
|
require gcc-${PV}.inc
|
||||||
require gcc-cross4.inc
|
require gcc-cross4.inc
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
require gcc-cross-initial_${PV}.bb
|
require gcc-cross-initial_${PV}.bb
|
||||||
require gcc-crosssdk-initial.inc
|
require gcc-crosssdk-initial.inc
|
||||||
|
|
||||||
PR = "r10"
|
PR = "${INC_PR}.0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
require gcc-cross-intermediate_${PV}.bb
|
require gcc-cross-intermediate_${PV}.bb
|
||||||
require gcc-crosssdk-intermediate.inc
|
require gcc-crosssdk-intermediate.inc
|
||||||
|
|
||||||
PR = "r10"
|
PR = "${INC_PR}.0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
require gcc-cross_${PV}.bb
|
require gcc-cross_${PV}.bb
|
||||||
require gcc-crosssdk.inc
|
require gcc-crosssdk.inc
|
||||||
|
|
||||||
PR = "r10"
|
PR = "${INC_PR}.0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
PR = "r10"
|
PR = "${INC_PR}.0"
|
||||||
|
|
||||||
require gcc-${PV}.inc
|
require gcc-${PV}.inc
|
||||||
require gcc-configure-runtime.inc
|
require gcc-configure-runtime.inc
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
PR = "r11"
|
PR = "${INC_PR}.1"
|
||||||
|
|
||||||
require gcc-${PV}.inc
|
require gcc-${PV}.inc
|
||||||
require gcc-configure-target.inc
|
require gcc-configure-target.inc
|
||||||
|
|||||||
Reference in New Issue
Block a user