kbuild: rename hostprogs-y/always to hostprogs/always-y
In old days, the "host-progs" syntax was used for specifying host
programs. It was renamed to the current "hostprogs-y" in 2004.
It is typically useful in scripts/Makefile because it allows Kbuild to
selectively compile host programs based on the kernel configuration.
This commit renames like follows:
always -> always-y
hostprogs-y -> hostprogs
So, scripts/Makefile will look like this:
always-$(CONFIG_BUILD_BIN2C) += ...
always-$(CONFIG_KALLSYMS) += ...
...
hostprogs := $(always-y) $(always-m)
I think this makes more sense because a host program is always a host
program, irrespective of the kernel configuration. We want to specify
which ones to compile by CONFIG options, so always-y will be handier.
The "always", "hostprogs-y", "hostprogs-m" will be kept for backward
compatibility for a while.
Signed-off-by:
Masahiro Yamada <masahiroy@kernel.org>
Showing
- Documentation/kbuild/makefiles.rst 16 additions, 33 deletionsDocumentation/kbuild/makefiles.rst
- Kbuild 4 additions, 4 deletionsKbuild
- arch/alpha/boot/Makefile 1 addition, 1 deletionarch/alpha/boot/Makefile
- arch/arm/vdso/Makefile 1 addition, 1 deletionarch/arm/vdso/Makefile
- arch/arm64/kernel/vdso32/Makefile 2 additions, 2 deletionsarch/arm64/kernel/vdso32/Makefile
- arch/mips/boot/Makefile 1 addition, 1 deletionarch/mips/boot/Makefile
- arch/mips/boot/compressed/Makefile 2 additions, 2 deletionsarch/mips/boot/compressed/Makefile
- arch/mips/boot/tools/Makefile 1 addition, 1 deletionarch/mips/boot/tools/Makefile
- arch/mips/tools/Makefile 2 additions, 2 deletionsarch/mips/tools/Makefile
- arch/mips/vdso/Makefile 1 addition, 1 deletionarch/mips/vdso/Makefile
- arch/powerpc/boot/Makefile 2 additions, 2 deletionsarch/powerpc/boot/Makefile
- arch/s390/tools/Makefile 2 additions, 2 deletionsarch/s390/tools/Makefile
- arch/sparc/boot/Makefile 1 addition, 1 deletionarch/sparc/boot/Makefile
- arch/sparc/vdso/Makefile 1 addition, 1 deletionarch/sparc/vdso/Makefile
- arch/x86/boot/Makefile 2 additions, 2 deletionsarch/x86/boot/Makefile
- arch/x86/boot/compressed/Makefile 1 addition, 1 deletionarch/x86/boot/compressed/Makefile
- arch/x86/entry/vdso/Makefile 1 addition, 1 deletionarch/x86/entry/vdso/Makefile
- arch/x86/realmode/rm/Makefile 1 addition, 1 deletionarch/x86/realmode/rm/Makefile
- arch/x86/tools/Makefile 2 additions, 2 deletionsarch/x86/tools/Makefile
- drivers/gpu/drm/radeon/Makefile 1 addition, 1 deletiondrivers/gpu/drm/radeon/Makefile
Loading
Please register or sign in to comment