summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndres Amaya Garcia <andres.amayagarcia@arm.com>2018-10-29 18:58:41 +0000
committerAndres Amaya Garcia <andres.amayagarcia@arm.com>2019-02-07 10:32:31 +0000
commit5547a405b2d33fc4827025a02f12817271d584a1 (patch)
tree00adfdd1cc45a9a40e79681550c02b873603793d /scripts
parentd2689e38766013e41d184ec438fe2b64df2dc11b (diff)
Improve comments in query_config.fmt
Diffstat (limited to 'scripts')
-rw-r--r--scripts/data_files/query_config.fmt10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/data_files/query_config.fmt b/scripts/data_files/query_config.fmt
index 3d62ebe9..ef57a7c6 100644
--- a/scripts/data_files/query_config.fmt
+++ b/scripts/data_files/query_config.fmt
@@ -1,5 +1,5 @@
/*
- * Query configuration information
+ * Query Mbed TLS compile time configurations from config.h
*
* Copyright (C) 2018, Arm Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
@@ -32,7 +32,10 @@
#define mbedtls_printf printf
#endif /* MBEDTLS_PLATFORM_C */
-/* Include all the headers with public APIs in case they modify any configs */
+/*
+ * Include all the headers with public APIs in case they define a macro to its
+ * default value when that configuration is not set in the config.h.
+ */
#include "mbedtls/aes.h"
#include "mbedtls/aesni.h"
#include "mbedtls/arc4.h"
@@ -109,5 +112,6 @@
int query_config( const char *config )
{
-CHECK_CONFIG return( 1 );
+CHECK_CONFIG /* If the symbol is not found, return an error */
+ return( 1 );
}