Commit Graph

570 Commits

Author SHA1 Message Date
Serge Semin
e20a66e58a gdbserver-external: include debug-root (crosstool-ng-ism, I think)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:07:33 +05:00
Serge Semin
2b665ec6a8 strace-external: add crosstool-ng-specific version extraction
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:07:33 +05:00
Serge Semin
626a3eada1 strace-external: also check in debug-root (crosstool-ng-ism)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:07:33 +05:00
Serge Semin
9b40164cea strace-external: add recipe
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:07:33 +05:00
Serge Semin
39dd54f386 tcmode-external: Set gdbserver-external as gdbserver provider
Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
2018-08-03 07:07:32 +05:00
Serge Semin
8e4baa9e90 glibc-external: also include ldd in the main package rather than the ldd package (wrong)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:07:32 +05:00
Serge Semin
9445e10197 tcmode-external: Don't append TCMODEOVERRIDES twice
Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
2018-08-03 07:07:32 +05:00
Serge Semin
3526ae70cc glibc-external: use separate external recipes for glibc components
This includes locale, mtrace, and scripts. Rather than letting the glibc
recipe extract them, place them in the sysroot, and the other glibc
recipes pull the files from there, we extract them directly from the
external toolchain.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:07:32 +05:00
Serge Semin
3a2a2ce129 glibc-external: flesh out libc.headers more fully
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:07:32 +05:00
Serge Semin
795f0f2a14 linux-libc-headers-external: split out from glibc
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-08-03 07:07:32 +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
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