2018-10-09 15:09:44 +08:00
|
|
|
#!/bin/bash
|
2018-04-26 00:48:39 +08:00
|
|
|
|
2018-02-26 04:19:42 +08:00
|
|
|
./autogen.sh
|
|
|
|
|
2018-10-09 15:09:44 +08:00
|
|
|
pwd=`pwd`
|
|
|
|
|
|
|
|
# parse the args
|
|
|
|
for args in $@
|
|
|
|
do
|
|
|
|
if [[ "$args" == "-l" ]]
|
|
|
|
then
|
|
|
|
BUILD_LOCAL=1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# make sure rimage is built and aligned with code
|
|
|
|
if [[ "x$BUILD_LOCAL" == "x" ]]
|
|
|
|
then
|
|
|
|
./configure --enable-rimage
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
else
|
|
|
|
echo "BUILD in local folder!"
|
|
|
|
rm -rf $pwd/local/
|
|
|
|
./configure --enable-rimage --prefix=$pwd/local
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
fi
|