diff options
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-runtime.inc | 22 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/libgcc-common.inc | 11 |
2 files changed, 19 insertions, 14 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc index b8bfdcedad..35a3077a4a 100644 --- a/meta/recipes-devtools/gcc/gcc-runtime.inc +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc | |||
@@ -51,16 +51,15 @@ RUNTIMETARGET:libc-newlib = "libstdc++-v3" | |||
51 | # libgfortran needs separate recipe due to libquadmath dependency | 51 | # libgfortran needs separate recipe due to libquadmath dependency |
52 | 52 | ||
53 | # Relative path to be repaced into debug info | 53 | # Relative path to be repaced into debug info |
54 | REL_S = "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" | 54 | DEBUGSOURCE = "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" |
55 | 55 | ||
56 | DEBUG_PREFIX_MAP:class-target = " \ | 56 | DEBUG_PREFIX_MAP = " \ |
57 | -fdebug-prefix-map=${WORKDIR}/${MLPREFIX}recipe-sysroot= \ | 57 | -ffile-prefix-map=${WORKDIR}/${MLPREFIX}recipe-sysroot= \ |
58 | -fdebug-prefix-map=${WORKDIR}/recipe-sysroot-native= \ | 58 | -ffile-prefix-map=${WORKDIR}/recipe-sysroot-native= \ |
59 | -fdebug-prefix-map=${S}=${REL_S} \ | 59 | -ffile-prefix-map=${B}=${DEBUGSOURCE} \ |
60 | -fdebug-prefix-map=${S}/include=${REL_S}/libstdc++-v3/../include \ | 60 | -ffile-prefix-map=${S}=${DEBUGSOURCE} \ |
61 | -fdebug-prefix-map=${S}/libiberty=${REL_S}/libstdc++-v3/../libiberty \ | 61 | -fdebug-prefix-map=${B}=${DEBUGSOURCE} \ |
62 | -fdebug-prefix-map=${S}/libgcc=${REL_S}/libstdc++-v3/../libgcc \ | 62 | -fdebug-prefix-map=${S}=${DEBUGSOURCE} \ |
63 | -fdebug-prefix-map=${B}=${REL_S} \ | ||
64 | -ffile-prefix-map=${B}/${HOST_SYS}/libstdc++-v3/include=${includedir}/c++/${BINV} \ | 63 | -ffile-prefix-map=${B}/${HOST_SYS}/libstdc++-v3/include=${includedir}/c++/${BINV} \ |
65 | " | 64 | " |
66 | 65 | ||
@@ -77,8 +76,7 @@ do_configure () { | |||
77 | mkdir -p ${B}/${TARGET_SYS}/$d/ | 76 | mkdir -p ${B}/${TARGET_SYS}/$d/ |
78 | cd ${B}/${TARGET_SYS}/$d/ | 77 | cd ${B}/${TARGET_SYS}/$d/ |
79 | chmod a+x ${S}/$d/configure | 78 | chmod a+x ${S}/$d/configure |
80 | relpath=${@os.path.relpath("${S}/$d", "${B}/${TARGET_SYS}/$d")} | 79 | ${S}/$d/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} |
81 | $relpath/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} | ||
82 | if [ "$d" = "libgcc" ]; then | 80 | if [ "$d" = "libgcc" ]; then |
83 | (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) | 81 | (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) |
84 | fi | 82 | fi |
diff --git a/meta/recipes-devtools/gcc/libgcc-common.inc b/meta/recipes-devtools/gcc/libgcc-common.inc index cf8d6b7ed6..e813926313 100644 --- a/meta/recipes-devtools/gcc/libgcc-common.inc +++ b/meta/recipes-devtools/gcc/libgcc-common.inc | |||
@@ -4,14 +4,21 @@ require gcc-configure-common.inc | |||
4 | 4 | ||
5 | INHIBIT_DEFAULT_DEPS = "1" | 5 | INHIBIT_DEFAULT_DEPS = "1" |
6 | 6 | ||
7 | DEBUGSOURCE = "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" | ||
8 | DEBUG_PREFIX_MAP = " \ | ||
9 | -fdebug-prefix-map=${WORKDIR}/${MLPREFIX}recipe-sysroot= \ | ||
10 | -fdebug-prefix-map=${WORKDIR}/recipe-sysroot-native= \ | ||
11 | -fdebug-prefix-map=${B}=${DEBUGSOURCE} \ | ||
12 | -fdebug-prefix-map=${S}=${DEBUGSOURCE} \ | ||
13 | " | ||
14 | |||
7 | do_configure () { | 15 | do_configure () { |
8 | install -d ${D}${base_libdir} ${D}${libdir} | 16 | install -d ${D}${base_libdir} ${D}${libdir} |
9 | mkdir -p ${B}/${BPN} | 17 | mkdir -p ${B}/${BPN} |
10 | mkdir -p ${B}/${TARGET_SYS}/${BPN}/ | 18 | mkdir -p ${B}/${TARGET_SYS}/${BPN}/ |
11 | cd ${B}/${BPN} | 19 | cd ${B}/${BPN} |
12 | chmod a+x ${S}/${BPN}/configure | 20 | chmod a+x ${S}/${BPN}/configure |
13 | relpath=${@os.path.relpath("${S}/${BPN}", "${B}/${BPN}")} | 21 | ${S}/${BPN}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} |
14 | $relpath/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} | ||
15 | } | 22 | } |
16 | EXTRACONFFUNCS += "extract_stashed_builddir" | 23 | EXTRACONFFUNCS += "extract_stashed_builddir" |
17 | do_configure[depends] += "${COMPILERDEP}" | 24 | do_configure[depends] += "${COMPILERDEP}" |