* [U-Boot] [PATCH] travis: Add sandbox/clang-7 support
@ 2018-10-07 18:20 Tom Rini
2018-10-09 3:40 ` Simon Glass
2018-10-20 19:11 ` [U-Boot] " Tom Rini
0 siblings, 2 replies; 5+ messages in thread
From: Tom Rini @ 2018-10-07 18:20 UTC (permalink / raw)
To: u-boot
To make testing with clang support easier, add sandbox/clang-7
combination to our testing matrix. To facilitate this, switch to using
the "sources" method that the travis.yml file supports to list
additional repositories and add the official one for llvm-7. Due to
buildman not supporting using clang at this time add logic to manually
build a single sandbox configuration in the expected output directory so
that we can still invoke all of our tests.
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
.travis.yml | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 2b759c9d6865..1c2dfbb8e29b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,6 +10,9 @@ language: c
addons:
apt:
+ sources:
+ - ubuntu-toolchain-r-test
+ - llvm-toolchain-trusty-7
packages:
- cppcheck
- sloccount
@@ -28,11 +31,8 @@ addons:
- device-tree-compiler
- lzop
- liblz4-tool
-
-before_install:
- - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- - sudo apt-get update -q
- - sudo apt-get install libisl15 -y
+ - libisl15
+ - clang-7
install:
# Clone uboot-test-hooks
@@ -105,8 +105,16 @@ script:
# Comments must be outside the command strings below, or the Travis parser
# will get confused.
#
- # Exit code 129 means warnings only.
- - if [[ "${BUILDMAN}" != "" ]]; then
+ # From buildman, exit code 129 means warnings only. If we've been asked to
+ # use clang only do one configuration.
+ - if [[ "${TOOLCHAIN}" == "clang" ]]; then
+ ret=0;
+ make O=../.bm-work/${TEST_PY_BD} HOSTCC=clang-7 CC=clang-7 -j$(nproc)
+ KCFLAGS=-Werror sandbox_config all || ret=$?;
+ if [[ $ret -ne 0 ]]; then
+ exit $ret;
+ fi;
+ elif [[ "${BUILDMAN}" != "" ]]; then
ret=0;
tools/buildman/buildman -P -E ${BUILDMAN} || ret=$?;
if [[ $ret -ne 0 && $ret -ne 129 ]]; then
@@ -322,6 +330,11 @@ matrix:
- TEST_PY_BD="sandbox"
BUILDMAN="^sandbox$"
TOOLCHAIN="x86_64"
+ - name: "test/py sandbox with clang"
+ env:
+ - TEST_PY_BD="sandbox"
+ BUILDMAN="^sandbox$"
+ TOOLCHAIN="clang"
- name: "test/py sandbox_spl"
env:
- TEST_PY_BD="sandbox_spl"
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] travis: Add sandbox/clang-7 support
2018-10-07 18:20 [U-Boot] [PATCH] travis: Add sandbox/clang-7 support Tom Rini
@ 2018-10-09 3:40 ` Simon Glass
2018-10-09 11:35 ` Tom Rini
2018-10-20 19:11 ` [U-Boot] " Tom Rini
1 sibling, 1 reply; 5+ messages in thread
From: Simon Glass @ 2018-10-09 3:40 UTC (permalink / raw)
To: u-boot
Hi Tom,
On 7 October 2018 at 12:20, Tom Rini <trini@konsulko.com> wrote:
>
> To make testing with clang support easier, add sandbox/clang-7
> combination to our testing matrix. To facilitate this, switch to using
> the "sources" method that the travis.yml file supports to list
> additional repositories and add the official one for llvm-7. Due to
> buildman not supporting using clang at this time add logic to manually
> build a single sandbox configuration in the expected output directory so
> that we can still invoke all of our tests.
>
> Cc: Simon Glass <sjg@chromium.org>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> .travis.yml | 27 ++++++++++++++++++++-------
> 1 file changed, 20 insertions(+), 7 deletions(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
What prevents buildman supporting clang?
- Simon
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] travis: Add sandbox/clang-7 support
2018-10-09 3:40 ` Simon Glass
@ 2018-10-09 11:35 ` Tom Rini
2018-10-19 3:27 ` Simon Glass
0 siblings, 1 reply; 5+ messages in thread
From: Tom Rini @ 2018-10-09 11:35 UTC (permalink / raw)
To: u-boot
On Mon, Oct 08, 2018 at 09:40:51PM -0600, Simon Glass wrote:
> Hi Tom,
>
> On 7 October 2018 at 12:20, Tom Rini <trini@konsulko.com> wrote:
> >
> > To make testing with clang support easier, add sandbox/clang-7
> > combination to our testing matrix. To facilitate this, switch to using
> > the "sources" method that the travis.yml file supports to list
> > additional repositories and add the official one for llvm-7. Due to
> > buildman not supporting using clang at this time add logic to manually
> > build a single sandbox configuration in the expected output directory so
> > that we can still invoke all of our tests.
> >
> > Cc: Simon Glass <sjg@chromium.org>
> > Signed-off-by: Tom Rini <trini@konsulko.com>
> > ---
> > .travis.yml | 27 ++++++++++++++++++++-------
> > 1 file changed, 20 insertions(+), 7 deletions(-)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
> What prevents buildman supporting clang?
Well, I couldn't convince buildman to accept "/usr/bin/clang-7" as the
full and entire path to the toolchain to use. Ideas? Thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181009/ce7779eb/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] travis: Add sandbox/clang-7 support
2018-10-09 11:35 ` Tom Rini
@ 2018-10-19 3:27 ` Simon Glass
0 siblings, 0 replies; 5+ messages in thread
From: Simon Glass @ 2018-10-19 3:27 UTC (permalink / raw)
To: u-boot
Hi Tom,
On 9 October 2018 at 05:35, Tom Rini <trini@konsulko.com> wrote:
> On Mon, Oct 08, 2018 at 09:40:51PM -0600, Simon Glass wrote:
>> Hi Tom,
>>
>> On 7 October 2018 at 12:20, Tom Rini <trini@konsulko.com> wrote:
>> >
>> > To make testing with clang support easier, add sandbox/clang-7
>> > combination to our testing matrix. To facilitate this, switch to using
>> > the "sources" method that the travis.yml file supports to list
>> > additional repositories and add the official one for llvm-7. Due to
>> > buildman not supporting using clang at this time add logic to manually
>> > build a single sandbox configuration in the expected output directory so
>> > that we can still invoke all of our tests.
>> >
>> > Cc: Simon Glass <sjg@chromium.org>
>> > Signed-off-by: Tom Rini <trini@konsulko.com>
>> > ---
>> > .travis.yml | 27 ++++++++++++++++++++-------
>> > 1 file changed, 20 insertions(+), 7 deletions(-)
>>
>> Reviewed-by: Simon Glass <sjg@chromium.org>
>>
>> What prevents buildman supporting clang?
>
> Well, I couldn't convince buildman to accept "/usr/bin/clang-7" as the
> full and entire path to the toolchain to use. Ideas? Thanks!
No, sadly it looks like we need to add special support for clang - as
per README.clang. We need to set CC and CROSS_COMPILE, at least.
Regards,
Simon
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] travis: Add sandbox/clang-7 support
2018-10-07 18:20 [U-Boot] [PATCH] travis: Add sandbox/clang-7 support Tom Rini
2018-10-09 3:40 ` Simon Glass
@ 2018-10-20 19:11 ` Tom Rini
1 sibling, 0 replies; 5+ messages in thread
From: Tom Rini @ 2018-10-20 19:11 UTC (permalink / raw)
To: u-boot
On Sun, Oct 07, 2018 at 02:20:30PM -0400, Tom Rini wrote:
> To make testing with clang support easier, add sandbox/clang-7
> combination to our testing matrix. To facilitate this, switch to using
> the "sources" method that the travis.yml file supports to list
> additional repositories and add the official one for llvm-7. Due to
> buildman not supporting using clang at this time add logic to manually
> build a single sandbox configuration in the expected output directory so
> that we can still invoke all of our tests.
>
> Cc: Simon Glass <sjg@chromium.org>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181020/4e1c1f29/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-10-20 19:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-07 18:20 [U-Boot] [PATCH] travis: Add sandbox/clang-7 support Tom Rini
2018-10-09 3:40 ` Simon Glass
2018-10-09 11:35 ` Tom Rini
2018-10-19 3:27 ` Simon Glass
2018-10-20 19:11 ` [U-Boot] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.