aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/samples/watchdog/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-04-29 12:45:27 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-05-17 18:52:02 +0900
commit88a8e278ff0b6b461bf39d4ace17384e976a3f3f (patch)
tree7ff6d535b41f4272933ba67f4a1dd56eb34356e1 /samples/watchdog/Makefile
parentsamples: timers: use 'userprogs' syntax (diff)
downloadwireguard-linux-88a8e278ff0b6b461bf39d4ace17384e976a3f3f.tar.xz
wireguard-linux-88a8e278ff0b6b461bf39d4ace17384e976a3f3f.zip
samples: watchdog: use 'userprogs' syntax
Kbuild now supports the 'userprogs' syntax to compile userspace programs for the same architecture as the kernel. Add the entry to samples/Makefile to put this into the build bot coverage. I also added the CONFIG option guarded by 'depends on CC_CAN_LINK' because $(CC) may not provide libc. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'samples/watchdog/Makefile')
-rw-r--r--samples/watchdog/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/samples/watchdog/Makefile b/samples/watchdog/Makefile
index a9430fa60253..17384cfb387e 100644
--- a/samples/watchdog/Makefile
+++ b/samples/watchdog/Makefile
@@ -1,9 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
-CC := $(CROSS_COMPILE)gcc
-PROGS := watchdog-simple
-
-all: $(PROGS)
-
-clean:
- rm -fr $(PROGS)
-
+userprogs := watchdog-simple
+always-y := $(userprogs)