Skip to contentSkip to conversation

scripts: fix deprecated always and hostprogs-y

PATCH In review Anders Roxell 2 participants 2 messages May 12, 2020 – May 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 scripts: fix deprecated always and hostprogs-y

When I did an allmodconfig build the following warning showed up:

scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead scripts/Makefile.lib:12: 'hostprogs-y' and 'hostprogs-m' are deprecated. Please use 'hostprogs' instead

Rework to use the new 'always-y' and 'hostprogs'.

Fixes 631ec151fd96 ("Add sample notification program")

---

Fixed Masahiro's comments.

 samples/watch_queue/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
samples/watch_queue/Makefile +2 -2
index eec00dd0a8df..8511fb6c53d2 100644
@@ -1,7 +1,7 @@
 # List of programs to build
-hostprogs-y := watch_test
+hostprogs := watch_test
 
 # Tell kbuild to always build the programs
-always := $(hostprogs-y)
+always-y := $(hostprogs)
 
 HOSTCFLAGS_watch_test.o += -I$(objtree)/usr/include
Signature · 1 line
2.20.1
#1 lore raw
Quoted 10 lines · Anders Roxell

When I did an allmodconfig build the following warning showed up:

scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead scripts/Makefile.lib:12: 'hostprogs-y' and 'hostprogs-m' are deprecated. Please use 'hostprogs' instead

Rework to use the new 'always-y' and 'hostprogs'.

Fixes 631ec151fd96 ("Add sample notification program")

I've folded this in, thanks.

David