Christopher Larson
217f6de212
libgcc-external: fix the resolved relative path
...
This was using the relpath between the sysroot and the libroot, but only
resolved one of the two, which would result in a wildly incorrect
relative path, breaking the build in some contexts.
JIRA: SB-15645
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-10-16 01:31:57 +05:00
Christopher Larson
3ede376df2
tcmode-external-oe-sdk: fix the multiple candidate setup scripts error
...
This was causing a traceback, as the error handling wasn't updated when
the candidates were changed to a list of tuples.
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-09-24 17:13:39 +00:00
Christopher Larson
e25fcba931
tcmode: default EXTERNAL_TOOLCHAIN to UNKNOWN, not UNDEFINED
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-08-27 00:56:08 +05:00
Christopher Larson
bb754cb0a1
tcmode-external-oe-sdk: support EXTERNAL_TOOLCHAINS
...
This variable lists multiple toolchain roots to check. As we already support processing multiple available environment-setup scripts, checking additional paths for them was trivial, and eases Sourcery toolchain support handling.
JIRA: SB-15406
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-08-25 21:46:21 +05:00
Christopher Larson
ab5628f07e
tcmode-external-oe-sdk: stop setting EXTERNAL_TOOLCHAIN_SETUP_SCRIPT
...
As the script checks for this and obeys it, setting it resulted in the
base configuration script also being used for all multilibs in
preference to the search, so stop setting it.
Signed-off-by: Christopher Larson <kergoth@gmail.com >
2020-08-21 13:59:44 -07:00
Christopher Larson
734311e012
tcmode-external-oe-sdk: handle non-exported vars when parsing setup scripts
...
JIRA: SB-15362
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-08-07 01:05:42 +05:00
Christopher Larson
7f0040db11
tcmode: support EXTERNAL_SETUP_SCRIPT_VARS
...
JIRA: SB-15362
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-08-06 23:43:33 +05:00
Christopher Larson
ef17919a17
tcmode: fix the debug messages to use the right name
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-08-06 23:43:33 +05:00
Christopher Larson
c6be292f36
tcmode: fix setup_external_vars
...
This was failing to set the variables needed.
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-08-06 23:42:12 +05:00
Christopher Larson
ddd87efb3b
libgcc-external: avoid blowing up for a non-external tcmode
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-08-03 20:27:17 +05:00
Christopher Larson
01653f3c09
tcmode-external-oe-sdk: clean up old commented lines
...
Signed-off-by: Christopher Larson <kergoth@gmail.com >
2020-07-31 09:08:44 -07:00
Christopher Larson
eef5cf7ecb
tcmode-external-oe-sdk: integrate combined handling, support multilibs
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-30 04:14:22 +05:00
Christopher Larson
994ec34562
tcmode-external-oe-sdk: fix EXTERNAL_TOOLCHAIN_SETUP_SCRIPT usage
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-29 07:44:44 +05:00
Christopher Larson
113c0c3e9c
libgcc-external: fix for an external multilib
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-29 07:44:14 +05:00
Christopher Larson
4d2501fb40
libgcc-external: resolve the paths when adding links
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-28 21:37:41 +05:00
Christopher Larson
84cddaa96b
glibc-external: also grab multilib headers for oe sdk
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-28 21:34:53 +05:00
Christopher Larson
6c1721c0ed
external-common.bbclass: prefer /usr/${baselib}/bin to ${bindir}
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-28 21:34:53 +05:00
Christopher Larson
be4fae984d
Add support for FILES_PREMIRRORS
...
This lets us prefer certain alternative paths to the default in
particular cases, such as use of ${libdir}/bin in the case of a multilib
build to avoid bindir conflicts.
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-28 21:34:53 +05:00
Christopher Larson
f3292e8843
glibc-external: don't include crypt.h
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-10 03:37:42 +05:00
Christopher Larson
6f3e5144c5
libxcrypt: include header, .pc
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-10 03:37:42 +05:00
Christopher Larson
6d7bb28cf2
libgcc-external: also PROVIDES libgcc-initial
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-09 21:07:04 +05:00
Christopher Larson
bc41a26b28
glibc-external: skip license for non-external builds
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-08 22:16:30 +05:00
Christopher Larson
e7fef5b9bd
glibc-external-version.inc: skip version for non-external builds
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-08 22:10:23 +05:00
Christopher Larson
83856ec0dd
external-common.bbclass: skip kernel version for non-external builds
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-08 22:10:03 +05:00
Christopher Larson
fd66753707
oe.external: add/improve debug messages
...
Signed-off-by: Christopher Larson <kergoth@gmail.com >
2020-07-07 13:42:28 -07:00
Christopher Larson
fa97c0babd
external-common.bbclass: add msg on kernel version failure
...
Signed-off-by: Christopher Larson <kergoth@gmail.com >
2020-07-07 13:42:19 -07:00
Christopher Larson
24c559fcdd
external-common.bbclass: obey EXTERNAL_CC
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 13:41:45 -07:00
Christopher Larson
14fa5f8079
oe.external.run: let cmd already start with the prefix
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 13:41:44 -07:00
Christopher Larson
7d2c754318
Revert "oe.external: use EXTERNAL_CC for gcc"
...
This reverts commit 2a3cffd458 .
2020-07-07 13:40:39 -07:00
Christopher Larson
da4d8d7578
tcmode: prefer glibc-external for linux-libc-headers
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 13:35:49 -07:00
Christopher Larson
601aedb28a
Move HEADERS_MULTILIB_SUFFIX into external-common
...
Signed-off-by: Christopher Larson <kergoth@gmail.com >
2020-07-07 13:34:53 -07:00
Christopher Larson
68268179eb
glibc-external: provide linux-libc-headers
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 13:20:12 -07:00
Christopher Larson
f584899fe6
glibc-external: stop pulling in linux-libc-headers
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 13:20:12 -07:00
Christopher Larson
784f04848e
Revert "glibc-external: provide linux-libc-headers"
...
This reverts commit 6d7d0b4adc .
2020-07-07 12:51:40 -07:00
Christopher Larson
fdc6a24643
bash: use tcmode override
...
This ensures we pass yocto-check-layers.
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 12:51:40 -07:00
Christopher Larson
2cb87790ab
glibc-external-version.inc: use tcmode override
...
This ensures we pass yocto-check-layers.
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 12:51:40 -07:00
Christopher Larson
2fdd749af5
glibc-locale: add a var default for localedef_depends
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 12:51:40 -07:00
Christopher Larson
6d7d0b4adc
glibc-external: provide linux-libc-headers
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 21:00:28 +05:00
Christopher Larson
b3b2b7fbf5
libgcc-external: correctly handle oe sdk multilib symlinks
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 00:44:09 +05:00
Christopher Larson
6c2188d491
libgcc-external: add TARGET_SYS symlink under libdir for compat
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 00:44:02 +05:00
Christopher Larson
e52ff6135d
gcc-runtime-external: symlink TARGET_SYS, not move
...
There are two cases where TARGET_SYS might not match
EXTERNAL_TARGET_SYS. In one case, the external toolchain simply used
a different one than we did, and we need to align expectations, but in
another, they may not match due to multilib usage, and in such a case we
likely need both available.
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 00:31:11 +05:00
Christopher Larson
58be27d80b
gcc-runtime-external: handle links already existing
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-07 00:30:59 +05:00
Christopher Larson
cdd217e9dd
tcmode-external-oe-sdk: add tcmode for an oe sdk
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-02 02:45:11 +05:00
Christopher Larson
6b29ed97ea
glibc-external: obey a locale-utf8-is-default external toolchain feature
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-02 02:45:11 +05:00
Christopher Larson
9f90c8e04f
tcmode: add EXTERNAL_TOOLCHAIN_FEATURES
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-02 02:45:11 +05:00
Christopher Larson
8f2bbee75f
gcc-runtime-external: handle toolchains without header multilib suffix
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-02 02:45:11 +05:00
Christopher Larson
e77b6d4ecc
glibc-external: only sed files that exist
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-02 02:45:11 +05:00
Christopher Larson
f758d228c4
sanity-external-toolchain.bbclass: use EXTERNAL_CC
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-02 02:45:11 +05:00
Christopher Larson
2a3cffd458
oe.external: use EXTERNAL_CC for gcc
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-02 02:45:11 +05:00
Christopher Larson
e74531c5ec
external-common.bbclass: define a default EXTERNAL_CC variable
...
Signed-off-by: Christopher Larson <chris_larson@mentor.com >
2020-07-02 02:45:11 +05:00