30 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
Christopher Larson
8578292b6a Depend on cross binutils for packaging
objcopy/etc are needed for the split and strip in do_package.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-06-07 09:21:53 -07:00
Christopher Larson
553706b40b external-toolchain: automatically deal with do_install_append
gcc-runtime does a do_install_append, now, and was causing failures.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-05-18 14:48:32 -07:00
Christopher Larson
dae69118e3 Add missing expand flags
This is needed to work with the changes coming from Richard soon. See poky's
master-next.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-02-16 20:40:15 -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
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
5b9ac9e636 external-toolchain: filter out .debug for parse time check
The skip message shows all the paths we're searching for, and it's bloated
with a ton of .debug entries, so remove them, we don't care about them in this
context anyway.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-07-24 14:10:06 -07:00
Christopher Larson
62d08032c9 external_toolchain: add find_sysroot_files convenience function
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-05-07 11:48:37 -07:00
Christopher Larson
a51511d6ef external-toolchain.bbclass: skip build-deps test
Missing build deps don't matter when we don't build anything.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-28 13:30:02 -07:00
Christopher Larson
21d8241639 external-toolchain.bbclass: set S=WORKDIR
This avoids the build warnings due to a nonexistent ${S}.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-28 13:29:38 -07:00
Christopher Larson
03b400b3c4 external-toolchain: correct ownership of our files
Since we're running cp -p to preserve other aspects, we need to manually
correct the ownership to what we expect (root:root) rather than the current
ownership.

JIRA: SB-4185

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-24 18:28:00 -07:00
Christopher Larson
b56cf21d51 libgcc,gcc-runtime: align TARGET_SYS/EXTERNAL_TARGET_SYS
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-14 09:15:52 -07:00
Christopher Larson
6d9b06cd21 external-toolchain: catch re compilation errors in FILES_MIRRORS
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-14 09:15:52 -07:00
Christopher Larson
13b7be29ba Handle EXTERNAL_TOOLCHAIN correctly in checksums
We want the path included in the checksums for the -external-cross recipes, as
they wrap the external binaries and hardcode that path, but we don't want it
included in the checksums for anything else, and we don't want rebuilding the
external-cross recipes to cause rebuilds of thing sthat depend upon them.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-01 13:17:32 -07:00
Christopher Larson
bc5068fd91 external-toolchain: show checked files when skipping
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2014-12-22 12:29:50 -07:00
Christopher Larson
0beb66b376 Split up external-sourcery-toolchain into separate recipes
common-license.bbclass will set LIC_FILES_CHKSUM to a common license file
based on LICENSE, which is appropriate for a case where we have no sources to
refer to.
external-toolchain.bbclass, among other things, handles extraction of files in
the external toolchain sysroot, based on patterns in the FILES variables,
checking alternate locations to better support any arbitrary toolchain, and
has basic mirror handling for checking multiple paths within the sysroots.

Under normal circumstances, I'd want this to use highly granular commits, but
this branch has been extremely long lived (>1yr) and is such an invasive
refactoring that attempting to break it down now would be of limited
usefulness.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2014-12-19 10:35:25 -07:00