devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kbuild: check libyaml installation for 'make dt_binding_check'
@ 2020-04-17  4:04 Masahiro Yamada
  2020-04-17 15:44 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2020-04-17  4:04 UTC (permalink / raw)
  To: Rob Herring, devicetree; +Cc: Masahiro Yamada, Frank Rowand, linux-kernel

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 4f0e3a57d6eb ("kbuild: Add support for DT
binding schema checks"), but this fix-up is applicable only after commit
e10c4321dc1e ("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: e10c4321dc1e ("kbuild: allow to run dt_binding_check and dtbs_check in a single command")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 scripts/dtc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile
index 2f3c3a7e1620..ef85f8b7d4a7 100644
--- a/scripts/dtc/Makefile
+++ b/scripts/dtc/Makefile
@@ -13,7 +13,7 @@ dtc-objs	+= dtc-lexer.lex.o dtc-parser.tab.o
 HOST_EXTRACFLAGS := -I $(srctree)/$(src)/libfdt
 
 ifeq ($(shell pkg-config --exists yaml-0.1 2>/dev/null && echo yes),)
-ifneq ($(CHECK_DTBS),)
+ifneq ($(CHECK_DT_BINDING)$(CHECK_DTBS),)
 $(error dtc needs libyaml for DT schema validation support. \
 	Install the necessary libyaml development package.)
 endif
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kbuild: check libyaml installation for 'make dt_binding_check'
  2020-04-17  4:04 [PATCH] kbuild: check libyaml installation for 'make dt_binding_check' Masahiro Yamada
@ 2020-04-17 15:44 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2020-04-17 15:44 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: devicetree, Frank Rowand, linux-kernel

On Fri, Apr 17, 2020 at 01:04:55PM +0900, Masahiro Yamada wrote:
> 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 4f0e3a57d6eb ("kbuild: Add support for DT
> binding schema checks"), but this fix-up is applicable only after commit
> e10c4321dc1e ("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: e10c4321dc1e ("kbuild: allow to run dt_binding_check and dtbs_check in a single command")
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
> 
>  scripts/dtc/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Rob

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-17 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-17  4:04 [PATCH] kbuild: check libyaml installation for 'make dt_binding_check' Masahiro Yamada
2020-04-17 15:44 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).