Commit Graph

584 Commits

Author SHA1 Message Date
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
Serge Semin
c82a5a1fac external-toolchain-cross-canadian: append to PN in the recipes
This aligns with the behavior of the oe-core recipes and classes.

Signed-off-by: Sergey Semin <fancer.lancer@gmail.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Serge Semin
1964678f3a gcc-external-cross-canadian: also include libcc1*
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Serge Semin
3f8584c05f gcc-external-cross-canadian: also check the external libroot
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Serge Semin
f0acd784ab gcc-external-cross-canadian: only grab the BINV dir, not all of lib/gcc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
6a1eb0c03a gcc-external-cross-canadian: skip dev-so/staticdev qa tests
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
594ef4992f gcc-external-cross-canadian: add recipe
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Serge Semin
9ba44ed6f1 gdb-external-cross-canadian: use FILES_MIRRORS for alternate share/gdb path
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Serge Semin
501d291564 gdb-external-cross-canadian: skip dev-so, staticdev checks
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Serge Semin
07461c6913 gdb-external-cross-canadian: split out and use gdb-external.inc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
875265f28a gdb-external-cross-canadian: add recipe
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
7461d425aa binutils-external-cross{,canadian}: include ld.bfd, ld.gold
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
a628fdefd9 binutils-external-cross-canadian: add recipe
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
0e591ee96f binutils-external-cross: split out binutils-external.inc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
f80a7aa5d6 external-toolchain-cross-canadian.bbclass: drop the binutils-cross dep
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
6ebeab9133 external-toolchain-cross-canadian.bbclass: use host strip/objcopy
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
e115a9ba30 external-toolchain-cross-canadian: ship TARGET_PREFIX symlinks
When EXTERNAL_TARGET_SYS != TARGET_PREFIX, which is generally the case,
we should ship symlinks with the other prefix. This is largely for
compatibility with existing scripts, but also means we don't need to
alter the variables in environment-setup, i.e. CC.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
0400bc1919 external-toolchain-cross-canadian.bbclass: add class
This class will be used by the binutils and gcc cross-canadian recipes
which package and install the external toolchain binaries into the host
sysroot in the sdk.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:06:20 +05:00
Christopher Larson
410b8c8e9e Merge branch 'general-fixes'
* general-fixes:
  gcc-external{.inc,-cross}: use non-prefixed gcc_binaries
  gcc-external.inc: drop unnecessary external-toolchain inherit
  layer.conf: add fallback default for GCC_VERSION
  gcc: Use globally set GCC_VERSION in recipes
  tcmode-external: also blacklist libgfortran
  tcmode-external: add prefs for gcc-runtime, libgcc-initial, libgfortran
  meta-environment{,-extsdk}: don't include -B${gcc_bindir} in emitted TUNE_CC_ARCH
  external-toolchain.bbclass: expand permissions beyond user
  libgcc-external: drop the static files that won't be found anyway
  libgfortran-external: don't package the static lib and headers
  external-toolchain-cross.bbclass: drop sourcery-specific nopseudo handling
  oe.external: obey EXTERNAL_FILES over FILES
  oe.external: drop unneeded ,True from getVars
  external-toolchain.bbclass: stop disabling strip
  external-toolchain.bbclass: use PACKAGE_DEPENDS
  binutils-external-cross: only link ld.bfd if necessary
2018-08-03 07:06:05 +05:00
Serge Semin
df2fd3ed55 gcc-external{.inc,-cross}: use non-prefixed gcc_binaries
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:01:39 +05:00
Serge Semin
59f87b9fbf gcc-external.inc: drop unnecessary external-toolchain inherit
This is pulled in already via external-toolchain-cross and
external-toolchain-cross-canadian.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:01:29 +05:00
Christopher Larson
9b3281aa4a layer.conf: add fallback default for GCC_VERSION
This is used in recipe PV variables, but is only defined when the tcmode
is loaded, so define a default for the case where it isn't sourced.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:03 +05:00
Serge Semin
2332707bad gcc: Use globally set GCC_VERSION in recipes
Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
2018-08-03 03:05:03 +05:00