Commit Graph

457 Commits

Author SHA1 Message Date
Christopher Larson
1507b72191 Merge pull request #149 from kergoth/x32
Fix two issues with x32 builds
2016-12-22 09:40:50 -07:00
Noor-Ahsan
e74d31d65a Merge pull request #156 from kergoth/gcc-runtime-fix-libgomp-gcc-headers
gcc-runtime-external: fix inclusion of {omp,openacc}.h
2016-12-20 14:12:18 +05:00
Noor-Ahsan
a39066238f Merge pull request #155 from kergoth/sb-8354
glibc-external: libmvec packaging fixes
2016-12-20 13:59:23 +05:00
Christopher Larson
c7ec5c09d1 gcc-runtime-external: fix inclusion of {omp,openacc}.h
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-19 13:48:51 -07:00
Christopher Larson
46c4867c32 glibc-external: keep libmvec
We drop the overly greedy patterns for libm* and *_nonshared and explicitly
add back the bits we know we own, but libmvec was missing from this.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-19 09:19:00 -07:00
Christopher Larson
75590b4dcd glibc-external: also remove ${base_libdir}/*_nonshared.a
This overly greedy pattern was picking up, via the FILES_MIRRORS, the
nonshared paths in ${libdir}.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-19 09:17:57 -07:00
Christopher Larson
f71a62353f glibc-external: fix libm* fixup
We don't want the 'libm*.so.*' kept in our FILES, as it's too greedy, and
results in picking up the wrong things.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-19 09:15:06 -07:00
Noor-Ahsan
e1d278b3b0 Merge pull request #153 from kergoth/sb-8391
Fix issues with buildtools-tarball
2016-12-16 18:58:46 +05:00
Christopher Larson
b034153aac Don't alter GLIBC_GENERATE_LOCALES for nativesdk
We only want this to take effect for the locales for the external toolchain,
not those generated and used for nativesdk, otherwise we break the
buildtools-tarball build.

JIRA: SB-8391

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-15 21:58:44 -07:00
Christopher Larson
3ebfc49030 buildtools-tarball: ignore TOOLCHAIN_TARGET_TASK_append
buildtools-tarball is host only, and does not add TOOLCHAIN_TARGET_TASK to
RDEPENDS. Forcibly empty it, otherwise a TOOLCHAIN_TARGET_TASK_append at the
config level will break the buildtools-tarball build

JIRA: SB-8391

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-15 21:57:44 -07:00
Noor-Ahsan
f8b7c25cb6 Merge pull request #151 from kergoth/gdbserver-perf-default
Change gdbserver default to gdbserver-external
2016-12-07 23:56:40 +05:00
Christopher Larson
87616f2b20 tcmode: change gdbserver default to gdbserver-external
Using the one already available with our toolchain makes a great deal of
sense, as it's a known quantity. The only reason we switched to gdb was due to
conflicts between gdb and gdbserver-external, but that issue has been
resolved.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-06 20:03:31 -07:00
Christopher Larson
a098af1ea5 gdbserver-external: update SUMMARY for gdbserver, not gdb
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-06 20:03:20 -07:00
Christopher Larson
b9ddc49442 gdbserver-external: drop bits that belong with gdb, not gdbserver
This fixes a gdb/gdbserver-external file conflict.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-12-06 20:02:53 -07:00
Noor-Ahsan
3b0ae8e55d Merge pull request #150 from fahadarslan/sb-8337
perl-ptest: remove runtime dep on libssp
2016-11-30 19:44:47 +05:00
Fahad Arslan
13658a6c4d perl-ptest: remove runtime dep on libssp
libssp support is only available in toolchain for minnowmax so
remove it until there is a requirement.

Jira ID: SB-8337

Signed-off-by: Fahad Arslan <Fahad_Arslan@mentor.com>
2016-11-30 17:50:08 +05:00
Christopher Larson
6a9eaae40b tcmode: fix x32 BASELIB
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-11-29 14:44:50 -07:00
Christopher Larson
5afc50391f tcmode: fix x32 LDEMULATION
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-11-29 14:42:12 -07:00
Noor-Ahsan
81190e18c6 Merge pull request #147 from kergoth/sb-8257
tcmode: add compilation toolchain sanity test
2016-11-08 16:04:15 +05:00
Christopher Larson
2a0a55d61a tcmode: add compilation toolchain sanity test
It's not ideal to do this for every build, but it's not terrible, either, and
is worth the cost to get an error up front if there's a configuration or
licensing problem. master deals with this more cleanly.

JIRA: SB-8257

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-11-04 11:10:14 -07:00
Christopher Larson
f587a676ae Merge pull request #145 from kergoth/jenkins-error
Merge codebench.bbclass into the tcmode
2016-11-03 13:11:28 -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
Christopher Larson
48a38a84d2 tcmode: use inline python for EXTERNAL_TARGET_SYSTEMS
This helps to avoid ordering issues.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-11-03 13:05:12 -07:00
Noor-Ahsan
61bfcdc0fe Merge pull request #144 from kergoth/oe-external-run-in-topdir
oe.external: run in topdir, not tmpdir
2016-11-02 14:32:25 +05:00
Noor-Ahsan
6455f012f7 Merge pull request #141 from MentorEmbedded/avoid-32-bit-pseudo-deps-for-64-bit-exttc
tcmode: disable 32-bit pseudo for 64-bit codebench
2016-11-02 14:30:25 +05:00
Christopher Larson
6ac1c14748 oe.external: run in topdir, not tmpdir
If we run in tmpdir, and run a bitbake -e after wiping tmpdir,
EXTERNAL_TOOLCHAIN_SYSROOT will be 'UNKNOWN' rather than the correct path, due
to PWD not existing when we try to extract the sysroot path.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-11-01 10:53:31 -07:00
Christopher Larson
af6eec9e6d Merge pull request #143 from Yasir-Khan/ykhan/dogwood
xilinx: aarch64: drop dependency on libatomic
2016-11-01 08:51:11 -07:00
Yasir-Khan
0ee6a0a62a xilinx: aarch64: drop dependency on libatomic
Sourcery codebench toolchain for aarch64 architecture doesn't have
libatomic available which causes ade build failure. Drop the
dependency on libatomic for aarch64 based xilinx MPSoC target.

JiraID: ITS-50

Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
2016-11-01 20:31:43 +05:00
Noor-Ahsan
82f4780bac Merge pull request #142 from kergoth/tcmode-add-external-target-sys
tcmode: add EXTERNAL_TARGET_SYS to BUILDCFG_VARS
2016-11-01 13:42:02 +05:00
Christopher Larson
8beb762f87 tcmode: add EXTERNAL_TARGET_SYS to BUILDCFG_VARS
It's useful to know which target triplet/system was selected by the logic in
the tcmode file, as it searches EXTERNAL_TOOLCHAIN to determine which to use.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-10-31 15:05:08 -07:00
Christopher Larson
b10e0d438b tcmode: disable 32-bit pseudo for 64-bit codebench
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-10-29 18:39:18 -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
Noor-Ahsan
942167919d Merge pull request #140 from MentorEmbedded/ppp-better-workaround
ppp: obey the actual libc kernel version
2016-10-20 20:59:53 +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
Noor-Ahsan
d5291a8c62 Merge pull request #137 from kergoth/sb-8226
tcmode: drop old triplets/prefixes
2016-10-19 20:05:30 +05:00
Christopher Larson
2a3e6b1736 Merge pull request #138 from MentorEmbedded/ppp-build-fix
Fix builds of the ppp recipe with most toolchains
2016-10-18 20:37:49 -07:00
Christopher Larson
ec84c4680d Fix builds of the ppp recipe with most toolchains
A patch in oe-core is needed, at this time, to fix builds with
linux-libc-headers from the 4.8 Linux kernel or newer, which is not the case
for most external toolchains. Unfortunately, this patch also breaks the build
of ppp with older linux-libc-headers, so we need to revert it. A note in the
README is added explaining how to disable this for external toolchains with
recent enough kernel libc headers.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-10-18 15:34:03 -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
ff09932eb4 tcmode: drop old triplets/prefixes
Per @Noor-Ahsan, drop old unsupported lite toolchain triplets.

JIRA: SB-8226

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-10-17 09:09:41 -07:00
Noor-Ahsan
9bb9adb28d Merge pull request #136 from kergoth/sb-7881
Add bits to handle the new codebench layout
2016-10-10 20:19:27 +05: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
f23e3c8a4b tcmode: sort EXTERNAL_TARGET_SYSTEMS by priority
If multiple are available, the 'mentor' triplets are preferred, as that's the
non-lite toolchain. Sort them so those are first, as we stop at the first one
we find.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-09-30 09:07:41 -07:00
Noor-Ahsan
6b621398e4 Merge pull request #135 from Noor-Ahsan/master
Merging Cedar branch to master
2016-09-01 14:13:02 +05:00
Noor Ahsan
bc918aed2b Merge remote-tracking branch 'origin/cedar' 2016-09-01 14:10:21 +05:00
Noor-Ahsan
77e018ae3c Merge pull request #134 from fahadarslan/libssp
glibc-external: don't install already installed libssp_nonshared.a
2016-08-29 22:29:39 +05:00
Fahad Arslan
e8ba31a5df glibc-external: don't install already installed libssp_nonshared.a
libssp_nonshared.a is installed by gcc-runtime-external so
glibc-external should not install this into a shared area when
it already exists.

Signed-off-by: Fahad Arslan <Fahad_Arslan@mentor.com>
2016-08-29 22:24:08 +05:00
Noor-Ahsan
4732ca026e Merge pull request #133 from kergoth/update-readme
Update the README
2016-08-16 16:39:27 +05:00