mirror of
https://github.com/torvalds/linux
synced 2024-10-15 15:59:15 +00:00
kbuild: move hdr-inst shorthand to top Makefile
Now that hdr-inst is used only in the top Makefile, move it there from scripts/Kbuild.include. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
d5470d1443
commit
a5bae54c10
2
Makefile
2
Makefile
|
@ -1190,6 +1190,8 @@ headers_install: headers
|
||||||
|
|
||||||
PHONY += archheaders archscripts
|
PHONY += archheaders archscripts
|
||||||
|
|
||||||
|
hdr-inst := -f $(srctree)/scripts/Makefile.headersinst obj
|
||||||
|
|
||||||
PHONY += headers
|
PHONY += headers
|
||||||
headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts
|
headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts
|
||||||
$(if $(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/Kbuild),, \
|
$(if $(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/Kbuild),, \
|
||||||
|
|
|
@ -187,12 +187,6 @@ dtbinst := -f $(srctree)/scripts/Makefile.dtbinst obj
|
||||||
# $(Q)$(MAKE) $(clean)=dir
|
# $(Q)$(MAKE) $(clean)=dir
|
||||||
clean := -f $(srctree)/scripts/Makefile.clean obj
|
clean := -f $(srctree)/scripts/Makefile.clean obj
|
||||||
|
|
||||||
###
|
|
||||||
# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.headersinst obj=
|
|
||||||
# Usage:
|
|
||||||
# $(Q)$(MAKE) $(hdr-inst)=dir
|
|
||||||
hdr-inst := -f $(srctree)/scripts/Makefile.headersinst obj
|
|
||||||
|
|
||||||
# echo command.
|
# echo command.
|
||||||
# Short version is used, if $(quiet) equals `quiet_', otherwise full one.
|
# Short version is used, if $(quiet) equals `quiet_', otherwise full one.
|
||||||
echo-cmd = $(if $($(quiet)cmd_$(1)),\
|
echo-cmd = $(if $($(quiet)cmd_$(1)),\
|
||||||
|
|
Loading…
Reference in a new issue