File: dtbs-check.sh

package info (click to toggle)
linux 6.17.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,734,892 kB
  • sloc: ansic: 26,684,085; asm: 271,195; sh: 147,401; python: 75,980; makefile: 57,306; perl: 36,943; xml: 19,562; cpp: 5,899; yacc: 4,909; lex: 2,943; awk: 1,556; sed: 29; ruby: 25
file content (22 lines) | stat: -rwxr-xr-x 637 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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