mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 17:23:36 +00:00
87ecdf4fc9
This userspace program includes UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample program should be built for the target as well. Kbuild now supports 'userprogs' for that. 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>
27 lines
1.0 KiB
Makefile
27 lines
1.0 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Makefile for Linux samples code
|
|
|
|
obj-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs/
|
|
obj-$(CONFIG_SAMPLE_CONFIGFS) += configfs/
|
|
obj-$(CONFIG_SAMPLE_CONNECTOR) += connector/
|
|
subdir-$(CONFIG_SAMPLE_HIDRAW) += hidraw
|
|
obj-$(CONFIG_SAMPLE_HW_BREAKPOINT) += hw_breakpoint/
|
|
obj-$(CONFIG_SAMPLE_KDB) += kdb/
|
|
obj-$(CONFIG_SAMPLE_KFIFO) += kfifo/
|
|
obj-$(CONFIG_SAMPLE_KOBJECT) += kobject/
|
|
obj-$(CONFIG_SAMPLE_KPROBES) += kprobes/
|
|
obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch/
|
|
subdir-$(CONFIG_SAMPLE_PIDFD) += pidfd
|
|
obj-$(CONFIG_SAMPLE_QMI_CLIENT) += qmi/
|
|
obj-$(CONFIG_SAMPLE_RPMSG_CLIENT) += rpmsg/
|
|
subdir-$(CONFIG_SAMPLE_SECCOMP) += seccomp
|
|
obj-$(CONFIG_SAMPLE_TRACE_EVENTS) += trace_events/
|
|
obj-$(CONFIG_SAMPLE_TRACE_PRINTK) += trace_printk/
|
|
obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace/
|
|
obj-$(CONFIG_SAMPLE_TRACE_ARRAY) += ftrace/
|
|
subdir-$(CONFIG_SAMPLE_UHID) += uhid
|
|
obj-$(CONFIG_VIDEO_PCI_SKELETON) += v4l/
|
|
obj-y += vfio-mdev/
|
|
subdir-$(CONFIG_SAMPLE_VFS) += vfs
|
|
obj-$(CONFIG_SAMPLE_INTEL_MEI) += mei/
|