Commit Graph

417 Commits

Author SHA1 Message Date
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
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
Christopher Larson
0bf26059b7 README.md: mention a build directory in the deps
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-08-15 13:17:58 -07:00
Christopher Larson
312eb21686 README.md: shorten 'Description of Behavior'
This is a readme, I think it being descriptive is a given.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-08-15 13:14:11 -07:00
Christopher Larson
981967acfb README.md: remove 'no longer necessary'
This phrase implies knowledge of the build process or the layer history which
is not always the case.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-08-15 13:12:21 -07:00
Christopher Larson
7a20b474bd README.md: add Maintainer section
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-08-15 13:08:58 -07:00
Christopher Larson
9a11fb6f3d README.md: use # prefixes for headings
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-08-15 13:08:50 -07:00
Christopher Larson
57d161dd49 README.md: add bitbake and toolchain to deps
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-08-15 13:07:39 -07:00
Christopher Larson
ff0be6826d README.md: add layer dependencies section
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-08-15 13:00:10 -07:00
Christopher Larson
0f59e55b88 README.md: use a proper md link for the repo
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-08-15 12:59:56 -07:00
Christopher Larson
fcc641bf66 Merge pull request #132 from kergoth/sourcery-taskhash-mismatch
Fix taskhash mismatch and avoid warning in gcc-sanitizers
2016-06-20 15:53:30 -07:00
Christopher Larson
e0f19e8d3f gcc-sanitizers-external: add missing packagedata dep on libc
Files are packaged which need libc libraries, so we need the packagedata so
shlibs can find them.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-06-20 15:27:00 -07:00
Christopher Larson
f19e1729fd gcc-runtime-external: align with gcc-runtime.inc
This also avoids the taskhash/basehash mismatch.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-06-20 15:26:37 -07:00
Christopher Larson
26587ec6d6 Merge pull request #131 from kergoth/python3
Updates for python 3
2016-06-13 12:44:54 -07:00
Christopher Larson
d8e48d2852 gcc-runtime: for now, avoid python names for vars
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-06-07 09:23:16 -07:00
Christopher Larson
6075796a1b gcc-runtime: avoid early expansion of the depends flags
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-06-07 09:22:39 -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
ea5aec7ba7 oe.external: use bb.process.run
oe.path.check_output was returning a bytes, not an str. Switch to bb.process
to resolve issues with python3.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-06-02 08:03:17 -07:00
Noor-Ahsan
3262087a71 Merge pull request #130 from kergoth/do_install_append_fixup
external-toolchain: automatically deal with do_install_append
2016-05-19 12:19:20 +05: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
Noor-Ahsan
856c6e54c6 Merge pull request #129 from kergoth/cedar-merge
Merge from cedar
2016-03-29 12:02:58 +05:00
Christopher Larson
dc7560396c Merge remote-tracking branch 'origin/cedar' into cedar-merge
* origin/cedar:
  tcmode-external-sourcery: Add MGLS_LICENSE_FILE if not found in environment

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-03-25 20:08:44 -07:00
Noor-Ahsan
b15b942a36 Merge pull request #128 from kergoth/external-as-needed
tcmode: use -Wl,--as-needed
2016-03-21 13:46:55 +05:00
Christopher Larson
d075fdc52f tcmode: use -Wl,--as-needed
There's no reason not to make use of it, and it's used by default with the
internal toolchain, so this aligns us closer to that.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-03-18 17:06:05 -07:00
Christopher Larson
47779f4795 Merge pull request #125 from kergoth/improve-missing-binary-error 2016-03-15 08:43:05 -07:00
Christopher Larson
f0e502f961 Merge pull request #127 from kergoth/python3-build-fix
python3: fix build due to HOST_SYS vs HOST_PREFIX delta
2016-03-14 11:29:31 -07:00
Christopher Larson
7a8c555384 python3: fix build due to HOST_SYS vs HOST_PREFIX delta
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-03-13 22:13:35 -07:00
Noor-Ahsan
deff04620d Merge pull request #126 from sharidas/mgls-lincense-file-fix
tcmode-external-sourcery: Add MGLS_LICENSE_FILE if not found in envir…
2016-03-11 15:05:01 +05:00
Noor-Ahsan
6d0b8b4daa Merge pull request #124 from kergoth/pass-license-to-sgxx-glibc-test
Pass *_LICENSE_FILE to gcc in msgxx-glibc test
2016-03-11 12:50:22 +05:00
Sujith Haridasan
d2c9b9ca7c tcmode-external-sourcery: Add MGLS_LICENSE_FILE if not found in environment
Add MGLS_LICESNE_FILE and LM_LICENSE_FILE if not found in environment.

JIRA: SB-6778

Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
2016-03-11 11:52:46 +05:30
Christopher Larson
d2b234e5d3 Pass *_LICENSE_FILE to gcc in msgxx-glibc test
This can fix a failure to pick up the needed argument for our flags.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-03-09 20:04:02 -07:00
Christopher Larson
96866fa35b Improve the error for missing gcc binary
Old messages:

    WARNING: EXTERNAL_TARGET_SYS == TARGET_SYS. This indicates that the prefixes specified by EXTERNAL_TARGET_SYSTEMS were not found.
    ERROR: EXTERNAL_TOOLCHAIN gcc path '<external-toolchain>/bin/arm-mel-linux-gnueabi-gcc' does not exist

New message:

    ERROR: Unable to locate prefixed gcc binary for arm-mel-linux-gnueabi in <external-toolchain>/bin

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-03-09 20:03:39 -07:00
Christopher Larson
dad703c052 Merge pull request #123 from kergoth/set-baselib
Set BASELIB rather than baselib
2016-03-08 13:42:17 -07:00
Christopher Larson
8ce4d4c958 Set BASELIB rather than baselib
We get build failures otherwise.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-03-08 13:34:12 -07:00
Christopher Larson
5d9162ee0a Merge pull request #122 from kergoth/ade-work
nativesdk-external-script fixes / rename
2016-02-23 10:27:41 -07:00
Christopher Larson
26e7e8a719 Switch nativesdk-external-script to target
This alters the vars for the cross-compiler, not the build tools, so this is
most appropriate, and is one less thing to have in TOOLCHAIN_HOST_TASK.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-02-20 11:14:29 -07:00
Christopher Larson
8bce5b8c3c nativesdk-external-script: set INHIBIT_DEFAULT_DEPS
This is a script -- we don't want to suck in the toolchain. I thought about
also pulling in allarch, but I don't know how that interacts with nativesdk
yet.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-02-18 16:51:03 -07:00
Christopher Larson
8d0f90e1dd Merge pull request #120 from kergoth/add-missing-expand-flags
Add missing expand flags
2016-02-16 20:41: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
3dc8c03afe Merge pull request #119 from kergoth/sb-6527d
tcmode: define LDEMULATION_x86-64
2016-02-05 10:12:49 -07:00
Christopher Larson
bff6639c33 tcmode: define LDEMULATION_x86-64
Work around failure in 'perf' due to use of ld rather than gcc to link.

JIRA: SB-6527

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-02-01 16:41:12 -07:00