From e1e55f02e247c08c44c69f356e4f5394eeb9183e Mon Sep 17 00:00:00 2001 From: wuliaokanke Date: Thu, 8 Dec 2022 17:08:39 +0800 Subject: [PATCH] add build.sh cleanup all --- build.sh | 51 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 13 deletions(-) diff --git a/build.sh b/build.sh index 954d1f6..1a746ea 100644 --- a/build.sh +++ b/build.sh @@ -1,13 +1,38 @@ -cd kae_driver -make -j -make install -cd ../uadk -sh autogen.sh -sh conf.sh -make -j -make install -cd ../kae_engine -autoreconf -i -./configure --libdir=/usr/local/lib/engines-1.1/ --enable-kae -make -j -make install \ No newline at end of file +#!/bin/sh +set -e + +function main() +{ + echo $1 + if [ "$1" = "all" ];then + echo "build all" + cd kae_driver + make -j + make install + cd ../uadk + sh autogen.sh + sh conf.sh + make -j + make install + cd ../kae_engine + export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig + autoreconf -i + ./configure --libdir=/usr/local/lib/engines-1.1/ --enable-kae + make -j + make install + elif [ "$1" = "cleanup" ];then + echo "cleanup all" + cd kae_driver + make uninstall + cd ../uadk + make uninstall + cd ../kae_engine + make uninstall + + else + echo "not support cmd, please input all/cleanup" + fi +} + +main "$@" +exit $? -- Gitee