Skip to content

Commit 96aa24c

Browse files
committed
scripts: add rimage build scripts local install
Add local install for rimage-build.sh Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
1 parent ccaff5c commit 96aa24c

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

scripts/rimage-build.sh

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
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

0 commit comments

Comments
 (0)