mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +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 <vignesh.raman@collabora.com> Acked-by: Helen Koike <helen.fornazier@gmail.com> Reviewed-by: Maxime Ripard <mripard@kernel.org> Acked-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://lore.kernel.org/r/20250623085033.39680-2-vignesh.raman@collabora.com Signed-off-by: Maxime Ripard <mripard@kernel.org>
22 lines
637 B
Bash
Executable file
22 lines
637 B
Bash
Executable file
#!/bin/bash
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
set -euxo pipefail
|
|
|
|
: "${KERNEL_ARCH:?ERROR: KERNEL_ARCH must be set}"
|
|
: "${LLVM_VERSION:?ERROR: LLVM_VERSION must be set}"
|
|
|
|
./drivers/gpu/drm/ci/setup-llvm-links.sh
|
|
|
|
make LLVM=1 ARCH="${KERNEL_ARCH}" defconfig
|
|
|
|
if ! make -j"${FDO_CI_CONCURRENT:-4}" ARCH="${KERNEL_ARCH}" LLVM=1 dtbs_check \
|
|
DT_SCHEMA_FILES="${SCHEMA:-}" 2>dtbs-check.log; then
|
|
echo "ERROR: 'make dtbs_check' failed. Please check dtbs-check.log for details."
|
|
exit 1
|
|
fi
|
|
|
|
if [[ -s dtbs-check.log ]]; then
|
|
echo "WARNING: dtbs_check reported warnings. Please check dtbs-check.log for details."
|
|
exit 102
|
|
fi
|