public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] .travis.yml: build u-boot on travis-ci
Date: Wed, 05 Nov 2014 18:25:23 +0100	[thread overview]
Message-ID: <545A5D83.1080600@gmail.com> (raw)
In-Reply-To: <1415194714-13192-1-git-send-email-r.meier@siemens.com>



On 05.11.2014 14:38, Roger Meier wrote:
> Signed-off-by: Roger Meier <r.meier@siemens.com>
> ---
>  .travis.yml |   86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 86 insertions(+)
>  create mode 100644 .travis.yml
> 
> diff --git a/.travis.yml b/.travis.yml
> new file mode 100644
> index 0000000..027aff2
> --- /dev/null
> +++ b/.travis.yml
> @@ -0,0 +1,86 @@
> +# Copyright Roger Meier <r.meier@siemens.com>
> +# SPDX-License-Identifier:	GPL-2.0+
> +
> +# build U-Boot on Travis CI - https://travis-ci.org/
> +
> +language: c
> +
> +cache:
> + - apt
> +
> +install:
> + - sudo apt-get install -qq cppcheck sloccount sparse bc device-tree-compiler gcc-arm-linux-gnueabi

does Ubuntu's device-tree-compiler work for you with current mainline? 
Actually Ubuntu 12.04 ships dtc-1.3 and U-Boot requires at least dtc-1.4. 
I need following fragments to get sandbox working:

install:
  - git clone --depth=1 https://git.kernel.org/pub/scm/utils/dtc/dtc.git /tmp/dtc
  - make -j4 -C /tmp/dtc

script:
  - make sandbox_defconfig
  - make -j4

env:
  global:
    - PATH=$PATH:/tmp/dtc

> +
> +env:
> +  global:
> +    - BUILD_DIR=build
> +    - DOWNLOAD_URL=""
> +    - INSTALL_CMD=""
> +    - CROSS_COMPILE=""
> +    - HOSTCC  = "cc"
> +    - HOSTCXX = "c++"
> +
> +before_script:
> + - if [[ "$DOWNLOAD_URL" != "" ]]; then wget $DOWNLOAD_URL ; fi
> + - if [[ "$INSTALL_CMD" != "" ]]; then $INSTALL_CMD ; fi
> +
> +script:
> + - export BUILD_NCPUS="`grep processor /proc/cpuinfo | wc -l`"
> + - echo "BUILD on" $BUILD_NCPUS "cpu's"
> + - echo $TEST_CMD && $TEST_CMD
> +
> +matrix:
> +  include:
> +# arm and powerpc have too many boards for th 50min time limit
> +# so we need to build by vendor
> +    - env:
> +        - TEST_CMD="./MAKEALL -a arm -v atmel"
> +          CROSS_COMPILE="arm-linux-gnueabi-"
> +    - env:
> +        - TEST_CMD="./MAKEALL -a arm -v denx"
> +          CROSS_COMPILE="arm-linux-gnueabi-"
> +    - env:
> +        - TEST_CMD="./MAKEALL -a arm -v freescale"
> +          CROSS_COMPILE="arm-linux-gnueabi-"
> +    - env:
> +        - TEST_CMD="./MAKEALL -a arm -v siemens"
> +          CROSS_COMPILE="arm-linux-gnueabi-"
> +    - env:
> +        - TEST_CMD="./MAKEALL -a arm -v ti"
> +          CROSS_COMPILE="arm-linux-gnueabi-"
> +    - env:
> +        - TEST_CMD="./MAKEALL -a x86"
> +        - HOSTCC  = "gcc"
> +        - HOSTCXX  = "g++"
> +    - env:
> +        - TEST_CMD="./MAKEALL -a x86"
> +        - HOSTCC  = "clang"
> +        - HOSTCXX  = "clang++"
> +    - env:
> +        - TEST_CMD="./MAKEALL -a powerpc -v freescale"
> +          CROSS_COMPILE="/opt/eldk-5.4/powerpc/sysroots/i686-eldk-linux/usr/bin/powerpc-linux/powerpc-"
> +          DOWNLOAD_URL="ftp://ftp.denx.de/pub/eldk/5.4/targets/powerpc/eldk-eglibc-i686-powerpc-toolchain-gmae-5.4.sh"
> +          INSTALL_CMD="sh eldk-eglibc-i686-powerpc-toolchain-gmae-5.4.sh -y"
> +    - env:
> +        - TEST_CMD="./MAKEALL -a mips"
> +          CROSS_COMPILE="/opt/eldk-5.4/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips-linux-"
> +          DOWNLOAD_URL="ftp://ftp.denx.de/pub/eldk/5.4/targets/mips/eldk-eglibc-i686-mips-toolchain-gmae-5.4.sh"
> +          INSTALL_CMD="sh eldk-eglibc-i686-mips-toolchain-gmae-5.4.sh -y"
> +    - env:
> +        - TEST_CMD="./MAKEALL -a arm -v denx -v siemens"
> +          CROSS_COMPILE="/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/bin/armv7ahf-vfp-neon-linux-gnueabi/arm-linux-gnueabi-"
> +          DOWNLOAD_URL="ftp://ftp.denx.de/pub/eldk/5.4/targets/armv7a-hf/eldk-eglibc-i686-arm-toolchain-gmae-5.4.sh"
> +          INSTALL_CMD="sh eldk-eglibc-i686-arm-toolchain-gmae-5.4.sh -y"
> +    - env:
> +        - TEST_CMD="cppcheck --force --quiet ."
> +    - env:
> +        - TEST_CMD="grep -r TODO *"
> +    - env:
> +        - TEST_CMD="grep -r FIXME *"
> +    - env:
> +        - TEST_CMD="grep -r HACK *"
> +    - env:
> +        - TEST_CMD="sloccount ."
> +
> +notifications:
> +  email: false
> 

-- 
- Daniel

  parent reply	other threads:[~2014-11-05 17:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05 13:38 [U-Boot] [PATCH] .travis.yml: build u-boot on travis-ci Roger Meier
2014-11-05 15:10 ` Meier, Roger
2014-11-05 15:51   ` Tom Rini
2014-11-05 17:16     ` Meier, Roger
2014-11-05 16:57 ` Wolfgang Denk
2014-11-05 17:25 ` Daniel Schwierzeck [this message]
2014-11-14 13:58 ` [U-Boot] [PATCH v2] " Roger Meier
2014-11-16 11:05   ` Andreas Färber
2014-11-18 10:19     ` Meier, Roger
2014-11-19  6:07   ` [U-Boot] [PATCH v3] " Roger Meier
2014-11-19  6:31     ` Wolfgang Denk
2014-11-19  6:40     ` Wolfgang Denk
2014-11-19 14:26 ` [U-Boot] [PATCH v4] " Roger Meier
2015-01-15 14:57   ` [U-Boot] [U-Boot,v4] " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=545A5D83.1080600@gmail.com \
    --to=daniel.schwierzeck@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox