Commit Graph

504 Commits

Author SHA1 Message Date
Christopher Larson
52e9e14cb4 tcmode: add to gcc compiler component search path
This lets the cross gcc locate the binaries produced by binutils-cross.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-03 01:22:26 +05:00
Christopher Larson
7e59a345f5 tcmode: drop binutils-cross from PNBLACKLIST_DYNAMIC
We need this to allow the user to specify PREFERRED_PROVIDER for
binutils-cross.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-03 01:21:53 +05:00
Christopher Larson
842520827f binutils-cross: install non-prefixed links for gcc
This will install, for example, a 'ld.gold' symlink in
STAGING_BINDIR_TOOLCHAIN/gcc, which we can then allow gcc to get to.
This makes it possible to rebuild just binutils-cross and use everything
else from an external toolchain, which can be useful to get ahold of
ld.gold when the external toolchain doesn't provide it.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-03 01:19:59 +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
8cd9e3e11f glibc-external: don't use deprecated base_path_join
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-02 22:57:51 +05:00
Christopher Larson
09877a784d glibc-external: use oe.utils.read_file, not base_read_file
The latter was deprecated and is now removed.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-02-03 01:04:55 +05:00
Christopher Larson
43b02b6887 gdb: use oe.utils.str_filter_out
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-02-01 01:36:32 +05:00
Christopher Larson
b3840c6d56 libgcc-external: disable the file-rdeps check
We need to disable this for the same reason we disable the build-deps check.
The recursive dependency between libgcc and glibc has to be broken.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-02-01 01:25:19 +05:00
Christopher Larson
0be8f78c36 glibc-external: silence bberror during do_install
Silence any errors from oe_multilib_header, as we don't care about missing
multilib headers, as the oe-core glibc version isn't necessarily the same as
our own.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-02-01 01:25:07 +05:00
Christopher Larson
e5932ca319 ppp: drop, this was fixed upstream
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-12-04 21:30:17 +05:00
Christopher Larson
c51ffb6e2a gcc: align TARGET_SYS and TARGET_PREFIX
Align TARGET_SYS and TARGET_PREFIX to avoid binary links which include both:

    WARNING: gcc-6.2.0-r0 do_package: QA Issue: gcc: Files/directories were installed but not shipped in any package:
    /usr/bin/arm-mel-linux-gnueabi-arm-none-linux-gnueabi-gcc-nm
    /usr/bin/arm-mel-linux-gnueabi-arm-none-linux-gnueabi-gcc
    /usr/bin/arm-mel-linux-gnueabi-arm-none-linux-gnueabi-gcc-ranlib
    /usr/bin/arm-mel-linux-gnueabi-arm-none-linux-gnueabi-g++
    /usr/bin/arm-mel-linux-gnueabi-arm-none-linux-gnueabi-gcc-ar

