Commit Graph

28 Commits

Author SHA1 Message Date
Christopher Larson
2374ada847 codebench.bbclass: add automatic path fixups
- If the user set EXTERNAL_TOOLCHAIN to the top of the CodeBench install
  rather than the actual toolchain path, we correct it
- If the user set EXTERNAL_TOOLCHAIN to the path to a new CodeBench, where the
  toolchains are installed elsewhere, set CODEBENCH_PATH instead, so we
  correctly and automatically set EXTERNAL_TOOLCHAIN

When these fixups are performed, warnings are displayed, indicating the
correct values for the variables, so the user can set them that way if we they
want to silence the warnings.

JIRA: SB-7881

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-09-30 09:07:41 -07:00
Christopher Larson
fbf6ffdc72 Add bits to handle the new codebench layout
If the user hasn't set EXTERNAL_TOOLCHAIN, but CODEBENCH_PATH is set, then we
automatically set both EXTERNAL_TOOLCHAIN and EXTERNAL_TARGET_SYS based on the
installed toolchains in CODEBENCH_PATH/../toolchains.

This adds a new variable, rather than allowing EXTERNAL_TOOLCHAIN to point to
CodeBench instead of the actual toolchain path, to keep the clean separation
between the generic toolchain logic and that which is specific to our
toolchains, and also avoids overloading the variable's meaning.

JIRA: SB-7881

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-09-30 09:07:41 -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
f011487eee package_qa_sourcery: drop bits now upstream
host-user-contaminated has been merged to oe-core.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-09-17 14:33:35 -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
e6abcdeaeb blacklist_dynamic: add example of gcc-source-% 2015-07-21 13:41:22 -07:00
Christopher Larson
ba1954bc85 Split out blacklist_dynamic.bbclass
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-07-21 12:45:42 -07:00
Christopher Larson
c1c42a14b1 package_qa_sourcery: fix fakeroot handling
This fixes a failure to execute bitbake-worker to execute this task.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-06-17 12:04:01 -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
5b8c219f59 common-license: handle LICENSE_<pkg>
JIRA: SB-5005

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-30 09:02:13 -07:00
Christopher Larson
1c1ace709e common-license: add GPL-3.0-with-GCC-exception
JIRA: SB-5005

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-30 09:02:08 -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
ac653d0390 package_qa_sourcery: add host user ownership test
Check for files outside of /home which are owned by the user running bitbake.

Add `package_qa_sourcery` to `PACKAGE_CLASSES`, and `${SOURCERY_QA}` to your
`WARN_QA` or `ERROR_QA` to use.

This will be submitted to oe-core's package_qa.

JIRA: SB-4185

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-24 18:28:13 -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
Christopher Larson
1e24d0e84a toolchain-scripts: add TOOLCHAIN_PATH_ADD to PATH
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2012-10-30 15:38:23 -07:00
Christopher Larson
4f3412df90 Drop the toolchain-scripts bits
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2012-07-31 08:42:31 -07:00
Christopher Larson
aa0df6efd4 toolchain-scripts: update from oe-core
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2012-07-26 12:31:34 -07:00
Christopher Larson
a47da1e82f toolchain-scripts: add copy with virtual/libc use
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2012-07-18 14:20:24 -07:00