From e8d34d11799fc79c7c53bdcd40f9b4ee7be7a2c5 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 25 Sep 2024 17:42:22 +0800 Subject: [PATCH] Merge branch 'master' of ssh://weike-iot.com:2280/framwork --- openlibs/dhcpd/build.sh | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/openlibs/dhcpd/build.sh b/openlibs/dhcpd/build.sh index bcedeac..61477b0 100755 --- a/openlibs/dhcpd/build.sh +++ b/openlibs/dhcpd/build.sh @@ -46,7 +46,7 @@ export OBJDUMP=${CROSS_COMPILE}objdump export STRIP=${CROSS_COMPILE}strip - # export cross configure + # export cross configure export CONFIG_CROSS=" --build=i686-pc-linux --host=arm-linux " # Clear LDFLAGS and CFLAGS @@ -81,16 +81,28 @@ --with-srv-pid-file=/var/run/dhcpd.pid --with-relay-pid-file=/var/run/dhcrelay.pid check_result "ERROR: configure ${SRC_NAME} failure" - make + make check_result "ERROR: compile ${SRC_NAME} failure" ${STRIP} server/${IMG_NAME} - cp server/${IMG_NAME} ${PREFIX_PATH} - cp client/dhclient ${PREFIX_PATH} + cp server/${IMG_NAME} ${PREFIX_PATH} + cp client/dhclient ${PREFIX_PATH} cd - } +function do_clean() +{ + rm -rf dhcpd* +} + +if [[ $# == 1 && $1 == -c ]] ;then + echo "start clean ${LIB_NAME}" + do_clean + exit; +fi + +exit; export_cross -- Gitblit v1.9.1