From 14868809a9b024d2efd6fd8f60df691ee23c9b11 Mon Sep 17 00:00:00 2001 From: Dmitrii Kuvaiskii Date: Wed, 29 Jan 2020 19:23:37 -0800 Subject: [PATCH] [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. --- Pal/lib/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Pal/lib/Makefile b/Pal/lib/Makefile index 798fb99b..016065ad 100644 --- a/Pal/lib/Makefile +++ b/Pal/lib/Makefile @@ -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