mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-01 10:43:43 +00:00
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>
This commit is contained in:
parent
b98ccc7150
commit
88a8e278ff
@ -205,5 +205,8 @@ config SAMPLE_INTEL_MEI
|
|||||||
help
|
help
|
||||||
Build a sample program to work with mei device.
|
Build a sample program to work with mei device.
|
||||||
|
|
||||||
|
config SAMPLE_WATCHDOG
|
||||||
|
bool "watchdog sample"
|
||||||
|
depends on CC_CAN_LINK
|
||||||
|
|
||||||
endif # SAMPLES
|
endif # SAMPLES
|
||||||
|
@ -26,3 +26,4 @@ obj-$(CONFIG_VIDEO_PCI_SKELETON) += v4l/
|
|||||||
obj-y += vfio-mdev/
|
obj-y += vfio-mdev/
|
||||||
subdir-$(CONFIG_SAMPLE_VFS) += vfs
|
subdir-$(CONFIG_SAMPLE_VFS) += vfs
|
||||||
obj-$(CONFIG_SAMPLE_INTEL_MEI) += mei/
|
obj-$(CONFIG_SAMPLE_INTEL_MEI) += mei/
|
||||||
|
subdir-$(CONFIG_SAMPLE_WATCHDOG) += watchdog
|
||||||
|
@ -1,9 +1,3 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
CC := $(CROSS_COMPILE)gcc
|
userprogs := watchdog-simple
|
||||||
PROGS := watchdog-simple
|
always-y := $(userprogs)
|
||||||
|
|
||||||
all: $(PROGS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -fr $(PROGS)
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user