SRC_TARBALL="openssl-1.0.1f.tar.gz" SRC_FETCH_PATH="http://www.openssl.org/source/$SRC_TARBALL" SRC_FETCH_METHOD="http" PATCH_LIST=" 0001-Aloha-6.0-default-ciphers.patch 0002-Aloha-6.0-cryptodev-1.5.patch 0003-aloha-6.0-warning-header.patch 0004-typo.patch 0005-Fix-bug-in-X509_V_FLAG_IGNORE_CRITICAL-CRL-handling.patch 0006-Omit-initial-status-request-callback-check.patch 0007-Use-default-digest-implementation-in-dgst.c.patch 0008-Add-loaded-dynamic-ENGINEs-to-list.patch 0009-Backport-TLS-padding-extension-from-master.patch " #0019-typo-rand_hw_seed-mismatch-pointer-rnd.patch #0020-omit-initial-status-request-callback-check.patch #0021-AES-SHA1-performance-improvements.patch #0022-atom-silvermont-14p-improvement.patch #0023-do-not-break-out-of-the-custom-extension-callback-loop-continue-instead.patch #0024-oops-get-selection-logic-right.patch function do_config { # To find these options, try "./Configure LIST" then "./Configure TABLE". # The colons are just delimiters and all words are allowed on the line. # Please read the Configure script in openssl to fin the relevant keywords, # as most of them are already implied by the OS target definition and the # default compiler ! if [ "$FLXARCH" == "x86_64" ]; then os="linux-x86_64" opt=( $GCC_ARCH_CURRENT $GCC_CPU_CURRENT $GCC_OPT_FASTEST ) elif [ "$FLX_ARCH_SMALL" == "i386" ]; then os="linux-elf" opt=( $GCC_ARCH_CURRENT $GCC_CPU_CURRENT $GCC_OPT_FASTEST ) elif [ -n "$FLXARCH" -a -z "${FLXARCH##arm*}" ]; then os="linux-armv4" opt=( $GCC_ARCH_CURRENT $GCC_CPU_CURRENT $GCC_OPT_FASTEST ) elif [ "$FLXARCH" == "sparc" ]; then os="linux-sparcv9" opt="" elif [ "$FLXARCH" == "sparc64" ]; then os="linux64-sparcv9" opt="" else os="linux-elf" opt="" fi # Do not enable cryptodev digests (-DUSE_CRYPTODEV_DIGESTS), as indicated in # the README, they significantly lower performance due to the high latency of # the ioctl required for cryptodev. Only enable HAVE_CRYPTODEV. opt=( "${opt[@]}" -DHAVE_CRYPTODEV ) CC="$CC" ./Configure --prefix=/usr --openssldir=/usr/share/openssl threads shared "${opt[@]}" "$os" } function do_compile_only { $FLXMAKE CC=$CC AR='${FLXCROSS}ar r' RANLIB='${FLXCROSS}ranlib' || exit $? $FLXMAKE build-shared CC=$CC AR='${FLXCROSS}ar r' RANLIB='${FLXCROSS}ranlib' || exit $? $FLXMAKE -C apps CC=$CC DLIBCRYPTO=../libcrypto.so AR='${FLXCROSS}ar r' RANLIB='${FLXCROSS}ranlib' || exit $? } function do_prepack { $FLXMAKE install LIBDIR=/lib INSTALL_PREFIX=$ROOTDIR || exit $? set_default_perm $ROOTDIR }