57 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Serge Semin
88a717a4e8 libgcc-external: drop the static files that won't be found anyway
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:03 +05:00
Serge Semin
7964f2013e libgfortran-external: don't package the static lib and headers
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:03 +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
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
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
989f3e8457 gcc-runtime-external: fix COMPILERDEP parse error
We don't need or want this dep, so set it to the empty string rather than
including gcc-common.inc. This fixes builds with current upstream master.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-02-03 14:29:09 -07:00
Christopher Larson
a96f3c86c0 Revert "Drop now-unnecessary <pkg>-dbg bits"
This reverts commit 91b3032784.

We need these explicitly listed in order to ensure we don't just package the
files, but extract them from the sysroot. The best approach would be to
identify elf binaries the way package.bbclass does, and extract the
debuglink path to determine the files to include, but that can be a future
enhancement.

JIRA: SB-8524
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-01-03 14:53:30 -07:00
Christopher Larson
c7ec5c09d1 gcc-runtime-external: fix inclusion of {omp,openacc}.h
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-19 13:48:51 -07:00
Christopher Larson
e0f19e8d3f gcc-sanitizers-external: add missing packagedata dep on libc
Files are packaged which need libc libraries, so we need the packagedata so
shlibs can find them.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-06-20 15:27:00 -07:00
Christopher Larson
f19e1729fd gcc-runtime-external: align with gcc-runtime.inc
This also avoids the taskhash/basehash mismatch.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-06-20 15:26:37 -07:00
Christopher Larson
d8e48d2852 gcc-runtime: for now, avoid python names for vars
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-06-07 09:23:16 -07:00
Christopher Larson
6075796a1b gcc-runtime: avoid early expansion of the depends flags
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-06-07 09:22:39 -07:00
Christopher Larson
91b3032784 Drop now-unnecessary <pkg>-dbg bits
oe-core master now has auto dbg packaging.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-02-11 12:13:27 -07:00
Christopher Larson
06177dc1a1 Merge pull request #118 from kergoth/drop-cross-unsuffixed-provide
{gcc,binutils}-external-cross: drop provides of unsuffixed
2016-01-26 12:28:06 -07:00
Christopher Larson
b41628675a gcc-external-cross: drop provides of unsuffixed
This provide interfered with multi-machine builds.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-01-26 12:23:20 -07:00
Christopher Larson
83410df569 Merge pull request #106 from kergoth/libgfortran-multilib-fixup
libgfortran-external: kill unneeded and wrong PACKAGES
2015-12-02 13:53:55 -07:00
Christopher Larson
fd6ff9fe58 libgfortran-external: kill unneeded and wrong PACKAGES
There's no need to override this, the default packages is fine, and we already
rprovides the non-external-suffixed package names. This would also have caused
breakage for multilib builds, as the specified package names in PACKAGES
didn't include MLPREFIX.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-11-04 09:35:47 -07:00
Christopher Larson
9cbb7c5111 libgcc-external: move libgcov.a to ${PN}-dev
This aligns with the non-external recipe, and as ${PN}-dev already disables
the staticdev QA check, this also silences the libgcov-dev QA warning. We
could also have changed libgcov-dev to ${MLPREFIX}libgcov-dev.

JIRA: SB-6225

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-11-04 09:30:15 -07:00
Christopher Larson
addf362ab6 libgcc-external: dep on binutils, for strip
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-10-15 11:29:38 -07:00
Christopher Larson
bf7efe9369 libgfortran-external: add recipe
Fix #60.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-09-28 14:59:19 -07:00
Christopher Larson
9c805c68bc Merge pull request #90 from MentorEmbedded/fix-various-warning-and-qa-issues
Fix various warning/QA issues
2015-07-29 20:58:23 -07:00
Christopher Larson
bfc86fd9c4 oe.external: move common functions here
Also provide external-common.bbclass to wrap its inclusion and setup
associated metadata. This will make easier to search sysroots for files
without pulling in the rest of the external toolchain class.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-07-29 13:10:51 -07:00
Christopher Larson
362d20fac7 Resolve build-deps / shlibs issues
Mostly due to the inter-dependency between glibc & libgcc

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-07-29 13:03:52 -07:00