| #!/bin/bash |
| |
| set -e |
| |
| source ../../a5s_linux_sdk/ambarella/build/env/CodeSourcery.env |
| PATH=$PATH:$ARM_LINUX_TOOLCHAIN_DIR/bin |
| |
| OPENSSL=openssl-1.0.2 |
| OPENSSL_SOURCE=$OPENSSL.tar.gz |
| |
| CONFIG="shared" |
| |
| TOP=`pwd` |
| |
| rm -rf dist |
| mkdir dist |
| rm -rf build |
| mkdir build |
| cd build |
| tar zxfv ../$OPENSSL_SOURCE |
| cd $OPENSSL |
| |
| ./Configure experimental-jpake --prefix=/usr --openssldir=/etc/openssl shared debug-linux-x86_64 |
| make depend && make |
| make INSTALL_PREFIX=$TOP/dist install_sw |
| |
| # This confuses libcurl and doesn't work well for x-compling anyway |
| rm -r ${TOP}/dist/usr/lib/pkgconfig |
| |
| cd ../.. |