mirror of https://github.com/thesofproject/sof.git
cmake: update host-build-all.sh
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
parent
9840ecbbfe
commit
06b576f828
|
@ -3,30 +3,8 @@
|
||||||
# fail on any errors
|
# fail on any errors
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# parse the args
|
mkdir build_host
|
||||||
for args in $@
|
cd build_host
|
||||||
do
|
cmake -DBUILD_HOST=ON -DCMAKE_INSTALL_PREFIX=install ..
|
||||||
if [[ "$args" == "-l" ]]
|
make -j4
|
||||||
then
|
|
||||||
BUILD_LOCAL=1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# run autogen.sh
|
|
||||||
./autogen.sh
|
|
||||||
|
|
||||||
pwd=`pwd`
|
|
||||||
|
|
||||||
# Build library for host platform architecture
|
|
||||||
if [[ "x$BUILD_LOCAL" == "x" ]]
|
|
||||||
then
|
|
||||||
./configure --with-arch=host --enable-library=yes --host=x86_64-unknown-linux-gnu
|
|
||||||
else
|
|
||||||
# make sure host lib is build in local folder
|
|
||||||
echo "BUILD in local folder!"
|
|
||||||
rm -rf $pwd/local/
|
|
||||||
./configure --with-arch=host --enable-library=yes --host=x86_64-unknown-linux-gnu --prefix=$pwd/host-lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
make
|
|
||||||
make install
|
make install
|
||||||
|
|
Loading…
Reference in New Issue