mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 18:12:48 +00:00
Add jobs to run dt_binding_check and dtbs_check. If warnings are seen, exit with a non-zero error code while configuring them as warning in the GitLab CI pipeline. Signed-off-by: Vignesh Raman <[email protected]> Acked-by: Helen Koike <[email protected]> Reviewed-by: Maxime Ripard <[email protected]> Acked-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
20 lines
552 B
Bash
Executable File
20 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
set -euxo pipefail
|
|
|
|
VENV_PATH="${VENV_PATH:-/tmp/dtschema-venv}"
|
|
source "${VENV_PATH}/bin/activate"
|
|
|
|
if ! make -j"${FDO_CI_CONCURRENT:-4}" dt_binding_check \
|
|
DT_SCHEMA_FILES="${SCHEMA:-}" 2>dt-binding-check.log; then
|
|
echo "ERROR: 'make dt_binding_check' failed. Please check dt-binding-check.log for details."
|
|
exit 1
|
|
fi
|
|
|
|
if [[ -s dt-binding-check.log ]]; then
|
|
echo "WARNING: dt_binding_check reported warnings. Please check dt-binding-check.log" \
|
|
"for details."
|
|
exit 102
|
|
fi
|