Various: leverage the tcmode overrides

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2018-03-15 00:58:11 +05:00
parent c308682978
commit 537bc233f7
5 changed files with 18 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
do_install_append () {
do_install_append_tcmode-external () {
install -d ${D}${bindir}/gcc
for i in ${D}${bindir}/${TARGET_PREFIX}*; do
ln -s ../$(basename "$i") ${D}${bindir}/gcc/${i##*/${TARGET_PREFIX}}

View File

@@ -1,8 +1,7 @@
PREFERRED_PROVIDER_gdbserver ?= "gdb"
PROVIDES += "${@'gdbserver' if '${PREFERRED_PROVIDER_gdbserver}' == '${PN}' else ''}"
PROVIDES_append_tcmode-external = " ${@'gdbserver' if '${PREFERRED_PROVIDER_gdbserver}' == '${PN}' else ''}"
# Disable build of gdbserver if is provided by external-sourcery-toolchain
PACKAGES := "${@oe.utils.str_filter_out('gdbserver' if '${PREFERRED_PROVIDER_gdbserver}' != '${PN}' else '$', '${PACKAGES}', d)}"
DISABLE_GDBSERVER := "${@'--disable-gdbserver' if '${PREFERRED_PROVIDER_gdbserver}' != '${PN}' else ''}"
EXTRA_OECONF += "${DISABLE_GDBSERVER}"
PACKAGES_remove_tcmode-external = "${@'gdbserver' if '${PREFERRED_PROVIDER_gdbserver}' != '${PN}' else ''}"
DISABLE_GDBSERVER = "${@'--disable-gdbserver' if '${PREFERRED_PROVIDER_gdbserver}' != '${PN}' else ''}"
EXTRA_OECONF_append_tcmode-external = " ${DISABLE_GDBSERVER}"

View File

@@ -1,3 +1,3 @@
# This build relies on this matching up with HOST_PREFIX, as it doesn't seem
# to use CROSS_COMPILE everywhere. Align it here to fix the build.
HOST_SYS = "${@'${HOST_PREFIX}'[:-1]}"
HOST_SYS_tcmode-external = "${@'${HOST_PREFIX}'[:-1]}"