| #!/bin/bash |
| |
| set -e |
| |
| source ../../a5s_linux_sdk/ambarella/build/env/CodeSourcery.env |
| PATH=$PATH:$ARM_LINUX_TOOLCHAIN_DIR/bin |
| |
| TOP=`pwd` |
| |
| CURL=curl-7.38.0 |
| CURL_SOURCE=curl-7.38.0.tar.gz |
| |
| CONFIG="shared" |
| |
| TOP=`pwd` |
| |
| rm -rf dist |
| mkdir -p dist/usr |
| rm -rf build |
| mkdir build |
| pushd build |
| tar zxfv ../$CURL_SOURCE |
| cd $CURL |
| |
| ./configure CFLAGS='-Os -march=armv6k -mtune=arm1136j-s' --disable-libcurl-option --disable-tls-srp --disable-telnet --disable-manual --disable-gopher --disable-smtp --disable-imap --disable-pop3 --disable-tftp --disable-dict --disable-proxy --disable-rtsp --disable-ldap --disable-ldaps --disable-file --disable-ftp --enable-ares=${TOP}/../c-ares/dist/usr --disable-cookies --disable-ipv6 --enable-hidden-symbols --without-libidn --without-zlib --prefix=${TOP}/dist/usr --host=arm-none-linux-gnueabi --with-ssl=${TOP}/../openssl/dist/usr --with-random=/dev/urandom |
| |
| patch -p1 < ../../ssl-build.patch |
| |
| make -j 8 |
| make install |
| popd |
| |
| rm -rf fakeroot |
| mkdir -p fakeroot/usr/lib |
| cp -d -r dist/usr/lib/libcurl.so* fakeroot/usr/lib |
| |
| tar cjvf curl.tar.bz2 fakeroot |
| cp curl.tar.bz2 ../../a5s_linux_sdk/ambarella/boards/dropcam/rootfs |
| |
| |
| |