[lkml]   [2020]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] kbuild: warn if always, hostprogs-y, or hostprogs-m is used
always, hostprogs-y, and hostprogs-m are deprecated.

There is no user in upstream code, but I am keeping them for external
modules. I want to remove them entirely someday. Notify the deprecation
to downstream users.

Signed-off-by: Masahiro Yamada <>

scripts/Makefile.lib | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index cd52a8c6428f..f869a4b2646c 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -4,8 +4,14 @@ asflags-y += $(EXTRA_AFLAGS)
ccflags-y += $(EXTRA_CFLAGS)
cppflags-y += $(EXTRA_CPPFLAGS)
ldflags-y += $(EXTRA_LDFLAGS)
+ifneq ($(always),)
+$(warning 'always' is deprecated. Please use 'always-y' instead)
always-y += $(always)
+ifneq ($(hostprogs-y)$(hostprogs-m),)
+$(warning 'hostprogs-y' and 'hostprogs-m' are deprecated. Please use 'hostprogs' instead)
hostprogs += $(hostprogs-y) $(hostprogs-m)

# flags that take effect in current and sub directories
KBUILD_AFLAGS += $(subdir-asflags-y)
 \ /
  Last update: 2020-04-27 18:05    [W:0.368 / U:2.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site