Commit Graph

528 Commits

Author SHA1 Message Date
Christopher Larson
60667c36c2 gdb: fix missing mlprefix for gdbserver pref
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-05-09 19:43:52 +00:00
Christopher Larson
e90fb8fd9a tcmode: work around mlprefix preference bug wrt gdbserver
There's a bug where the implicitly created
`PREFERRED_PROVIDER_${MLPREFIX}<provider>` isn't being obeyed for
runtime package installation in a multilib image, so work around it by
explicitly specifying mlprefix.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-04-24 23:03:04 +00:00
Christopher Larson
074bea89db gdbserver-external: add missing MLPREFIX in dep on compilerlibs
DEPENDS/PROVIDES & PREFERRED_PROVIDER get mapped for mlprefix
automatically, but 'depends' flags do not, so the MLPREFIX has to be
explicit in such flags. This fixes the ability to build multilib images,
i.e. lib32-core-image-base.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-04-24 23:03:04 +00:00
Christopher Larson
d53aba601e {glibc,gcc-runtime}: fix warnings about libssp for builds with security flags
This can be dropped if and when the toolchain gets built without libssp,
which is the default in oe-core. We don't need gcc's libssp anyway,
since glibc provides it already, and musl has the separate
libssp_nonshared lib to supplement, which is in oe-core.

JIRA: SB-12465

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-02-06 22:14:13 +00:00
Serge Semin
3902c43070 meta-environment{,-extsdk}: don't include -B${gcc_bindir} in emitted TUNE_CC_ARCH
Don't dump the -B${gcc_bindir} appended to TUNE_CCARGS and subsequently
to TARGET_CC_ARCH, since it consists of local machine toolchain paths.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-11-19 22:31:53 +05:00
Christopher Larson
6421c94565 external-common.bbclass: fix long standing oe.external import issue
bitbake-layers and devtool both fail to run commands with
meta-external-toolchain included, as it fails to import oe.external. It
turns out that oe_import in base.bbclass is not entirely sufficient to
get the needed modules imported when namespace packages are involved,
and those packages have already been imported. Re-import such packages
after the sys.path change to ensure the new __init__.py files are
parsed, and the new __path__ changes picked up.

JIRA: SB-11904

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-10-30 06:01:57 +05:00
Frederik Noe-Sdun
12305fb6d5 bash: check if support/bash.pc exist before running sed
The bash version provided by meta-gplv2 does not provide this file and
as a consequence do_compile will fail with:

    sed: can't read support/bash.pc: No such file or directory

Signed-off-by: Frederik Noe-Sdun <Frederik_NoeSdun@mentor.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-10-19 10:18:48 -06:00
Christopher Larson
a7c70be6c6 bash: drop -B${gcc_bindir} from bash.pc
This triggers staging qa warnings otherwise.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-10-17 02:21:20 +05:00
Christopher Larson
86b5ab11c9 external-toolchain.bbclass: add missing mlprefix in binutils dep
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-10-12 22:40:37 +05:00
Christopher Larson
226a8616f8 oe.external: handle invalid FILES_MIRRORS entries
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-10-12 22:35:51 +05:00
Christopher Larson
ccde5a3528 glibc-external: add virtual/crypt to PROVIDES
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-06-20 02:19:10 +05:00
Christopher Larson
a45cbbcfaa layer.conf: set LAYERSERIES_COMPAT
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-04-12 02:45:26 +05:00
Christopher Larson
e6ca1d2980 Merge remote-tracking branch 'origin/escape-files-mirrors'
* origin/escape-files-mirrors:
  oe.external: escape the pathname from FILES_MIRRORS
