cmake: update host-build-all.sh

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2019-01-18 13:26:42 +01:00 committed by Liam Girdwood
parent 9840ecbbfe
commit 06b576f828
1 changed files with 4 additions and 26 deletions

View File

@ -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