diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-04-29 05:45:27 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-17 11:52:02 +0200 |
commit | 88a8e278ff0b6b461bf39d4ace17384e976a3f3f (patch) | |
tree | 7ff6d535b41f4272933ba67f4a1dd56eb34356e1 /samples/Kconfig | |
parent | samples: timers: use 'userprogs' syntax (diff) | |
download | linux-88a8e278ff0b6b461bf39d4ace17384e976a3f3f.tar.xz 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/Kconfig')
-rw-r--r-- | samples/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/samples/Kconfig b/samples/Kconfig index a8629a0d4f96..5005f74ac0eb 100644 --- a/samples/Kconfig +++ b/samples/Kconfig @@ -205,5 +205,8 @@ config SAMPLE_INTEL_MEI help Build a sample program to work with mei device. +config SAMPLE_WATCHDOG + bool "watchdog sample" + depends on CC_CAN_LINK endif # SAMPLES |