]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
kbuild: fix DT binding schema rule again to avoid needless rebuilds
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 21 Apr 2020 03:35:28 +0000 (12:35 +0900)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 25 May 2020 08:42:01 +0000 (10:42 +0200)
BugLink: https://bugs.launchpad.net/bugs/1876765
commit 3d4b2238684ac919394eba7fb51bb7eeeec6ab57 upstream.

Since commit 7a0496056064 ("kbuild: fix DT binding schema rule to detect
command line changes"), this rule is every time re-run even if you change
nothing.

cmd_dtc takes one additional parameter to pass to the -O option of dtc.

We need to pass 'yaml' to if_changed_rule. Otherwise, cmd-check invoked
from if_changed_rule is false positive.

Fixes: 7a0496056064 ("kbuild: fix DT binding schema rule to detect command line changes")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
scripts/Makefile.lib

index a66fc0acad1e475d62db6e0a8674bc37e877b39c..342618a2bccb4c7aa4a0003c250f39aa78eb89dd 100644 (file)
@@ -297,7 +297,7 @@ define rule_dtc
 endef
 
 $(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
-       $(call if_changed_rule,dtc)
+       $(call if_changed_rule,dtc,yaml)
 
 dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)