mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-03 15:39:36 +00:00
[Makefile] Remove mbedtls's config.h on first build in lib/Makefile
Previous commit fixed the dependency on crypto/config.h (it must be copied into mbedtls include directory). However, config.h with default and incorrect settings already exists in mbedtls include dir after its download, and Graphene needs to replace it with our version of configuration. This commit simply removes default config.h on first build of mbedTLS to force the dependency introduced in the previous commit.
This commit is contained in:
@@ -65,6 +65,7 @@ crypto/mbedtls/CMakeLists.txt: crypto/$(MBEDTLS_SRC)
|
||||
mv crypto/mbedtls-mbedtls-$(MBEDTLS_VERSION) crypto/mbedtls
|
||||
mkdir crypto/mbedtls/install
|
||||
cd crypto/mbedtls && ./scripts/config.pl set MBEDTLS_CMAC_C && make DESTDIR=install install .
|
||||
$(RM) crypto/mbedtls/include/mbedtls/config.h
|
||||
|
||||
crypto/mbedtls/include/mbedtls/config.h: crypto/config.h crypto/mbedtls/CMakeLists.txt
|
||||
cp crypto/config.h crypto/mbedtls/include/mbedtls
|
||||
|
||||
Reference in New Issue
Block a user