From c35ac6f2aad2ebe9d7cb5ca461822f0635af3798 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 23 Sep 2019 00:28:38 +0800
Subject: [PATCH] update setup_env.sh shell script, add install libssl-dev for dtc
---
3rdparty/dnsmasq/build.sh | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/3rdparty/dnsmasq/build.sh b/3rdparty/dnsmasq/build.sh
index a92b1ee..373c68b 100755
--- a/3rdparty/dnsmasq/build.sh
+++ b/3rdparty/dnsmasq/build.sh
@@ -9,9 +9,9 @@
PREFIX_PATH=`pwd`/../install/bin
-if [ -z $CROSSTOOL ] ; then
- CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-
-fi
+LYFTP_SRC=ftp://master.iot-yun.club/src/
+
+CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux-
function msg_banner()
{
@@ -60,12 +60,14 @@
PACK_SUFIX=tar.gz
if [ -f ${PREFIX_PATH}/dnsmasq ] ; then
+ msg_banner "$SRC_NAME already compile and installed"
return 0;
fi
msg_banner "Start donwload $SRC_NAME "
if [ ! -f ${SRC_NAME}.${PACK_SUFIX} ] ; then
- wget http://www.thekelleys.org.uk/dnsmasq/${SRC_NAME}.${PACK_SUFIX}
+ #wget http://www.thekelleys.org.uk/dnsmasq/${SRC_NAME}.${PACK_SUFIX}
+ wget $LYFTP_SRC/$SRC_NAME.$PACK_SUFIX
check_result "ERROR: download ${SRC_NAME} failure"
fi
@@ -78,7 +80,8 @@
check_result "ERROR: compile ${SRC_NAME} failure"
${STRIP} src/dnsmasq
- cp src/dnsmasq ${PREFIX_PATH} ../
+ cp src/dnsmasq ../
+ cp src/dnsmasq ${PREFIX_PATH}
cd -
}
--
Gitblit v1.9.1