tcmode, external-toolchain: add main sourcery version to PV

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
tcmode: Add -msgxx-glibc option if supported by the tools.

Basing this check off "arch == x86" is not strictly correct.
This option should be used on any toolchain where it is a valid
option to ensure that the build host libraries are ignored.

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
(cherry picked from commit 57478d6cf837e6a76941394caed1104d543beeff)
tcmode: add SDKGCCVERSION bits

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
(cherry picked from commit 5f3b4e7921323b0ae37ab975332267cd851da66e)

Conflicts:
	conf/distro/include/tcmode-external-sourcery.inc
tcmode: add CSL_TARGET_SYS_x86-64

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
(cherry picked from commit 2d75af10a03623ddc4757daeecbde5f637d431e9)

Conflicts:
	conf/distro/include/tcmode-external-sourcery.inc
tcmode: set NO32LIBS ?= "0"
(cherry picked from commit 227565a5dfd42eed3a8f635397b01ea6a962cf24)

Conflicts:
	conf/distro/include/tcmode-external-sourcery.inc
tune-*: don't die if the ccargs are expanded early

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
(cherry picked from commit e71ffa3603437350bf5aeeae37c5b4ad711d6498)
tune-*: ensure we apply the e500v2 gcc ice fix

Push out our append to TUNE_CCARGS to the end of the parse with _append, so it
shouldn't be affected by the e500v2 :=, and manually apply its gcc ice fix.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
(cherry picked from commit 965ae8df88d3567f53367bc0605afe94a8aefe47)
gcc-runtime: package libasan

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
gcc-runtime: package lib{l,ub,t}san

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
tcmode-external-sourcery: Allow x86_64-linux-gnu as toolchain prefix.

Allow x86-64 builds to use x86_64-linux-gnu as the prefix for the
cross tools.

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
(cherry picked from commit f4d984d96d46f2e66d7a83faa4822add0c97b705)

Conflicts:
	conf/distro/include/tcmode-external-sourcery.inc
layer.conf: add LAYERDEPENDS

Signed-off-by: Christopher Larson <kergoth@gmail.com>
(cherry picked from commit bea0c577c81d8151790d938779710bb81a76e7d6)

Conflicts:
	conf/layer.conf
tcmode: drop en_US.UTF-8 from GLIBC_GENERATE_LOCALES

This locale doesn't seem to be available in the external toolchain, so make
sure it isn't included in this variable, otherwise locale-base will depend
upon a non-existant package.

JIRA: SB-2602

Signed-off-by: Christopher Larson <kergoth@gmail.com>
(cherry picked from commit 27fe7fc82f5aeafa3b7d9a0a26bf04af194922e4)

Conflicts:
	conf/distro/include/tcmode-external-sourcery.inc
TODO: add entry about locales

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
gdbserver-external: package libinproctrace, kill unneded ${PN}-dbg

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
tcmode: export MGLS and LM_LICENSE_FILE

This is necessary for the toolchain licensing.

JIRA: SB-2612

Signed-off-by: Christopher Larson <kergoth@gmail.com>
(cherry picked from commit e1b0f111bbe36cad296a8ad5da208e4bb6bb0354)

Conflicts:
	conf/distro/include/tcmode-external-sourcery.inc
tcmode: add MGLS, LM_LICENSE_FILE to BB_HASHBASE_WHITELIST

This ensures that they don't affect our checksums/signatures. These affect the
behavior of the toolchain licensing, not the output.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
(cherry picked from commit c0786d219ce1b6ae17728872a9b32c7ab4035213)

Conflicts:
	conf/distro/include/tcmode-external-sourcery.inc
tcmode: don't use BB_HASHBASE_WHITELIST_append

Currently, bitbake isn't always using the finalized configuration metadata to
get the value of this variable, so the _append isn't always applied.

JIRA: MEIBPADIT-811

Signed-off-by: Christopher Larson <kergoth@gmail.com>
(cherry picked from commit 0bae35014824725e89e6b48a817d06254a11ff65)

Conflicts:
	conf/distro/include/tcmode-external-sourcery.inc
tcmode: obey MGLS_LICENSE_FILE, not MGLS

JIRA: SB-3112

Signed-off-by: Christopher Larson <kergoth@gmail.com>
(cherry picked from commit c9829b9baa40bc3cd41e532cbdc556f238a07299)
tcmode: disable pseudo for gcc/g++/cpp

The sourcery toolchain writes temporary files to /tmp, and includes the
username. If multiple users are doing builds with pseudo enabled, it'll try to
write to the other user's file, since both will use 'root', and the build will
fail as a result.

We don't want to wrap all the toolcahin binaries, as they don't all call the
tools which write these lockfiles, and objcopy has to be excluded, as it
modifies installed binaries when the packaging process splits out the debug
info. If that operation occurs outside of pseudo's knowledge, Bad Things will
happen.

JIRA: MEIP-393, SB-1905

Signed-off-by: Christopher Larson <kergoth@gmail.com>
(cherry picked from commit e7c5f947bf1d313f669d924909a232b86b696be1)

Conflicts:
	conf/distro/include/tcmode-external-sourcery.inc
tcmode: fix msgxx-glibc bits

Signed-off-by: Christopher Larson <chris_larson@mentor.com>