Add the mbedtls include directories into the build system.

Signed-off-by: Raymond Mao <raymond....@linaro.org>
---
Changes in v2
- None.
Changes in v3
- Remove changes for PLATFORM_CPPFLAGS.

 Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Makefile b/Makefile
index 79b28c2d81f..2e7eb51401f 100644
--- a/Makefile
+++ b/Makefile
@@ -829,6 +829,12 @@ KBUILD_HOSTCFLAGS += $(if $(CONFIG_TOOLS_DEBUG),-g)
 UBOOTINCLUDE    := \
        -Iinclude \
        $(if $(KBUILD_SRC), -I$(srctree)/include) \
+       $(if $(KBUILD_SRC), \
+               $(if $(CONFIG_MBEDTLS_LIB), \
+                       "-DMBEDTLS_CONFIG_FILE=\"mbedtls_def_config.h\"" \
+                       -I$(srctree)/lib/mbedtls \
+                       -I$(srctree)/lib/mbedtls/port \
+                       -I$(srctree)/lib/mbedtls/external/mbedtls/include)) \
        $(if $(CONFIG_$(SPL_)SYS_THUMB_BUILD), \
                $(if $(CONFIG_HAS_THUMB2), \
                        $(if $(CONFIG_CPU_V7M), \
-- 
2.25.1

Reply via email to