Framework submodule: fix the libtestdriver1 build

`make -C tests libtestdriver1` copies `library/Makefile` to
`tests/libtestdriver1/library/Makefile`, where `../framework` does not point
to the framework submodule.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2024-03-04 11:06:56 +01:00
parent 456a54da8e
commit 1c13aa78c2
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,8 @@
include ../framework/exported.make
ifndef MBEDTLS_PATH
MBEDTLS_PATH := ..
endif
include $(MBEDTLS_PATH)/framework/exported.make
# Also see "include/mbedtls/mbedtls_config.h"

View File

@ -208,6 +208,7 @@ define libtestdriver1_rewrite :=
s/\b(?=mbedtls_|psa_)/libtestdriver1_/g;
endef
libtestdriver1.a: export MBEDTLS_PATH := $(patsubst ../..//%,/%,../../$(MBEDTLS_PATH))
libtestdriver1.a:
# Copy the library and fake a 3rdparty Makefile include.
rm -Rf ./libtestdriver1