Moved from meta-mentor.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-11-30 02:02:00 +05:00
Christopher Larson
0f3e1a48c0 systemd-boot: 232 -> %
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-11-23 03:38:42 +05:00
Christopher Larson
288987d8f4 gdb: add fallback preference
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-11-23 03:31:14 +05:00
Christopher Larson
f5afc607df TODO.md: remove obsolete TODO
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-08-15 03:05:50 +05:00
Christopher Larson
f7ea27eaf3 linux-libc-headers: merge back into glibc
We don't want to encourage use of alternate versions of this recipe, there are
better ways to add additional headers.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-21 02:57:40 +05:00
Christopher Larson
6160b16947 Update for sourcery -> external-toolchain layer name
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 10:09:17 +05:00
Christopher Larson
402ca1bf32 Drop recipes/appends specific to the Sourcery toolchain
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 10:08:30 +05:00
Christopher Larson
6a463a5b4b linux-libc-headers-external: oe_multilib_header bits/long-double.h
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 10:00:03 +05:00
Christopher Larson
d57772218e glibc-external: fix removal of oe_multilib_header
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 09:59:48 +05:00
Christopher Larson
095582c295 python3: move into core area
This layer focuses on new recipes, so make it clear where the appends are by
isolating them, even for oe-core.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 08:47:08 +05:00
Christopher Larson
da3bab11dd systemd-boot: move into core area
This layer focuses on new recipes, so make it clear where the appends are by
isolating them, even for oe-core.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-06-16 08:46:13 +05:00
Christopher Larson
03d0a1654f Merge pull request #167 from kergoth/sb-8487
gcc-sanitizers-external: fix COMPILERDEP parse error
2017-02-17 15:52:16 -07:00
Christopher Larson
51c500e0f7 gcc-sanitizers-external: fix COMPILERDEP parse error
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-02-17 15:49:31 -07:00
Christopher Larson
9a900c8bcb Merge pull request #166 from kergoth/sb-8487
systemd-boot: fix build issue on x86_64
2017-02-16 11:06:52 -07:00
Christopher Larson
f36fad3ee2 Merge pull request #165 from kergoth/master-merge-from-morty
Merge from morty to master
2017-02-16 11:01:54 -07:00
Christopher Larson
9ec9290ab8 systemd-boot: fix build issue on x86_64
Ensure -m32/-m64 are passed for EFI, as the buildsystem currently relies on
the default for the toolchain, which isn't necessarily correct for an external
toolchain.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-02-16 11:01:38 -07:00
Christopher Larson
066a0e04ca Merge remote-tracking branch 'origin/morty' into master
* origin/morty:
  tcmode: use SOURCERY_TOOLCHAIN_VERSION for the build cfg summary
  sourcery-tuning.inc: make assembler flags e6500-64b specific
2017-02-16 11:00:13 -07:00
Christopher Larson
7a1460ead0 Merge pull request #164 from kergoth/master-fix-compilerdep-parse-error
gcc-runtime-external: fix COMPILERDEP parse error
2017-02-03 14:32:35 -07:00
Christopher Larson
989f3e8457 gcc-runtime-external: fix COMPILERDEP parse error
We don't need or want this dep, so set it to the empty string rather than
including gcc-common.inc. This fixes builds with current upstream master.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-02-03 14:29:09 -07:00
Noor-Ahsan
3d4653c9a2 Merge pull request #162 from kergoth/sb-8699
tcmode: use SOURCERY_TOOLCHAIN_VERSION for the build cfg summary
2017-01-28 00:54:41 +05:00
Christopher Larson
95c616770e tcmode: use SOURCERY_TOOLCHAIN_VERSION for the build cfg summary
This makes it clear that this refers to the toolchain, not the CodeBench IDE.

JIRA: SB-8699

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-01-27 12:52:08 -07:00
Noor-Ahsan
3c2c4965e0 Merge pull request #160 from fahadarslan/SIEJIR-3452
sourcery-tuning.inc: make assembler flags e6500-64b specific
2017-01-23 22:00:21 +05:00
Fahad Arslan
d66483680e sourcery-tuning.inc: make assembler flags e6500-64b specific
-a64 and -me6500 are PowerPC architecture-specific assembler flags
only intended for 64bit mode of e6500 core.
-a64 - generates ELF64 or XCOFF64.
-me6500 - generates code for Freescale e6500 core complex.

Jira ID: http://jira.alm.mentorg.com:8080/browse/SIEJIR-3452

Signed-off-by: Fahad Arslan <Fahad_Arslan@mentor.com>
2017-01-23 21:44:32 +05:00
Christopher Larson
198da6a8b4 Merge pull request #158 from kergoth/merge-from-morty
Merge from morty
2017-01-12 12:49:18 -07: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
Noor-Ahsan
a14a1e6caf Merge pull request #157 from kergoth/sb-8524
Correctly include existing debug files from the toolchain
2017-01-04 13:44:57 +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
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
Noor-Ahsan
5762d0e145 Merge pull request #154 from kergoth/sanity-fix-varname
sanity-external-toolchain: fix variable name
2016-12-31 11:13:05 +05:00
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
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
Noor-Ahsan
e1d278b3b0 Merge pull request #153 from kergoth/sb-8391
Fix issues with buildtools-tarball
2016-12-16 18:58:46 +05:00