| | |
| | | |
| | | LYFTP_SRC=ftp://master.iot-yun.club/src/ |
| | | |
| | | if [ -z $CROSSTOOL ] ; then |
| | | CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- |
| | | fi |
| | | CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux- |
| | | |
| | | SYSROOT=`${CROSSTOOL}gcc -print-sysroot` |
| | | |
| | | function msg_banner() |
| | | { |
| | |
| | | SRC_NAME=ppp-2.4.7 |
| | | PACK_SUFIX=tar.gz |
| | | |
| | | if [ -f ${PREFIX_PATH}/ethtool ] ; then |
| | | if [ -f ${PREFIX_PATH}/pppd ] ; then |
| | | msg_banner "$SRC_NAME already compile and installed" |
| | | return 0; |
| | | fi |
| | | |
| | |
| | | patch -p1 < ../patch/${SRC_NAME}.patch |
| | | |
| | | sed -i -e "s|.*CC = .*|CC=${CROSSTOOL}gcc|g" pppd/Makefile.linux |
| | | sed -i -e "s|^OPENSSL_INCLUDE_DIR=.*|OPENSSL_INCLUDE_DIR=${SYSROOT}/usr/include/openssl|g" pppd/Makefile.linux |
| | | sed -i -e "s|.*CC = .*|CC=${CROSSTOOL}gcc|g" chat/Makefile.linux |
| | | |
| | | cd pppd |