From 06b576f828ea4a485ae32c289704140e5c36a48b Mon Sep 17 00:00:00 2001 From: Janusz Jankowski Date: Fri, 18 Jan 2019 13:26:42 +0100 Subject: [PATCH] cmake: update host-build-all.sh Signed-off-by: Janusz Jankowski --- scripts/host-build-all.sh | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/scripts/host-build-all.sh b/scripts/host-build-all.sh index 9544802f8..392c681f7 100755 --- a/scripts/host-build-all.sh +++ b/scripts/host-build-all.sh @@ -3,30 +3,8 @@ # fail on any errors set -e -# parse the args -for args in $@ -do - if [[ "$args" == "-l" ]] - 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 +mkdir build_host +cd build_host +cmake -DBUILD_HOST=ON -DCMAKE_INSTALL_PREFIX=install .. +make -j4 make install