mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-17 12:42:16 +02:00
Various: leverage the tcmode overrides
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
@@ -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}}
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -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]}"
|
||||
|
||||
Reference in New Issue
Block a user