Add code to build the old version of libpcap libpcap.so.0.8 for ap51-flash individually

This commit is contained in:
floh1111 2012-06-08 12:53:58 +00:00
parent 049ea9666a
commit c1d2568f21
2 changed files with 8 additions and 0 deletions

View File

@ -201,6 +201,13 @@ flash() {
echo "In some cases you have to set a symlink to libpcap to make flashing work (Tim told me that it is evil if I do that for you):"
echo "ln -s /usr/lib/libpcap.so.1.1.1 /usr/lib/libpcap.so.0.8"
cd ./flash_tools/fonera-flash/
./build_libpcap.sh
cd ../../
LD_LIBRARY_PATH=`pwd`flash_tools/fonera-flash/libpcap-0.8.1/
export LD_LIBRARY_PATH
arch=`uname -m`
./flash_tools/fonera-flash/ap51-flash-$arch $2 ./bin/openwrt-$1-root.squashfs ./bin/openwrt-$1-vmlinux.lzma freifunc
;;

View File

@ -9,4 +9,5 @@ sed -i -e "s/@MAJOR@/`awk -F '.' '{ print $1 }' VERSION`/" -e "s/@MINOR
make
mkdir pkg
make DESTDIR=./pkg install
cp ./pkg/usr/local/lib/libpcap.so.0.8 ./
cd ..