summaryrefslogtreecommitdiff
path: root/samples/Kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-04-29 06:45:26 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2020-05-17 12:52:02 +0300
commitb98ccc7150c7bfce60671ad1928d5f1220446b39 (patch)
tree0d69f1aad4f3d65e665e73f14b6dce51d9e23843 /samples/Kconfig
parent87ffbba9a9a1a74da44917a207c7e57dac98f2f8 (diff)
downloadlinux-b98ccc7150c7bfce60671ad1928d5f1220446b39.tar.xz
samples: timers: 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/Kconfig')
-rw-r--r--samples/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/samples/Kconfig b/samples/Kconfig
index 2322e11e8b80..a8629a0d4f96 100644
--- a/samples/Kconfig
+++ b/samples/Kconfig
@@ -135,6 +135,10 @@ config SAMPLE_SECCOMP
Build samples of seccomp filters using various methods of
BPF filter construction.
+config SAMPLE_TIMER
+ bool "Timer sample"
+ depends on CC_CAN_LINK && HEADERS_INSTALL
+
config SAMPLE_UHID
bool "UHID sample"
depends on CC_CAN_LINK && HEADERS_INSTALL