mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
fix(marvell-tools): include mbedtls/version.h before use
mbedtls/version.h needs to be included before the use of any
mbedtls config variables.
Fixes a build failure regression from commit a8eadc51a
.
Change-Id: Idd955d7955b0a55ffd127f31053335542cb15e22
Signed-off-by: Henrik Nordstrom <henrik.nordstrom@addiva.se>
This commit is contained in:
parent
c9484b4f24
commit
8eb4efe70b
2 changed files with 4 additions and 1 deletions
|
@ -1369,6 +1369,9 @@ subsections:
|
||||||
deprecated:
|
deprecated:
|
||||||
- cert_create
|
- cert_create
|
||||||
|
|
||||||
|
- title: Marvell Tools
|
||||||
|
scope: marvell-tools
|
||||||
|
|
||||||
- title: Dependencies
|
- title: Dependencies
|
||||||
scope: deps
|
scope: deps
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include <libconfig.h> /* for parsing config file */
|
#include <libconfig.h> /* for parsing config file */
|
||||||
|
|
||||||
/* mbedTLS stuff */
|
/* mbedTLS stuff */
|
||||||
|
#include <mbedtls/version.h>
|
||||||
#if defined(MBEDTLS_BIGNUM_C) && defined(MBEDTLS_ENTROPY_C) && \
|
#if defined(MBEDTLS_BIGNUM_C) && defined(MBEDTLS_ENTROPY_C) && \
|
||||||
defined(MBEDTLS_SHA256_C) && \
|
defined(MBEDTLS_SHA256_C) && \
|
||||||
defined(MBEDTLS_PK_PARSE_C) && defined(MBEDTLS_FS_IO) && \
|
defined(MBEDTLS_PK_PARSE_C) && defined(MBEDTLS_FS_IO) && \
|
||||||
|
@ -28,7 +29,6 @@
|
||||||
#include <mbedtls/md.h>
|
#include <mbedtls/md.h>
|
||||||
#include <mbedtls/pk.h>
|
#include <mbedtls/pk.h>
|
||||||
#include <mbedtls/sha256.h>
|
#include <mbedtls/sha256.h>
|
||||||
#include <mbedtls/version.h>
|
|
||||||
#include <mbedtls/x509.h>
|
#include <mbedtls/x509.h>
|
||||||
#else
|
#else
|
||||||
#error "Bad mbedTLS configuration!"
|
#error "Bad mbedTLS configuration!"
|
||||||
|
|
Loading…
Add table
Reference in a new issue