mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	 deac70abb1
			
		
	
	
		deac70abb1
		
			
		
	
	
	
	
		
			
			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>
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			552 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			19 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
 |