[PATCH] watch_queue: sample: Update makefile to fix deprecated variables

From: Valdis KlÄtnieks
Date: Sat May 16 2020 - 07:16:08 EST


A recent commit started warning for deprecated makefile variables.
Turns out there was an in-tree user, so update it.

Signed-off-by: Valdis Kletnieks <valdis.kletnieks@xxxxxx>

diff --git a/samples/watch_queue/Makefile b/samples/watch_queue/Makefile
index eec00dd0a8df..8511fb6c53d2 100644
--- a/samples/watch_queue/Makefile
+++ b/samples/watch_queue/Makefile
@@ -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