Commit Graph

544 Commits

Author SHA1 Message Date
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
Serge Semin
6788664c5c tcmode-external: also blacklist libgfortran
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:03 +05:00
Serge Semin
eaa1d0d483 tcmode-external: add prefs for gcc-runtime, libgcc-initial, libgfortran
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:03 +05:00
Serge Semin
5efde7bd40 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-08-03 03:05:03 +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
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
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
20795cfd6b oe.external: obey EXTERNAL_FILES over FILES
This lets one add files to be packaged beyond those being extracted from
the external toolchain, i.e. for files coming from elsewhere, or created
by do_install/do_install_extra.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:03 +05:00
Christopher Larson
e89a84fdff oe.external: drop unneeded ,True from getVars
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
ab715554ad binutils-external-cross: only link ld.bfd if necessary
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 03:05:02 +05:00
Christopher Larson
23d7cd6994 glibc-external: add virtual/crypt to PROVIDES
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 00:24:53 +05:00
Christopher Larson
ba47f7c9a5 glibc-external: resurrect rpc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-06-06 21:29:04 +05:00
Christopher Larson
2c8f1363ed tcmode: drop as-needed.inc inclusion
This file no longer exists in oe-core, as it's now default.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-06-04 22:32:46 +05:00
Christopher Larson
d95c4314b5 glibc-external: drop rpc bits
These were obsolete bits removed from the glibc recipe in oe-core, and
are provided both in another recipe, and, better yet, libtirpc.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-06-01 22:42:55 +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