This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (52 loc) · 2.34 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: c
dist: xenial
git:
depth: 20
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install -y python-ply python-git libelf-dev codespell sparse fakeroot gcc-7 g++-7 gcc-aarch64-linux-gnu
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- git clone https://github.com/thesofproject/kconfig.git
jobs:
include:
- if: type = pull_request
name: checkpatch
script:
- SHA_PR=`git log --oneline -1 | sed -rn "s/.*Merge (.*) into.*/\1/p"`
- SHA_MAIN=`git log --oneline -1 | sed -rn "s/.*Merge .* into (.*)/\1/p"`
- scripts/checkpatch.pl --strict --codespell -g $SHA_MAIN..$SHA_PR
- name: "Code Scan"
script:
- sudo apt-get install automake ocaml-native-compilers ocaml-findlib
- wget https://github.com/coccinelle/coccinelle/archive/1.0.7.tar.gz
- tar -xf 1.0.7.tar.gz
- cd coccinelle-1.0.7 && ./autogen && ./configure && make && sudo make install
- cd -
- export ARCH=x86_64
- make defconfig
- scripts/kconfig/merge_config.sh .config kconfig/base-defconfig kconfig/sof-defconfig kconfig/hdaudio-codecs-defconfig
- make modules_prepare
- make M=sound/soc/sof C=2
- make coccicheck MODE=report M=sound/soc/sof
- name: "BUILD SOF Kernel x86_64"
script:
- export ARCH=x86_64 KCFLAGS="-Wall -Werror"
- make defconfig
- scripts/kconfig/merge_config.sh .config kconfig/base-defconfig kconfig/sof-defconfig
- make modules_prepare
- make -j`getconf _NPROCESSORS_ONLN` M=sound/soc/sof W=1
- make -j`getconf _NPROCESSORS_ONLN`
- make -j`getconf _NPROCESSORS_ONLN` bindeb-pkg
- name: "BUILD SST Kernel x86_64"
script:
- export ARCH=x86_64
- make defconfig
- scripts/kconfig/merge_config.sh .config kconfig/base-defconfig kconfig/sst-defconfig
- KCFLAGS="-Wall -Werror" make -j`getconf _NPROCESSORS_ONLN`
- name: "BUILD SOF Kernel arm64"
script:
- export ARCH=arm64 CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
- make defconfig
- scripts/kconfig/merge_config.sh .config kconfig/nobloat-imx-defconfig kconfig/sof-defconfig
- KCFLAGS="-Wall -Werror" make -j`getconf _NPROCESSORS_ONLN`