diff options
| -rw-r--r-- | samples/Makefile | 24 | ||||
| -rw-r--r-- | samples/seccomp/Makefile | 2 | ||||
| -rw-r--r-- | samples/vfs/Makefile | 2 |
3 files changed, 22 insertions, 6 deletions
diff --git a/samples/Makefile b/samples/Makefile index 8e096e0d45d1..debf8925f06f 100644 --- a/samples/Makefile +++ b/samples/Makefile | |||
| @@ -1,6 +1,22 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # Makefile for Linux samples code | 2 | # Makefile for Linux samples code |
| 2 | 3 | ||
| 3 | obj-y += kobject/ kprobes/ trace_events/ livepatch/ \ | 4 | obj-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs/ |
| 4 | hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \ | 5 | obj-$(CONFIG_SAMPLE_CONFIGFS) += configfs/ |
| 5 | configfs/ connector/ v4l/ trace_printk/ \ | 6 | obj-$(CONFIG_SAMPLE_CONNECTOR) += connector/ |
| 6 | vfio-mdev/ vfs/ qmi/ binderfs/ pidfd/ | 7 | subdir-y += hidraw |
| 8 | obj-$(CONFIG_SAMPLE_HW_BREAKPOINT) += hw_breakpoint/ | ||
| 9 | obj-$(CONFIG_SAMPLE_KDB) += kdb/ | ||
| 10 | obj-$(CONFIG_SAMPLE_KFIFO) += kfifo/ | ||
| 11 | obj-$(CONFIG_SAMPLE_KOBJECT) += kobject/ | ||
| 12 | obj-$(CONFIG_SAMPLE_KPROBES) += kprobes/ | ||
| 13 | obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch/ | ||
| 14 | subdir-y += pidfd | ||
| 15 | obj-$(CONFIG_SAMPLE_QMI_CLIENT) += qmi/ | ||
| 16 | obj-$(CONFIG_SAMPLE_RPMSG_CLIENT) += rpmsg/ | ||
| 17 | subdir-$(CONFIG_SAMPLE_SECCOMP) += seccomp | ||
| 18 | obj-$(CONFIG_SAMPLE_TRACE_EVENTS) += trace_events/ | ||
| 19 | obj-$(CONFIG_SAMPLE_TRACE_PRINTK) += trace_printk/ | ||
| 20 | obj-$(CONFIG_VIDEO_PCI_SKELETON) += v4l/ | ||
| 21 | obj-y += vfio-mdev/ | ||
| 22 | subdir-$(CONFIG_SAMPLE_VFS) += vfs | ||
diff --git a/samples/seccomp/Makefile b/samples/seccomp/Makefile index 00e0b5e90bd0..009775b52538 100644 --- a/samples/seccomp/Makefile +++ b/samples/seccomp/Makefile | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | ifndef CROSS_COMPILE | 2 | ifndef CROSS_COMPILE |
| 3 | hostprogs-$(CONFIG_SAMPLE_SECCOMP) := bpf-fancy dropper bpf-direct user-trap | 3 | hostprogs-y := bpf-fancy dropper bpf-direct user-trap |
| 4 | 4 | ||
| 5 | HOSTCFLAGS_bpf-fancy.o += -I$(objtree)/usr/include | 5 | HOSTCFLAGS_bpf-fancy.o += -I$(objtree)/usr/include |
| 6 | HOSTCFLAGS_bpf-fancy.o += -idirafter $(objtree)/include | 6 | HOSTCFLAGS_bpf-fancy.o += -idirafter $(objtree)/include |
diff --git a/samples/vfs/Makefile b/samples/vfs/Makefile index 4ac9690fb3c4..a3e4ffd4c773 100644 --- a/samples/vfs/Makefile +++ b/samples/vfs/Makefile | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # List of programs to build | 1 | # List of programs to build |
| 2 | hostprogs-$(CONFIG_SAMPLE_VFS) := \ | 2 | hostprogs-y := \ |
| 3 | test-fsmount \ | 3 | test-fsmount \ |
| 4 | test-statx | 4 | test-statx |
| 5 | 5 | ||
