openssl transplant

  1. Openssl1.1 download and unzip it into the root directory openssl, execute configuration commands
    ./Configure linux-armv4 --prefix=$(pwd)/__install
    used here in the current directory __installdirectory

ARMv4, this configuration option refers to the instruction set architecture, it only supports 32-bit instruction ARMv4, so if the implementation does not know what to choose instruction set, then use armv4, this is to ensure a smooth run, but I heard there will be performance effects. I was not sure why use armv4, in short can successfully configured on the line
after the successful configuration, see messageOpenSSL has been successfully configured

  1. Open the Makefile, modify cross-compilation chain Openssl of
    CROSS_COMPILE=/usr/arm/arm-2014.05/bin/arm-none-linux-gnueabi-
    this must be our absolute paths cross compiler, otherwise it will prompt can not find the compiler and error.

  2. Perform makecompilation should not be an error, and then perform make installthe installation to the previously configured __installdirectory
    into the __installdirectory and copy the lib directory libcrypto.a, libcrypto.so.1.1, libssl.so.1.1 and libssl.a file to development board in / lib file system, bin openssl files are copied to the development board / bin,

Guess you like

Origin www.cnblogs.com/lifo/p/12006102.html