Skip to content

Commit 469f781

Browse files
Require framework directory to exist when building
The framework directory will be provided by a submodule. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
1 parent 7f523bf commit 469f781

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ if(LIB_INSTALL_DIR)
277277
set(CMAKE_INSTALL_LIBDIR "${LIB_INSTALL_DIR}")
278278
endif()
279279

280+
add_subdirectory(framework)
281+
280282
add_subdirectory(include)
281283

282284
add_subdirectory(3rdparty)

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ DESTDIR=/usr/local
22
PREFIX=mbedtls_
33
PERL ?= perl
44

5+
include framework/exported.make
6+
57
.SILENT:
68

79
.PHONY: all no_test programs lib tests install uninstall clean test check lcov apidoc apidoc_clean

library/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include ../framework/exported.make
12

23
# Also see "include/mbedtls/mbedtls_config.h"
34

scripts/common.make

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ ifndef MBEDTLS_PATH
44
MBEDTLS_PATH := ..
55
endif
66

7+
include $(MBEDTLS_PATH)/framework/exported.make
8+
79
CFLAGS ?= -O2
810
WARNING_CFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral
911
WARNING_CXXFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral

0 commit comments

Comments
 (0)