heads/modules/mbedtls
Thierry Laurion 907e906f01
Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space)
Adresses @easrentai suggestion to pass modules build optimization for space here: #590 (comment)

- Uniformized module's $(CROSS_TOOLS) being passed as environment variable, prior of ./configure call

Doesn't work for:
- busybox (HOSTCXXFLAGS="-Os" attempted prior of ./configure call)
- zlib (CFLAGS="-Os" attempted prior of ./configure call)
- npth (CFLAGS="-Os" attempted prior of ./configure call)
2023-03-07 18:05:39 -05:00

22 lines
526 B
Makefile

modules-$(CONFIG_MBEDTLS) += mbedtls
mbedtls_version := 2.4.2
mbedtls_dir := mbedtls-$(mbedtls_version)
mbedtls_tar := mbedtls-$(mbedtls_version).tar.gz
mbedtls_url := https://github.com/ARMmbed/mbedtls/archive/$(mbedtls_tar)
mbedtls_hash := b7afab6a0f86e29c6055848b70d183c4e2531cb0ec955b66c0e4e1b7e4954bf4
mbedtls_libraries := library/libmbedcrypto.so.0
mbedtls_configure :=
mbedtls_target := \
SHARED=1 \
CFLAGS="-Os" \
DESTDIR=$(INSTALL) \
$(CROSS_TOOLS) \
$(MAKE_JOBS) \
install
mbedtls_depends := $(musl_dep)