mirror of https://github.com/thesofproject/sof.git
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:
parent
ccaff5c87e
commit
96aa24c2d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue