2022-08-25 18:43:31 +00:00
|
|
|
# OpenSSL library
|
|
|
|
modules-$(CONFIG_OPENSSL) += openssl
|
|
|
|
|
2023-03-07 20:41:42 +00:00
|
|
|
openssl_version := 3.0.8
|
2022-08-25 18:43:31 +00:00
|
|
|
openssl_dir := openssl-$(openssl_version)
|
|
|
|
openssl_tar := openssl-$(openssl_version).tar.gz
|
2023-03-07 20:41:42 +00:00
|
|
|
openssl_url := https://www.openssl.org/source/$(openssl_tar)
|
|
|
|
openssl_hash := 6c13d2bf38fdf31eac3ce2a347073673f5d63263398f1f69d0df4a41253e4b3e
|
2022-08-25 18:43:31 +00:00
|
|
|
|
|
|
|
# hack to provide path to libgcc
|
|
|
|
LIBGCC_DIR := $(dir $(shell $(heads_cc) -print-libgcc-file-name))
|
|
|
|
|
|
|
|
openssl_configure := \
|
|
|
|
$(CROSS_TOOLS) \
|
2023-03-07 20:41:42 +00:00
|
|
|
CFLAGS="-Os" \
|
2022-08-25 18:43:31 +00:00
|
|
|
LDFLAGS="-L$(LIBGCC_DIR)" \
|
|
|
|
./Configure \
|
|
|
|
--prefix="/" \
|
2023-03-07 20:41:42 +00:00
|
|
|
no-tests \
|
2022-08-25 18:43:31 +00:00
|
|
|
linux-$(strip $(arch)) \
|
|
|
|
|
|
|
|
openssl_target := $(MAKE_JOBS) \
|
|
|
|
build_programs \
|
|
|
|
&& \
|
|
|
|
$(MAKE) \
|
|
|
|
-C "$(build)/$(openssl_dir)" \
|
|
|
|
DESTDIR="$(INSTALL)" \
|
|
|
|
LIBDIR="lib" \
|
|
|
|
install_sw \
|
|
|
|
|
2023-03-07 20:41:42 +00:00
|
|
|
# Only libcrypto is needed currently, libssl is not included in initrd
|
2022-08-25 18:43:31 +00:00
|
|
|
openssl_libraries := \
|
2023-03-07 20:41:42 +00:00
|
|
|
libcrypto.so.3 \
|
2022-08-25 18:43:31 +00:00
|
|
|
|
|
|
|
openssl_depends := $(musl_dep)
|