Commit Graph

274 Commits

Author SHA1 Message Date
Christopher Larson
e328dbc6de gcc-{sanitizers,runtime}: adjust for gcc-source name change
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-05-11 11:00:03 -07:00
Christopher Larson
25eae9666a Merge pull request #70 from kergoth/sourcery-mx6
glibc-external: fix issue locating errno.h
2015-05-07 11:55:01 -07:00
Christopher Larson
eab86b4ae0 glibc-external: find errno.h via normal sysroot search methods
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-05-07 11:48:55 -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
6daa1ab7a8 Merge pull request #69 from kergoth/sb-5005
Quiet external toolchain license warnings
2015-05-01 10:42:14 -07:00
Christopher Larson
e782e6e06f glibc-external: set LICENSE based on comment in errno.h
JIRA: SB-5005

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-30 09:02:23 -07:00
Christopher Larson
7cc3848247 libgcc-external: hardcode LICENSE for now
JIRA: SB-5005

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-30 09:02:20 -07:00
Christopher Larson
2a27def5b6 gcc-runtime-external: use upstream metadata
Also splits sanitizers into gcc-sanitizers to align with oe-core.

JIRA: SB-5005

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-30 09:02:18 -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
ab67196173 Merge pull request #68 from MentorEmbedded/misc-fixes
Misc fixes for meta-sourcery
2015-04-30 09:00:29 -07:00
Christopher Larson
3021923aff gdbserver-external: fix our shlibs rdepends
Since external recipes don't require virtual/libc and the compilerlibs, we
won't always get our rdeps on those from the shlibs processing, unless we
depend on the packagedata from those recipes. Adding them to DEPENDS would
have worked too, but would have been a lie in a sense, as we don't actually
require those to "build", just package.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-28 13:33:25 -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
a0f481c1f7 glibc-external: add bash rdeps to ldd/tzcode
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-28 13:29:25 -07:00
Christopher Larson
04c56641bf libunwind: fix build with Sourcery G++
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-28 13:29:05 -07:00
Christopher Larson
c95d2ddbc0 tcmode: blacklist libgcc-initial
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-28 11:45:16 -07:00
Christopher Larson
9cf18fff2e Merge pull request #66 from kergoth/sb-4920
Improve external toolchain sanity testing
2015-04-24 18:42:19 -07:00
Christopher Larson
590a9cda10 Merge pull request #67 from kergoth/sb-4185
Correct file ownership and add ownership QA test
2015-04-24 18:39:53 -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
51c7d12402 ncurses: work around ownership problem
Due to a previous workaround, the external gcc/g++ is run outside of pseudo
context. The ncurses install target re-links the libraries directly into ${D},
so we need to make sure the ownership on those files is correct.

JIRA: SB-4185

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-24 18:28:04 -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
251db4c885 tcmode: improve external toolchain sanity checks
- Move from BuildStarted time to TreeDataPreparationStarted, as we want
  bitbake -e to work, so it has to run after ConfigParsed, and we want to see
  these errors rather than the highly verbose unbuildable -external recipe
  errors which occur when generating the runqueue, so we need to run before
  BuildStarted.
- Add 'does gcc exist' sanity test. This also shows an informative warning if
  the bindir exists, but the gcc binary doesn't, and EXTERNAL_TARGET_SYS ==
  TARGET_SYS, which indicates we failed to find a prefix via
  EXTERNAL_TARGET_SYSTEMS.
- Add 'is GCC_VERSION UNKNOWN' sanity test, mentioning the failure of gcc
  version extraction, and pointing to the debug messages to see what actually
  happened.

JIRA: SB-4850, SB-1029

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-20 13:29:31 -07:00
Christopher Larson
05a7e45b7b tcmode: don't use the Name handling in inline python
Currently, the checksumming doesn't handle it well.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-20 13:22:12 -07:00
Christopher Larson
6ffb77e4c9 external-run: use debug messages, not warnings
While these messages are useful when debugging, the warnings clutter up the
log due to running before our sanity checks, potentially confusing the user.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-20 13:16:10 -07:00
Christopher Larson
325a4e57ac Merge pull request #65 from kergoth/target-gcc-fixups
Some target gcc fixups
2015-04-14 09:17:21 -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
e890f1c457 gcc: don't pull unwind.h from cross sysroot
libgcc-external provides this.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-07 11:19:54 -07:00
Christopher Larson
6b2497f32e gcc-runtime-external: package headers for omp, quadmath, ssp
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-07 11:05:50 -07:00
Christopher Larson
7c377a383f libgcc-external: package unwind.h
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-07 11:05:36 -07:00
Noor-Ahsan
de46cb0559 Merge pull request #64 from MentorEmbedded/sourcery-sstate-fixes
Improve external toolchain sstate checksum handling
2015-04-02 19:26:49 +05: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
279a1b01d9 tcmode: don't include EXTERNAL_TARGET_SYSTEMS in checksums
We only care about the resulting value of EXTERNAL_TARGET_SYS, not the
components that fed into it.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-01 13:16:39 -07:00
Christopher Larson
5f40a4db3c tcmode: ensure that SOURCERY_VERSION's value is in our checksums
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-04-01 13:15:35 -07:00
Christopher Larson
a653aaf0c9 Merge pull request #63 from MentorEmbedded/external-run-in-tmpdir
external-run.inc: run in TMPDIR, not TOPDIR
2015-03-31 11:49:56 -07:00
Christopher Larson
4a2f9d3bb1 external-run.inc: run in TMPDIR, not TOPDIR
TMPDIR is already in the BB_HASHBASE_WHITELIST, whereas TOPDIR is not.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-03-31 11:48:44 -07:00
Christopher Larson
96af81fd3f Merge pull request #59 from kergoth/drop-sdk-toolchain-removal
tcmode: drop sdk toolchain removal
2015-03-16 08:21:00 -07:00
Christopher Larson
90ce28ae6c Merge pull request #61 from kergoth/layer-updates
Adjust for layer updates
2015-03-04 14:52:46 -07:00
Christopher Larson
60a384ea95 lttng-ust: 2.5.2 -> 2.6.0
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-03-02 16:14:07 -07:00
Christopher Larson
864d52f9c8 tcmode: drop sdk toolchain removal
This is more a distro/user decision, I think, so move it there. Also this was
insufficient, as just removing `packagegroup-cross-canadian-${MACHINE}` without
adding back in `meta-environment-${MACHINE}` results in an sdk which hangs on
install.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-01-27 09:04:51 -07:00
Christopher Larson
163386eaf6 Merge pull request #58 from kergoth/layer-updates
Adjust for layer updates
2015-01-15 13:11:21 -07:00
Christopher Larson
3b4ff77353 lttng-ust: 2.5.0 -> 2.5.2
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-01-09 16:26:32 -07:00
Christopher Larson
eb37c22a03 libffi: 3.1 -> 3.2.1
Signed-off-by: Christopher Larson <kergoth@gmail.com>
2015-01-09 16:26:24 -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
f43a2fa0a9 Merge pull request #56 from kergoth/recipe-split
Split up external-sourcery-toolchain into separate recipes
2014-12-19 20:50:06 -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
ff66926c25 Merge pull request #55 from kergoth/layer-updates
Adjust for layer updates
2014-12-16 09:31:49 -07:00
Christopher Larson
0cc5d48934 babeltrace: 1.2.1 -> 1.2.4
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2014-12-16 08:47:10 -07:00
Christopher Larson
3d98fcfbc5 gdb: 7.7.1 -> %
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2014-12-16 08:47:04 -07:00