summaryrefslogtreecommitdiff
path: root/samples/hidraw/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'samples/hidraw/Makefile')
-rw-r--r--samples/hidraw/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/samples/hidraw/Makefile b/samples/hidraw/Makefile
index dec1b22adf54..594d989e5486 100644
--- a/samples/hidraw/Makefile
+++ b/samples/hidraw/Makefile
@@ -1,10 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
-# List of programs to build
-hostprogs-y := hid-example
+userprogs-always-y += hid-example
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_hid-example.o += -I$(objtree)/usr/include
-
-all: hid-example
+userccflags += -I usr/include