Skip to content

Commit 85cf16d

Browse files
Merge pull request #10388 from gilles-peskine-arm/threading-1.0-mutex-init-mbedtls-preliminary
mbedtls prerequisite: Return int from platform mutex_init
2 parents f790fb8 + f0b8364 commit 85cf16d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

programs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ endif
233233

234234
test/metatest$(EXEXT): $(FRAMEWORK)/tests/programs/metatest.c $(DEP)
235235
echo " CC $(FRAMEWORK)/tests/programs/metatest.c"
236-
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I../library -I../tf-psa-crypto/core $(FRAMEWORK)/tests/programs/metatest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
236+
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I../library -I../tf-psa-crypto/core -I../tf-psa-crypto/drivers/builtin/include -I../tf-psa-crypto/drivers/builtin/src $(FRAMEWORK)/tests/programs/metatest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
237237

238238
test/query_config.o: test/query_config.c $(FRAMEWORK)/tests/programs/query_config.h $(DEP)
239239
echo " CC test/query_config.c"

programs/test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ foreach(exe IN LISTS executables)
102102
target_link_libraries(${exe} ${libs} ${CMAKE_THREAD_LIBS_INIT})
103103
endforeach()
104104

105+
target_include_directories(metatest
106+
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tf-psa-crypto/drivers/builtin/include
107+
${CMAKE_CURRENT_SOURCE_DIR}/../../tf-psa-crypto/drivers/builtin/src)
108+
105109
install(TARGETS ${executables}
106110
DESTINATION "bin"
107111
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)

0 commit comments

Comments
 (0)