Commit Graph

705 Commits

Author SHA1 Message Date
Christopher Larson
2a1de83374 tcmode-external: add -B to TARGET_CC_ARCH, not TUNE_CCARGS
TUNE_CCARGS, while most appropriate, has a `vardepvalue` set which
causes its fully expanded version to end up in checksums, not the
unexpanded version, which causes a problem if that value includes an
absolute path. Place it in TARGET_CC_ARCH instead.

JIRA: SIEJIR-6415

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2023-03-21 20:50:25 +05:00
Christopher Larson
305f31223b external_common.bbclass: exclude LAYERDIR_external-toolchain from signatures
We never want an absolute filesystem path in our checksums.

JIRA: SIEJIR-6415

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2023-03-21 20:50:25 +05:00
Christopher Larson
0b12c98b2a glibc-external-version.inc: also support calling 'ldd --version'
JIRA: SB-21436

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2023-03-21 19:52:45 +05:00
Christopher Larson
92449719ae gcc-{runtime,sanitizers}-external: fix removal of dep upon gcc-source
Without this, we get this failure when using an external toolchain:

    ERROR: Nothing PROVIDES 'gcc-source-11.3.0-13.0.1'. Close matches:
    gcc-source-11.3.0

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2023-02-04 02:50:05 +05:00
Christopher Larson
f2d92965b6 glibc-external: remove provide of linux-libc-headers
This isn't necessary, as linux-libc-headers isn't included in the build
in this configuration anyway, and avoids a need to deal with mismatched
provides between the two recipes, ie "one provides something the other
does not".

JIRA: SB-21212

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2023-02-02 01:51:57 +05:00
Christopher Larson
ba381b0fe9 tcmode: remove linux-libc-headers preference and skip
There's no need for the linux-libc-headers provide in glibc-external, as
it doesn't get pulled into the build regardless in a non-rebuild case,
it just adds complexity.

JIRA: SB-21212

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2023-02-02 01:51:09 +05:00
Christopher Larson
ad0478f3d0 Update the README
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-12-29 22:51:56 +05:00
Christopher Larson
1dfba16772 external-toolchain.bbclass: add 'external' to overrides for these recipes
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-12-05 22:22:38 +05:00
Christopher Larson
033d8b135a libxcrypt-external: avoid conflicting with openssl
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-09-03 02:19:46 +05:00
Christopher Larson
fa3fcfbf5e libnsl2-external: fix broken libnsl.so link and add a check for it
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-08-25 02:26:30 +05:00
Christopher Larson
cfe6440062 libnsl2-external: also package yp*.x and libnsl.pc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-08-25 02:26:30 +05:00
Christopher Larson
cde8fcba58 common-license: add entry for LGPL-2.1-or-later
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-08-25 02:26:30 +05:00
Christopher Larson
871e4e9bb1 common-license: remove old non-spdx license mapping
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-08-25 02:26:30 +05:00
Christopher Larson
9d7901977e glibc-external: use '-or-later' license
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-08-25 02:26:30 +05:00
Christopher Larson
9a265832c9 glibc-external: do not package libcap headers
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-08-25 02:26:30 +05:00
Christopher Larson
09a165b7c5 glibc-external: explicitly list sys headers and do not package acl.h
acl.h comes from the acl recipe, so we should let it provide it.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-08-25 02:26:30 +05:00
Christopher Larson
bc420731df tcmode: improve error when no compatible toolchain is found
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-06-16 20:42:20 +05:00
Christopher Larson
48c4826df7 oe.external: redirect stderr to stdout for newer gcc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-06-08 21:31:18 +05:00
Christopher Larson
e97c0316a1 systemd-boot: apply fix for ccache.bbclass compat from @lumag
Fixes #200

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2022-05-20 21:06:20 -07:00
Christopher Larson
d6a67eed49 Updates for inclusive language
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-04-06 16:06:07 +00:00
Christopher Larson
6cdeb0f0b7 Use SPDX license names
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-04-06 16:06:07 +00:00
Christopher Larson
19d849555e tcmode-external-oe-sdk: default to locale-utf8-is-default
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-04-05 21:50:51 +00:00
Christopher Larson
bf05861401 tcmode: add intermediate EXTERNAL_TOOLCHAIN_FEATURES_DEFAULT variable
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-04-05 21:50:49 +00:00
Christopher Larson
cc511c3357 tcmode: fix toolchain-clang override
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-04-01 22:56:30 +00:00
Christopher Larson
9ac6c348e7 tcmode-external: don't pass --no-sysroot-suffix for clang
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-04-01 19:05:41 +00:00
Christopher Larson
7e7d894cbe Update from honister to kirkstone
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-02-23 17:45:47 +00:00
Christopher Larson
e20c37b5b5 glibc: update libc.headers
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2021-09-30 16:08:26 +00:00
Christopher Larson
194956ff9e glibc: update SUPPORTED
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2021-09-30 16:08:16 +00:00
Christopher Larson
162c152822 libgcc-external: don't package includes that gcc-runtime does
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2021-09-30 16:08:05 +00:00
Christopher Larson
a81f04f908 Convert to new overrides syntax for honister
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2021-09-01 16:38:22 +00:00
Christopher Larson
dcab4f5860 layer.conf: set LAYERSERIES_COMPAT to honister
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2021-08-17 16:43:47 +00:00
Christopher Larson
0c9a9a9eae common-license: set for -only variants
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2021-04-14 02:53:13 +05:00
Christopher Larson
aa42b62d31 layer.conf: add hardknott
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2021-04-13 23:30:47 +05:00
Christopher Larson
98a8faaf76 layer.conf: add gatesgarth
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2021-04-13 23:29:39 +05:00
Christopher Larson
9c95786088 tcmode: use EXTERNAL_CC for consistency
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2021-04-07 15:30:08 -07:00
Christopher Larson
4329c00b73 buildtools-tarball: obey EXTERNAL_ENABLED
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2021-04-01 12:17:36 -07:00
Christopher Larson
39a546d78d gcc: obey EXTERNAL_ENABLED in the bbappend
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2021-04-01 12:17:36 -07:00
Christopher Larson
d64bf83447 tcmode: set EXTERNAL_ENABLED
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2021-04-01 12:17:36 -07:00
Christopher Larson
e93ba6ff5d meta-environment{,-extsdk}: obey the tcmode override
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2021-04-01 12:17:36 -07:00
Christopher Larson
33b2728ac6 glibc-locale: obey the tcmode override
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2021-04-01 12:17:36 -07:00
Christopher Larson
9c83ef365c tcmode: avoid the implicit tcmode-${TCMODE} in OVERRIDES
This avoids duplicate entries and simplifies.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2021-04-01 11:27:13 -07:00
Christopher Larson
cd6b55cf65 external-toolchain-cross.bbclass: add debug output
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2021-04-01 11:23:39 -07:00
Christopher Larson
d158f72d6a Rename external-common to external_global
This aligns with upstream conventions, i.e. multilib vs multilib_global.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2021-04-01 11:15:54 -07:00
Christopher Larson
e7609144a4 tcmode: drop inherit of external-common
This is currently being pulled in by layer.conf already.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2021-04-01 11:15:38 -07:00
Christopher Larson
e03f39023f tcmode-external-oe-sdk: drop the --build-id=
An oe-built toolchain has this already.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-12-30 00:31:17 +05:00
Christopher Larson
361301fcb6 tcmode-external: pass --build-id=sha1 to align with internal
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-12-30 00:30:49 +05:00
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