mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-14 12:43:20 +00:00
Print only missing dependencies
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
c142620724
commit
fc09d27a92
@ -86,11 +86,17 @@ config_has () {
|
||||
## depends_on SYMBOL...
|
||||
## Exit if the library configuration does not have all SYMBOLs set.
|
||||
depends_on () {
|
||||
if ! config_has "$@"; then
|
||||
m=
|
||||
for x in "$@"; do
|
||||
if ! config_has "$x"; then
|
||||
m="$m $x"
|
||||
fi
|
||||
done
|
||||
if [ -n "$m" ]; then
|
||||
cat >&2 <<EOF
|
||||
This demo script requires the following configuration options to be enabled
|
||||
at compile time:
|
||||
$@
|
||||
$0: this demo requires the following
|
||||
configuration options to be enabled at compile time:
|
||||
$m
|
||||
EOF
|
||||
# Exit with a success status so that this counts as a pass for run_demos.py.
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user