1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-05-28 16:21:27 +03:00

Use compgen to gather components in all.sh

Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
This commit is contained in:
Gowtham Suresh Kumar 2023-07-28 16:41:21 +01:00
parent 53453cf250
commit 13850f387b

View File

@ -190,9 +190,7 @@ pre_initialize_variables () {
# Gather the list of available components. These are the functions # Gather the list of available components. These are the functions
# defined in this script whose name starts with "component_". # defined in this script whose name starts with "component_".
# Parse the script with sed. This way we get the functions in the order ALL_COMPONENTS=$(compgen -A function component_ | sed 's/component_//')
# they are defined.
ALL_COMPONENTS=$(sed -n 's/^ *component_\([0-9A-Z_a-z]*\) *().*/\1/p' <"$0")
# Exclude components that are not supported on this platform. # Exclude components that are not supported on this platform.
SUPPORTED_COMPONENTS= SUPPORTED_COMPONENTS=