- 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__install
directory
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
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.Perform
make
compilation should not be an error, and then performmake install
the installation to the previously configured__install
directory
into the__install
directory 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,