[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:
Dmitrii Kuvaiskii
2020-01-29 19:30:07 -08:00
parent 947fa3531f
commit 14868809a9
+1
View File
@@ -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