LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2024-10-29 ba226d945dd784aa21c70584c464a11e890d2b90
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