Commit Graph

55 Commits

Author SHA1 Message Date
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
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