1 # Copyright Roger Meier <r.meier@siemens.com>
2 # SPDX-License-Identifier: GPL-2.0+
4 # build U-Boot on Travis CI - https://travis-ci.org/
22 - gcc-powerpc-linux-gnu
23 - gcc-arm-linux-gnueabihf
27 # install latest device tree compiler
28 - git clone --depth=1 git://git.kernel.org/pub/scm/utils/dtc/dtc.git /tmp/dtc
29 - make -j4 -C /tmp/dtc
30 # prepare buildman environment
31 - export BUILDMAN_ROOT="root:"
32 - echo -e "[toolchain]\n${BUILDMAN_ROOT} /usr" > ~/.buildman
33 - echo -e "\n[toolchain-alias]\nblackfin = bfin\nsh = sh4\nopenrisc = or32" >> ~/.buildman
35 - virtualenv /tmp/venv
36 - . /tmp/venv/bin/activate
47 # install toolchains based on TOOLCHAIN} variable
48 - if [[ "${TOOLCHAIN}" == *aarch64* ]]; then ./tools/buildman/buildman --fetch-arch aarch64 ; fi
49 - if [[ "${TOOLCHAIN}" == *avr32* ]]; then ./tools/buildman/buildman --fetch-arch avr32 ; fi
50 - if [[ "${TOOLCHAIN}" == *bfin* ]]; then ./tools/buildman/buildman --fetch-arch bfin ; fi
51 - if [[ "${TOOLCHAIN}" == *m68k* ]]; then ./tools/buildman/buildman --fetch-arch m68k ; fi
52 - if [[ "${TOOLCHAIN}" == *microblaze* ]]; then ./tools/buildman/buildman --fetch-arch microblaze ; fi
53 - if [[ "${TOOLCHAIN}" == *mips* ]]; then ./tools/buildman/buildman --fetch-arch mips ; fi
54 - if [[ "${TOOLCHAIN}" == *or32* ]]; then ./tools/buildman/buildman --fetch-arch or32 ; fi
55 - if [[ "${TOOLCHAIN}" == *sh4* ]]; then ./tools/buildman/buildman --fetch-arch sh4 ; fi
56 - if [[ "${TOOLCHAIN}" == *x86_64* ]]; then ./tools/buildman/buildman --fetch-arch x86_64 ; fi
57 - if [[ "${TOOLCHAIN}" == *xtensa* ]]; then ./tools/buildman/buildman --fetch-arch xtensa ; fi
60 # Exit code 129 means warnings only.
61 - if [[ "${BUILDMAN}" != "" ]]; then
63 tools/buildman/buildman ${BUILDMAN};
64 if [[ "$?" == "0" || "$?" == "129" ]]; then
73 # we need to build by vendor due to 50min time limit for builds
74 # each env setting here is a dedicated build
86 - BUILDMAN="atmel -x avr32"
95 - BUILDMAN="freescale -x powerpc,m68k,aarch64"
97 - BUILDMAN="sandbox x86"
100 - export BUILDMAN_X86="x86:";
101 echo -e "\n[toolchain-prefix]\n${BUILDMAN_X86} ${HOME}/.buildman-toolchains/gcc-4.9.0-nolibc/x86_64-linux/bin/x86_64-linux-" >> ~/.buildman
103 - BUILDMAN="kirkwood"
108 - BUILDMAN="microblaze"
109 TOOLCHAIN="microblaze"
124 - BUILDMAN="mpc85xx -x freescale"
126 - BUILDMAN="mpc85xx -x t208xrdb -x t4qds -x t102* -x p1_p2_rdb_pc -x p1010rdb -x corenet_ds -x b4860qds -x sbc8548 -x bsc91*"
128 - BUILDMAN="t208xrdb t4qds t102*"
130 - BUILDMAN="p1_p2_rdb_pc p1010rdb"
132 - BUILDMAN="corenet_ds b4860qds sbc8548 bsc91*"
151 # QA jobs for code analytics
152 # static code analysis with cppcheck (we can add --enable=all later)
154 - cppcheck --force --quiet --inline-suppr .
155 # search for TODO within source tree
158 # search for FIXME within source tree
161 # search for HACK within source tree and ignore HACKKIT board
163 - grep -r HACK . | grep -v HACKKIT
164 # some statistics about the code base
169 - ./test/py/test.py --bd sandbox --build
171 # TODO make it perfect ;-r