Просмотр исходного кода

[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.
Dmitrii Kuvaiskii 6 лет назад
Родитель
Сommit
14868809a9
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Pal/lib/Makefile

+ 1 - 0
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