scripts: add rimage build scripts local install

Add local install for rimage-build.sh

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
This commit is contained in:
Pan Xiuli 2018-10-09 15:09:44 +08:00
parent ccaff5c87e
commit 96aa24c2d9
1 changed files with 25 additions and 3 deletions

View File

@ -1,6 +1,28 @@
#!/bin/sh
#!/bin/bash
./autogen.sh
./configure --enable-rimage
make
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