File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,13 +2,45 @@ sudo: required
22
33language : c
44
5+ git :
6+ depth : false
7+
58services :
69 - docker
10+ stages :
11+ - compile
12+ - test
13+ - deploy
714
815before_install :
916 - docker pull xiulipan/sof
1017
11- script :
12- - git tag -a v1.2 -m "Travis CI test"
13- - docker run -it -v `pwd`:/home/sof/work/sof.git -v `pwd`/../soft.git:/home/sof/work/soft.git --user `id -u` xiulipan/sof ./scripts/xtensa-build-all.sh -l
14- - docker run -it -v `pwd`:/home/sof/work/sof.git -v `pwd`/../soft.git:/home/sof/work/soft.git --user `id -u` xiulipan/sof ./scripts/host-build-all.sh -l
18+ install :
19+ - docker run -it -v `pwd`:/home/sof/work/sof.git --user `id -u` xiulipan/sof ./scripts/rimage-build.sh -l
20+
21+ jobs :
22+ include :
23+ - stage : compile
24+ name : " BYT Build"
25+ script : docker run -it -v `pwd`:/home/sof/work/sof.git --user `id -u` xiulipan/sof ./scripts/xtensa-build-all.sh -lr byt
26+ - stage : compile
27+ name : " BDW Build"
28+ script : docker run -it -v `pwd`:/home/sof/work/sof.git --user `id -u` xiulipan/sof ./scripts/xtensa-build-all.sh -lr bdw
29+ - stage : compile
30+ name : " HSW Build"
31+ script : docker run -it -v `pwd`:/home/sof/work/sof.git --user `id -u` xiulipan/sof ./scripts/xtensa-build-all.sh -lr hsw
32+ - stage : compile
33+ name : " APL Build"
34+ script : docker run -it -v `pwd`:/home/sof/work/sof.git --user `id -u` xiulipan/sof ./scripts/xtensa-build-all.sh -lr apl
35+ - stage : compile
36+ name : " CNL Build"
37+ script : docker run -it -v `pwd`:/home/sof/work/sof.git --user `id -u` xiulipan/sof ./scripts/xtensa-build-all.sh -lr cnl
38+ - stage : compile
39+ name : " SUE Build"
40+ script : docker run -it -v `pwd`:/home/sof/work/sof.git --user `id -u` xiulipan/sof ./scripts/xtensa-build-all.sh -lr sue
41+ - stage : compile
42+ name : " ICL Build"
43+ script : docker run -it -v `pwd`:/home/sof/work/sof.git --user `id -u` xiulipan/sof ./scripts/xtensa-build-all.sh -lr icl
44+ - stage : compile
45+ name : " Host Build"
46+ script : docker run -it -v `pwd`:/home/sof/work/sof.git --user `id -u` xiulipan/sof ./scripts/host-build-all.sh -l
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22
33./autogen.sh
4- ./configure --enable-rimage
5- make
64
5+ pwd=` pwd`
6+
7+ # parse the args
8+ for args in $@
9+ do
10+ if [[ " $args " == " -l" ]]
11+ then
12+ BUILD_LOCAL=1
13+ fi
14+ done
15+
16+ # make sure rimage is built and aligned with code
17+ if [[ " x$BUILD_LOCAL " == " x" ]]
18+ then
19+ ./configure --enable-rimage
20+ make
21+ sudo make install
22+ else
23+ echo " BUILD in local folder!"
24+ rm -rf $pwd /local/
25+ ./configure --enable-rimage --prefix=$pwd /local
26+ make
27+ make install
28+ fi
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33SUPPORTED_PLATFORMS=(byt cht bdw hsw apl cnl sue icl)
4+ BUILD_RIMAGE=1
5+
6+ pwd=` pwd`
7+
48if [ " $# " -eq 0 ]
59then
610 PLATFORMS=${SUPPORTED_PLATFORMS[@]}
1216 then
1317 BUILD_LOCAL=1
1418
19+ # build all images for chosen targets
20+ if [ " $# " -eq 1 ]
21+ then
22+ PLATFORMS=${SUPPORTED_PLATFORMS[@]}
23+ break
24+ fi
25+ elif [[ " $args " == " -lr" ]]
26+ then
27+ BUILD_LOCAL=1
28+ BUILD_RIMAGE=0
29+
30+ PATH=$pwd /local/bin:$PATH
31+
1532 # build all images for chosen targets
1633 if [ " $# " -eq 1 ]
1734 then
@@ -40,22 +57,22 @@ set -e
4057# run autogen.sh
4158./autogen.sh
4259
43- pwd=` pwd`
44-
45-
4660# make sure rimage is built and aligned with code
47- if [[ " x$BUILD_LOCAL " == " x " ]]
61+ if [[ " x$BUILD_RIMAGE " == " x1 " ]]
4862then
49- ./configure --enable-rimage
50- make
51- sudo make install
52- else
53- echo " BUILD in local folder!"
54- rm -rf $pwd /local/
55- ./configure --enable-rimage --prefix=$pwd /local
56- make
57- make install
58- PATH=$pwd /local/bin:$PATH
63+ if [[ " x$BUILD_LOCAL " == " x" ]]
64+ then
65+ ./configure --enable-rimage
66+ make
67+ sudo make install
68+ else
69+ echo " BUILD in local folder!"
70+ rm -rf $pwd /local/
71+ ./configure --enable-rimage --prefix=$pwd /local
72+ make
73+ make install
74+ PATH=$pwd /local/bin:$PATH
75+ fi
5976fi
6077
6178OLDPATH=$PATH
151168 fi
152169
153170 # update ROOT directory for xt-xcc
154- if [ $XCC == " xt-xcc" ]
171+ if [ " $XCC " == " xt-xcc" ]
155172 then
156173 ROOT=" $XTENSA_BUILDS_DIR /$XTENSA_CORE /xtensa-elf"
157174 export XTENSA_SYSTEM=$XTENSA_BUILDS_DIR /$XTENSA_CORE /config
You can’t perform that action at this time.
0 commit comments