2018-03-20 03:07:40 +05:00
Christopher Larson
52de7a284a oe.external: escape the pathname from FILES_MIRRORS
Currently the substitutions fail to match if the path contains re
special characters like '+', which is problematic.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-17 07:22:39 +05:00
Christopher Larson
e5885f2319 Various: use external_run, not oe.external.run
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-15 01:54:06 +05:00
Christopher Larson
0ae4ab6253 layer.conf: always inherit external-common to be able to parse
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-15 01:54:04 +05:00
Christopher Larson
9fce314315 ncurses: drop append, this belongs in meta-sourcery
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-15 01:53:51 +05:00
Christopher Larson
537bc233f7 Various: leverage the tcmode overrides
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-15 01:53:51 +05:00
Christopher Larson
c308682978 tcmode: add tcmode- bits to OVERRIDES
This eases the many checks against TCMODE we need to do for yocto
compliance.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-15 01:53:50 +05:00
Christopher Larson
5981428492 external-toolchain.bbclass: skip when TCMODE is non-external
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-15 01:53:50 +05:00
Christopher Larson
da9cfa7d38 external-common.bbclass: fix external_run when not enabled
This returns immediately with 'UNKNOWN' if the external toolchain isn't
enabled, and also immediately adjusts sys.path regardless of OE_IMPORTS
handling to avoid the over-reliance upon that mechanism.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-14 22:46:17 +05:00
Christopher Larson
3cceb0317d tcmode: drop pnblacklist of linux-libc-headers
The blacklist isn't necessary. We already provide the virtual, but if
someone wants the real thing, it shouldn't be harmful to allow it to
build.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-14 22:42:20 +05:00
Christopher Larson
340868ceda tcmode: default to gdb, not gdbserver-external
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-14 22:41:52 +05:00
Christopher Larson
fd7916fa83 gcc: drop TARGET_SYS workaround
This is no longer needed, as the external toolchain no longer sets
TARGET_PREFIX.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-09 08:00:43 +05:00
Christopher Larson
52e9e14cb4 tcmode: add to gcc compiler component search path
This lets the cross gcc locate the binaries produced by binutils-cross.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-03 01:22:26 +05:00
Christopher Larson
7e59a345f5 tcmode: drop binutils-cross from PNBLACKLIST_DYNAMIC
We need this to allow the user to specify PREFERRED_PROVIDER for
binutils-cross.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-03 01:21:53 +05:00
Christopher Larson
842520827f binutils-cross: install non-prefixed links for gcc
This will install, for example, a 'ld.gold' symlink in
STAGING_BINDIR_TOOLCHAIN/gcc, which we can then allow gcc to get to.
This makes it possible to rebuild just binutils-cross and use everything
else from an external toolchain, which can be useful to get ahold of
ld.gold when the external toolchain doesn't provide it.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-03 01:19:59 +05:00
Christopher Larson
0954fed02c external-common.bbclass: import oe.external right away
This aligns with what base.bbclass does.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-03 01:19:18 +05:00
Christopher Larson
07ee6ebdb5 blacklist_dynamic.bbclass: use getVar, not expand, for PNBLACKLIST_DYNAMIC
This ensures that _append/_prepend/_remove are also applied, so the user
can remove elements from the variable.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-03 01:18:30 +05:00
Christopher Larson
8cd9e3e11f glibc-external: don't use deprecated base_path_join
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-02 22:57:51 +05:00
Christopher Larson
09877a784d glibc-external: use oe.utils.read_file, not base_read_file
The latter was deprecated and is now removed.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-02-03 01:04:55 +05:00
Christopher Larson
43b02b6887 gdb: use oe.utils.str_filter_out
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-02-01 01:36:32 +05:00
Christopher Larson
b3840c6d56 libgcc-external: disable the file-rdeps check
We need to disable this for the same reason we disable the build-deps check.
The recursive dependency between libgcc and glibc has to be broken.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-02-01 01:25:19 +05:00
Christopher Larson
0be8f78c36 glibc-external: silence bberror during do_install
Silence any errors from oe_multilib_header, as we don't care about missing
multilib headers, as the oe-core glibc version isn't necessarily the same as
our own.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-02-01 01:25:07 +05:00
Christopher Larson
e5932ca319 ppp: drop, this was fixed upstream
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-12-04 21:30:17 +05:00
Christopher Larson
c51ffb6e2a gcc: align TARGET_SYS and TARGET_PREFIX
Align TARGET_SYS and TARGET_PREFIX to avoid binary links which include both:

    WARNING: gcc-6.2.0-r0 do_package: QA Issue: gcc: Files/directories were installed but not shipped in any package:
    /usr/bin/arm-mel-linux-gnueabi-arm-none-linux-gnueabi-gcc-nm
    /usr/bin/arm-mel-linux-gnueabi-arm-none-linux-gnueabi-gcc
    /usr/bin/arm-mel-linux-gnueabi-arm-none-linux-gnueabi-gcc-ranlib
    /usr/bin/arm-mel-linux-gnueabi-arm-none-linux-gnueabi-g++
    /usr/bin/arm-mel-linux-gnueabi-arm-none-linux-gnueabi-gcc-ar

Moved from meta-mentor.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-11-30 02:02:00 +05:00
Christopher Larson
0f3e1a48c0 systemd-boot: 232 -> %
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-11-23 03:38:42 +05:00
Christopher Larson
288987d8f4 gdb: add fallback preference
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-11-23 03:31:14 +05:00
Christopher Larson
f5afc607df TODO.md: remove obsolete TODO
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-08-15 03:05:50 +05:00
Christopher Larson
f7ea27eaf3 linux-libc-headers: merge back into glibc
We don't want to encourage use of alternate versions of this recipe, there are
better ways to add additional headers.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-21 02:57:40 +05:00
Christopher Larson
6160b16947 Update for sourcery -> external-toolchain layer name
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 10:09:17 +05:00
Christopher Larson
402ca1bf32 Drop recipes/appends specific to the Sourcery toolchain
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 10:08:30 +05:00
Christopher Larson
6a463a5b4b linux-libc-headers-external: oe_multilib_header bits/long-double.h
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 10:00:03 +05:00
Christopher Larson
d57772218e glibc-external: fix removal of oe_multilib_header
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 09:59:48 +05:00
Christopher Larson
095582c295 python3: move into core area
This layer focuses on new recipes, so make it clear where the appends are by
isolating them, even for oe-core.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 08:47:08 +05:00
Christopher Larson
da3bab11dd systemd-boot: move into core area
This layer focuses on new recipes, so make it clear where the appends are by
isolating them, even for oe-core.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 08:46:13 +05:00
Christopher Larson
03d0a1654f Merge pull request #167 from kergoth/sb-8487
gcc-sanitizers-external: fix COMPILERDEP parse error
2017-02-17 15:52:16 -07:00
Christopher Larson
51c500e0f7 gcc-sanitizers-external: fix COMPILERDEP parse error
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-02-17 15:49:31 -07:00
Christopher Larson
9a900c8bcb Merge pull request #166 from kergoth/sb-8487
systemd-boot: fix build issue on x86_64
2017-02-16 11:06:52 -07:00
Christopher Larson
f36fad3ee2 Merge pull request #165 from kergoth/master-merge-from-morty
Merge from morty to master
2017-02-16 11:01:54 -07:00