samples: timers: use 'userprogs' syntax
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 29 Apr 2020 03:45:26 +0000 (12:45 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 17 May 2020 09:52:02 +0000 (18:52 +0900)
commitb98ccc7150c7bfce60671ad1928d5f1220446b39
tree0d69f1aad4f3d65e665e73f14b6dce51d9e23843
parent87ffbba9a9a1a74da44917a207c7e57dac98f2f8
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>
samples/Kconfig
samples/Makefile
samples/timers/Makefile