Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'kbuild-fixes-v5.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

- fix missed rebuild of DT schema check

- add some phony targets to PHONY

- fix comments and documents

* tag 'kbuild-fixes-v5.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
kbuild: get rid of trailing slash from subdir- example
kbuild: add dt_binding_check to PHONY in a correct place
kbuild: add dtbs_check to PHONY
kbuild: remove unneeded semicolon at the end of cmd_dtb_check
kbuild: fix DT binding schema rule to detect command line changes
kbuild: remove wrong documentation about mandatory-y
kbuild: add comment for V=2 mode

+7 -8
+1 -4
Documentation/kbuild/makefiles.rst
··· 765 765 Example:: 766 766 767 767 #arch/x86/boot/Makefile 768 - subdir- := compressed/ 768 + subdir- := compressed 769 769 770 770 The above assignment instructs kbuild to descend down in the 771 771 directory compressed/ when "make clean" is executed. ··· 1378 1378 This works like optional generic-y. If a mandatory header is missing 1379 1379 in arch/$(ARCH)/include/(uapi/)/asm, Kbuild will automatically generate 1380 1380 a wrapper of the asm-generic one. 1381 - 1382 - The convention is to list one subdir per line and 1383 - preferably in alphabetic order. 1384 1381 1385 1382 8 Kbuild Variables 1386 1383 ==================
+3 -1
Makefile
··· 68 68 # 69 69 # If KBUILD_VERBOSE equals 0 then the above command will be hidden. 70 70 # If KBUILD_VERBOSE equals 1 then the above command is displayed. 71 + # If KBUILD_VERBOSE equals 2 then give the reason why each target is rebuilt. 71 72 # 72 73 # To put more focus on warnings, be less verbose as default 73 74 # Use 'make V=1' to see the full commands ··· 1239 1238 %.dtb: include/config/kernel.release scripts_dtc 1240 1239 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@ 1241 1240 1242 - PHONY += dtbs dtbs_install dt_binding_check 1241 + PHONY += dtbs dtbs_install dtbs_check 1243 1242 dtbs dtbs_check: include/config/kernel.release scripts_dtc 1244 1243 $(Q)$(MAKE) $(build)=$(dtstree) 1245 1244 ··· 1259 1258 scripts_dtc: scripts_basic 1260 1259 $(Q)$(MAKE) $(build)=scripts/dtc 1261 1260 1261 + PHONY += dt_binding_check 1262 1262 dt_binding_check: scripts_dtc 1263 1263 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings 1264 1264
+3 -3
scripts/Makefile.lib
··· 300 300 DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml 301 301 302 302 quiet_cmd_dtb_check = CHECK $@ 303 - cmd_dtb_check = $(DT_CHECKER) -u $(srctree)/$(DT_BINDING_DIR) -p $(DT_TMP_SCHEMA) $@ ; 303 + cmd_dtb_check = $(DT_CHECKER) -u $(srctree)/$(DT_BINDING_DIR) -p $(DT_TMP_SCHEMA) $@ 304 304 305 - define rule_dtc_dt_yaml 305 + define rule_dtc 306 306 $(call cmd_and_fixdep,dtc,yaml) 307 307 $(call cmd,dtb_check) 308 308 endef 309 309 310 310 $(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE 311 - $(call if_changed_rule,dtc_dt_yaml) 311 + $(call if_changed_rule,dtc) 312 312 313 313 dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) 314 314