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.inc29
1 files changed, 18 insertions, 11 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index c4f7084ba0..f3ae4fe6b1 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -185,21 +185,28 @@ do_install () {
185 # We use libiberty from binutils 185 # We use libiberty from binutils
186 find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f 186 find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f
187 find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f 187 find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f
188
189 # gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build
190 case ${PN} in
191 *gcc-cross-${TARGET_ARCH}|*gcc-crosssdk-${SDK_SYS})
192 dest=${D}/${includedir}/gcc-build-internal-${TARGET_SYS}
193 hardlinkdir . $dest
194 ;;
195 esac
196} 188}
197# This is reflected in the recipe name and target gcc shouldn't depend
198# on SDK settings either
199do_install[vardepsexclude] += "SDK_SYS"
200 189
201do_package[noexec] = "1" 190do_package[noexec] = "1"
202do_packagedata[noexec] = "1" 191do_packagedata[noexec] = "1"
203do_package_write_ipk[noexec] = "1" 192do_package_write_ipk[noexec] = "1"
204do_package_write_rpm[noexec] = "1" 193do_package_write_rpm[noexec] = "1"
205do_package_write_deb[noexec] = "1" 194do_package_write_deb[noexec] = "1"
195
196BUILDDIRSTASH = "${WORKDIR}/stashed-builddir"
197do_gcc_stash_builddir[dirs] = "${B}"
198do_gcc_stash_builddir[cleandirs] = "${BUILDDIRSTASH}"
199do_gcc_stash_builddir () {
200 dest=${BUILDDIRSTASH}
201 hardlinkdir . $dest
202}
203addtask do_gcc_stash_builddir after do_compile
204SSTATETASKS += "do_gcc_stash_builddir"
205do_gcc_stash_builddir[sstate-inputdirs] = "${BUILDDIRSTASH}"
206do_gcc_stash_builddir[sstate-outputdirs] = "${STAGING_DIR}-components/${BUILD_ARCH}/gcc-stashed-builddir${COMPILERINITIAL}-${TARGET_SYS}"
207do_gcc_stash_builddir[sstate-fixmedir] = "${STAGING_DIR}-components/${BUILD_ARCH}/gcc-stashed-builddir${COMPILERINITIAL}-${TARGET_SYS}"
208
209python do_gcc_stash_builddir_setscene () {
210 sstate_setscene(d)
211}
212addtask do_gcc_stash_builddir_setscene