Lines Matching +full:python +full:- +full:artifacts
1 # SPDX-License-Identifier: GPL-2.0
2 DT_DOC_CHECKER ?= dt-doc-validate
3 DT_EXTRACT_EX ?= dt-extract-example
4 DT_MK_SCHEMA ?= dt-mk-schema
7 echo "warning: python package 'yamllint' not installed, skipping" >&2)
15 echo "Ensure dtschema python package is installed and in your PATH." >&2; \
19 $(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -Vc >/dev/null || \
28 find_all_cmd = find $(src) \( -name '*.yaml' ! \
29 -name 'processed-schema*' \)
33 grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | \
36 $(shell $(find_cmd) | xargs grep -l '^examples:'))
40 xargs -n200 -P$$(nproc) \
41 $(DT_SCHEMA_LINT) -f parsable -c $(src)/.yamllint >&2) \
46 xargs -n200 -P$$(nproc) $(DT_DOC_CHECKER) -u $(src)) \
49 DT_CHK_STYLE = $(srctree)/scripts/dtc/dt-check-style
51 # Feed the file list to the checker via @argfile in a single Python
52 # process so the ruamel.yaml import is paid once. scripts/jobserver-exec
54 # $PARALLELISM, which dt-check-style picks up to size its worker pool.
57 $(PYTHON3) $(srctree)/scripts/jobserver-exec \
59 && touch $@ || true; rm -f $$f
64 $(DT_MK_SCHEMA) -j $(DT_MK_SCHEMA_FLAGS) @$$f > $@ ; \
65 rm -f $$f
70 -Wno-avoid_unnecessary_addr_size \
71 -Wno-unique_unit_address \
72 -Wunique_unit_address_if_enabled
74 $(obj)/processed-schema.json: $(DT_DOCS) check_dtschema_version FORCE
77 targets += .dt-binding.checked .yamllint.checked .dt-style.checked
81 $(obj)/.dt-binding.checked: $(DT_DOCS) FORCE
84 $(obj)/.dt-style.checked: $(DT_DOCS) FORCE
87 always-y += processed-schema.json
92 # build artifacts here before they are processed by scripts/Makefile.clean
93 clean-files = $(shell find $(obj) \( -name '*.example.dts' -o \
94 -name '*.example.dtb' \) -delete 2>/dev/null)
96 dt_compatible_check: $(obj)/processed-schema.json
97 $(Q)$(srctree)/scripts/dtc/dt-extract-compatibles $(srctree) | xargs dt-check-compatible -v -s $<
100 dt_binding_check_one: $(obj)/.dt-binding.checked $(obj)/.yamllint.checked $(obj)/.dt-style.checked