78 Commits

Author SHA1 Message Date
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
d6a67eed49 Updates for inclusive language
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2022-04-06 16:06:07 +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
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
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
6c1721c0ed external-common.bbclass: prefer /usr/${baselib}/bin to ${bindir}
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-28 21:34:53 +05:00
Christopher Larson
be4fae984d Add support for FILES_PREMIRRORS
This lets us prefer certain alternative paths to the default in
particular cases, such as use of ${libdir}/bin in the case of a multilib
build to avoid bindir conflicts.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-28 21:34:53 +05:00
Christopher Larson
83856ec0dd external-common.bbclass: skip kernel version for non-external builds
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-08 22:10:03 +05:00
Christopher Larson
fa97c0babd external-common.bbclass: add msg on kernel version failure
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2020-07-07 13:42:19 -07:00
Christopher Larson
24c559fcdd external-common.bbclass: obey EXTERNAL_CC
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-07 13:41:45 -07: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
f758d228c4 sanity-external-toolchain.bbclass: use EXTERNAL_CC
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-02 02:45:11 +05:00
Christopher Larson
e74531c5ec external-common.bbclass: define a default EXTERNAL_CC variable
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-02 02:45:11 +05:00
Christopher Larson
4010c28d61 sanity-external-toolchain.bbclass: pass HOST_CC_ARCH
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-02 02:45:11 +05:00
Christopher Larson
c5630c2341 sanity-external-toolchain.bbclass: handle FileNotFoundError
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
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
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
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
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
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
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
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
Serge Semin
e687093b60 external-toolchain.bbclass: expand permissions beyond user
Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:03 +05:00
Christopher Larson
4ab51ed04d external-toolchain-cross.bbclass: drop sourcery-specific nopseudo handling
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:03 +05:00
Christopher Larson
d1b9d49813 external-toolchain.bbclass: stop disabling strip
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:03 +05:00
Christopher Larson
0b3b46ffa2 external-toolchain.bbclass: use PACKAGE_DEPENDS
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:02 +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
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
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
455bf111e5 Merge remote-tracking branch 'origin/morty' into master
* origin/morty:
  Revert "Drop now-unnecessary <pkg>-dbg bits"
  external-toolchain: also inhibit debug split
  gcc-runtime-external: fix inclusion of {omp,openacc}.h
  glibc-external: keep libmvec
  glibc-external: also remove ${base_libdir}/*_nonshared.a
  glibc-external: fix libm* fixup
  Don't alter GLIBC_GENERATE_LOCALES for nativesdk
  buildtools-tarball: ignore TOOLCHAIN_TARGET_TASK_append
  tcmode: change gdbserver default to gdbserver-external
  gdbserver-external: update SUMMARY for gdbserver, not gdb
  gdbserver-external: drop bits that belong with gdb, not gdbserver
  perl-ptest: remove runtime dep on libssp
  tcmode: fix x32 BASELIB
  tcmode: fix x32 LDEMULATION
2017-01-12 12:39:15 -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
b590b6918f external-toolchain: also inhibit debug split
The external toolchain currently has a different naming scheme than any of
oe-core's currently hardcoded schemes, so failed to recognize the files as
debug, and would add debuglinks to the debug files, which is obviously wrong.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-01-03 14:44:14 -07:00
Noor-Ahsan
3985fa436d Merge pull request #152 from kergoth/sourcery-remove-prefix
Drop the change of TARGET_PREFIX
2016-12-31 11:13:23 +05:00
Christopher Larson
1b542eb9fa sanity-external-toolchain: fix variable name
If the EXTERNAL_TOOLCHAIN path doesn't exist, the error logic had a variable
name issue (extdir vs extpath). Fix.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-16 11:08:15 -07:00
Christopher Larson
2082315ed0 Drop the change of TARGET_PREFIX
Since the external-cross recipes link/wrap the binaries already, there's no
actual need to override TARGET_PREFIX anymore.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-14 20:16:06 -07:00
Christopher Larson
275b4f5c3a Revamp the sanity testing
- Reworked to function the way sanity.bbclass does, rather than running it
  every time we do a build
- Add sanity check to test trivial compilation

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-11-03 13:48:18 -07:00
Christopher Larson
51fa228fc3 tcmode: merge in codebench.bbclass
We were hitting issues due to non-deterministic ordering of ConfigParsed event
handlers between codebench.bbclass and the tcmode. To avoid this, consolidate
the two and use a single handler.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-11-03 13:05:12 -07:00
Noor-Ahsan
41cd7404f0 Merge pull request #139 from MentorEmbedded/new-toolchain-test-minnowmax
Fix a few issues with newer toolchains
2016-10-24 16:35:37 +05:00
Christopher Larson
55c946aeb0 ppp: obey the actual libc kernel version
Since the external toolchain is available at parse time, we can actually grab
the kernel version from the external toolchain sysroot and use that to
determine whether to apply the patch. Do so.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-10-19 10:14:44 -07:00
Christopher Larson
6a9b8a0f5d Clean up references to the old .debug handling
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-10-18 11:33:34 -07:00
Christopher Larson
0d323741fc external-toolchain.bbclass: use bb.utils.to_boolean
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-10-18 11:11:06 -07:00
Christopher Larson
6bc8904f57 external-toolchain.bbclass: simplify skip logic
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-10-18 11:10:52 -07:00