mirror of https://github.com/thesofproject/sof.git
29 lines
401 B
Bash
Executable File
29 lines
401 B
Bash
Executable File
#!/bin/bash
|
|
|
|
./autogen.sh
|
|
|
|
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
|