Skip to content

Commit 0903060

Browse files
masahir0yrobherring
authored andcommitted
kbuild: check libyaml installation for 'make dt_binding_check'
If you run 'make dtbs_check' without installing the libyaml package, the error message "dtc needs libyaml ..." is shown. This should be checked also for 'make dt_binding_check' because dtc needs to validate *.example.dts extracted from *.yaml files. It is missing since commit 4f0e3a5 ("kbuild: Add support for DT binding schema checks"), but this fix-up is applicable only after commit e10c432 ("kbuild: allow to run dt_binding_check and dtbs_check in a single command"). I gave the Fixes tag to the latter in case somebody is interested in back-porting this. Fixes: e10c432 ("kbuild: allow to run dt_binding_check and dtbs_check in a single command") Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent 29acfb6 commit 0903060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/dtc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dtc-objs += dtc-lexer.lex.o dtc-parser.tab.o
1313
HOST_EXTRACFLAGS := -I $(srctree)/$(src)/libfdt
1414

1515
ifeq ($(shell pkg-config --exists yaml-0.1 2>/dev/null && echo yes),)
16-
ifneq ($(CHECK_DTBS),)
16+
ifneq ($(CHECK_DT_BINDING)$(CHECK_DTBS),)
1717
$(error dtc needs libyaml for DT schema validation support. \
1818
Install the necessary libyaml development package.)
1919
endif

0 commit comments

Comments
 (0)