2020-05-16 11:18:58

by Valdis Klētnieks

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

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 <[email protected]>

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


2020-05-18 14:57:57

by David Howells

[permalink] [raw]
Subject: Re: [PATCH] watch_queue: sample: Update makefile to fix deprecated variables

Valdis Klētnieks <[email protected]> wrote:

> 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 <[email protected]>

I've folded this in, thanks.

David