function check capability
NAME [edit section]
check_capability
SYNOPSIS [edit section]
- check_capability <variable>
DESCRIPTION [edit section]
This routine checks that a board and distribution have a certain "capability". The capability is defined as a variable prefixed with "CAP_".If the indicated capability variable is set, nothing happens. If the variable is not set, then the job is aborted.
EXAMPLES [edit section]
Here are some sample invocations:check_capability RENESAS
This would check for the presence of $CAP_RENESAS, and check that its value is non-empty.
ENVIRONMENT and ARGUMENTS [edit section]
This routine specifically checks whether $CAP_<variable> is non-zero.
RETURN [edit section]
Returns non-zero and aborts the job if the CAP_<variable> is not defined.
SOURCE [edit section]
Located in scripts/functions.sh
SEE ALSO [edit section]