-
- Downloads
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
- drivers/tty/vt/Makefile 1 addition, 1 deletiondrivers/tty/vt/Makefile
- drivers/video/logo/Makefile 1 addition, 1 deletiondrivers/video/logo/Makefile
- drivers/zorro/Makefile 1 addition, 1 deletiondrivers/zorro/Makefile
- fs/unicode/Makefile 1 addition, 1 deletionfs/unicode/Makefile
- lib/Makefile 2 additions, 2 deletionslib/Makefile
- lib/raid6/Makefile 1 addition, 1 deletionlib/raid6/Makefile
- net/bpfilter/Makefile 1 addition, 1 deletionnet/bpfilter/Makefile
- samples/bpf/Makefile 59 additions, 59 deletionssamples/bpf/Makefile
- samples/connector/Makefile 2 additions, 6 deletionssamples/connector/Makefile
- samples/hidraw/Makefile 2 additions, 4 deletionssamples/hidraw/Makefile
- samples/mei/Makefile 2 additions, 2 deletionssamples/mei/Makefile
- samples/pidfd/Makefile 2 additions, 2 deletionssamples/pidfd/Makefile
- samples/seccomp/Makefile 2 additions, 2 deletionssamples/seccomp/Makefile
- samples/uhid/Makefile 2 additions, 2 deletionssamples/uhid/Makefile
- samples/vfs/Makefile 2 additions, 3 deletionssamples/vfs/Makefile
- scripts/Makefile 11 additions, 11 deletionsscripts/Makefile
- scripts/Makefile.build 5 additions, 3 deletionsscripts/Makefile.build
- scripts/Makefile.clean 2 additions, 2 deletionsscripts/Makefile.clean
- scripts/Makefile.host 4 additions, 4 deletionsscripts/Makefile.host
- scripts/Makefile.lib 5 additions, 1 deletionscripts/Makefile.lib
Please register or sign in to comment