Commit Graph

606 Commits

Author SHA1 Message Date
Christopher Larson
224bac7c2b oe.external: obey EXTERNAL_TOOLCHAIN_BIN
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-02 02:45:11 +05:00
Christopher Larson
4a3209d606 external-toolchain.bbclass: fix already-stripped warning removal
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-02 02:45:11 +05:00
Christopher Larson
f155ecc572 glibc-external: update SUPPORTED from current oe-core builds
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-01 07:41:23 +05:00
Christopher Larson
5810bebac5 glibc-external: avoid recursion with libnsl2/tirpc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-01 07:41:23 +05:00
Christopher Larson
01e3b73e6d tcmode: use libtirpc-external
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-01 07:41:23 +05:00
Christopher Larson
6bafe0a723 libtirpc-external: add recipe
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-01 07:41:23 +05:00
Christopher Larson
2d5738a7e5 libnsl2: depend on libtirpc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-01 07:41:23 +05:00
Christopher Larson
1271166a88 Split out libxcrypt
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-01 07:41:23 +05:00
Christopher Larson
838a8e6f6b layer.conf: add dunfell
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-04-27 22:38:16 +05:00
Christopher Larson
6e6a1a60d5 tcmode: handle GCC_VERSION=UNKNOWN for debug_prefix_map
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-03-10 16:53:05 +00:00
Christopher Larson
4856d9dc75 tcmode: only remove debug-prefix-map for target recipes
These are the only ones using the external toolchain, so they're the
only ones that would break due to an older external toolchain.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-03-10 16:43:10 +00:00
Christopher Larson
6411230fa6 glibc-external: fix do_install_append processing
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-02-10 20:19:51 +05:00
Christopher Larson
a8684e7ee1 glibc-sysroot-setup.inc: create /usr/lib after stash_locale_cleanup
stash_locale_cleanup removes the empty /usr/lib after stashing the locale
files to avoid remnant clutter, but we need it in the sysroot, so we
need to move the creation of the directory after the cleanup to fix our
aarch64 builds.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-01-27 16:07:11 +00:00
Christopher Larson
cda7cdd663 glibc-sysroot-setup.inc: avoid hardcoding /usr/lib
We have a variable for this, `nonarch_libdir`, and if prefix doesn't match up,
the build will fail anyway.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-01-27 16:02:08 +00:00
Christopher Larson
6d927006cd Don't hardcode ${EXTERNAL_TOOLCHAIN}/bin as bindir
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-10-24 22:17:12 +05:00
Christopher Larson
380bb328a5 tcmode: don't bother adding -B when not rebuilding binutils
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-10-23 22:16:29 +05:00
Christopher Larson
41fcc88f41 layer.conf: add zeus
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-10-16 04:32:16 +05:00
Christopher Larson
45922f5b0d libnsl2-external: don't conflict with rpcbind
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-09-19 22:06:29 +00:00
Christopher Larson
340e2e8895 Split out libnsl2-external
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-09-17 21:38:08 +00:00
Christopher Larson
8cd8e958d6 glibc-external: kill unnecessary PKG/RPROVIDES for extra-nss
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-09-17 21:37:55 +00:00
Christopher Larson
8b347a4d53 glibc-external: avoid packaging files that conflict with the split off tirpc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-09-17 21:37:32 +00:00
Christopher Larson
078805be0c glibc-external: fix the file-checksums to actually work
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-09-17 21:37:04 +00:00
Christopher Larson
093ef8d22c Use --no-preserve=ownership when copying
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-09-17 21:36:42 +00:00
Christopher Larson
2f38497513 Merge remote-tracking branch 'origin/sumo' into public-layer-upstream-test
* origin/sumo:
  Silence gdbserver preference warnings in multilib builds
  gdb: fix missing mlprefix for gdbserver pref
  tcmode: work around mlprefix preference bug wrt gdbserver
  gdbserver-external: add missing MLPREFIX in dep on compilerlibs
  {glibc,gcc-runtime}: fix warnings about libssp for builds with security flags
  meta-environment{,-extsdk}: don't include -B${gcc_bindir} in emitted TUNE_CC_ARCH

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-08-12 18:56:35 +00:00
Christopher Larson
8964172347 Silence gdbserver preference warnings in multilib builds
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-05-10 16:32:06 +00:00
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
4483b36915 layer.conf: add warrior to supported series
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-04-16 18:52:36 +00:00
Christopher Larson
f56f25978e gcc-runtime-external: libgomp should dep on libc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-04-16 16:35:35 +00:00
Christopher Larson
6859ee4a11 gcc-runtime-external: fix dependency loop
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-03-04 20:50:40 +00:00
Christopher Larson
40e434977a tcmode: drop macro-prefix-map for gcc < 8.0
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-03-04 17:53:55 +00:00
Christopher Larson
4cf843cc7e glibc-external: restore crypt bits
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-02-22 18:17:53 +00:00
Christopher Larson
554d4fb819 glibc-external: add makedbs.sh bits
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-02-22 17:42:19 +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
Christopher Larson
794183f1e4 Drop glibc-initial and gcc-initial references
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-01-11 00:38:04 +05:00
Christopher Larson
6f88a9f81b Drop libc-for-gcc references
This no longer exists in oe-core.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2019-01-10 22:48:07 +05: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
f4eca9c11d Merge remote-tracking branch 'origin/sumo'
* origin/sumo:
  external-common.bbclass: fix long standing oe.external import issue
  bash: check if support/bash.pc exist before running sed
  bash: drop -B${gcc_bindir} from bash.pc
  external-toolchain.bbclass: add missing mlprefix in binutils dep
  oe.external: handle invalid FILES_MIRRORS entries
  glibc-external: add virtual/crypt to PROVIDES

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-11-16 22:36:31 +05:00
Christopher Larson
dce20f1025 layer.conf: sumo -> thud
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-11-16 22:35:51 +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
43f582baa9 Merge branch 'external-cross-canadian'
* external-cross-canadian: (21 commits)
  tcmode-external: prefer gdb-external-cross
  gdb-external-cross: add recipe
  tcmode-external: default to external-cross-canadian recipes
  tcmode-external: blacklist cross-canadian recipes
  external-toolchain-cross-canadian: append to PN in the recipes
  gcc-external-cross-canadian: also include libcc1*
  gcc-external-cross-canadian: also check the external libroot
  gcc-external-cross-canadian: only grab the BINV dir, not all of lib/gcc
  gcc-external-cross-canadian: skip dev-so/staticdev qa tests
  gcc-external-cross-canadian: add recipe
  gdb-external-cross-canadian: use FILES_MIRRORS for alternate share/gdb path
  gdb-external-cross-canadian: skip dev-so, staticdev checks
  gdb-external-cross-canadian: split out and use gdb-external.inc
  gdb-external-cross-canadian: add recipe
  binutils-external-cross{,canadian}: include ld.bfd, ld.gold
  binutils-external-cross-canadian: add recipe
  binutils-external-cross: split out binutils-external.inc
  external-toolchain-cross-canadian.bbclass: drop the binutils-cross dep
  external-toolchain-cross-canadian.bbclass: use host strip/objcopy
  external-toolchain-cross-canadian: ship TARGET_PREFIX symlinks
  ...
2018-08-03 07:06:29 +05:00
Serge Semin
bf87474ced tcmode-external: prefer gdb-external-cross
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Serge Semin
0667a9bb85 gdb-external-cross: add recipe
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
b79784e494 tcmode-external: default to external-cross-canadian recipes
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Serge Semin
90fab24dff tcmode-external: blacklist cross-canadian recipes
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00