mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-30 09:48:56 +00:00
9273e252f6
This adds compilations modules for musl-libc and kernel-headers. The entire initrd (busybox, cryptsetup, gpgv, kexec, etc) can be built with the much smaller libc and it appears to work with chroot. Library paths are not set correctly and files are installed into heads/install to make them accessible to other modules. This prevents the initrd from working without manual fixup; need to fix before merging into master. Build times have gone up since everything is being rebuilt more often for some reason.
21 lines
477 B
Plaintext
21 lines
477 B
Plaintext
modules += mbedtls
|
|
|
|
mbedtls_version := 2.3.0
|
|
mbedtls_dir := mbedtls-$(mbedtls_version)
|
|
mbedtls_tar := mbedtls-$(mbedtls_version)-gpl.tgz
|
|
mbedtls_url := https://tls.mbed.org/download/$(mbedtls_tar)
|
|
mbedtls_hash := 21237014f779bde70b2d71399cc1ea53365eb7f10cdd74a13ee6329a1910cb49
|
|
|
|
mbedtls_libraries := \
|
|
library/libmbedcrypto.so.0 \
|
|
|
|
mbedtls_configure :=
|
|
mbedtls_target := \
|
|
SHARED=1 \
|
|
DESTDIR=$(INSTALL) \
|
|
CC="$(heads_cc)" \
|
|
-j 8 \
|
|
install
|
|
|
|
mbedtls_depends := $(musl_dep)
|