File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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