From 91eb15abeb20457b93b86c4cfb3d653e206c27c9 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Fri, 21 Aug 2020 21:19:32 +0800
Subject: [PATCH] update openssl and hostapd_supplicant build shell script
---
3rdparty/openssl/build.sh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/3rdparty/openssl/build.sh b/3rdparty/openssl/build.sh
index 00ed19a..7d8e460 100755
--- a/3rdparty/openssl/build.sh
+++ b/3rdparty/openssl/build.sh
@@ -7,6 +7,8 @@
#| 1, Initialize 1.0.0 on 2011.04.12
#+--------------------------------------------------------------------------------------------
+JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l`
+
PROJ_PATH=`pwd`
PREFIX_PATH=`pwd`/../install
mkdir -p ${PREFIX_PATH}/{bin,sbin,include,lib}
@@ -62,6 +64,7 @@
PACK_SUFIX=tar.gz
if [ -f ${PREFIX_PATH}/lib/libcrypto.a ] ; then
+ msg_banner "$SRC_NAME already compile and installed"
return 0;
fi
@@ -78,7 +81,7 @@
CROSS_COMPILE=${CROSSTOOL} ./Configure \
threads -shared -no-zlib --prefix=$PREFIX_PATH --openssldir=$PREFIX_PATH linux-armv4
- make && make install
+ make -j${JOBS} && make install
check_result "ERROR: compile ${SRC_NAME} failure"
cd -
--
Gitblit v1.9.1