forked from Xilinx/linux-xlnx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: guard sub-directories with CONFIG options
Do not descend to sub-directories when unneeded. I used subdir-$(CONFIG_...) for hidraw, seccomp, and vfs because they only contain host programs. While we are here, let's add SPDX License tag, and sort the directories alphabetically. Signed-off-by: Masahiro Yamada <[email protected]>
- Loading branch information
Showing
3 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Makefile for Linux samples code | ||
|
||
obj-y += kobject/ kprobes/ trace_events/ livepatch/ \ | ||
hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \ | ||
configfs/ connector/ v4l/ trace_printk/ \ | ||
vfio-mdev/ vfs/ qmi/ binderfs/ pidfd/ | ||
obj-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs/ | ||
obj-$(CONFIG_SAMPLE_CONFIGFS) += configfs/ | ||
obj-$(CONFIG_SAMPLE_CONNECTOR) += connector/ | ||
subdir-y += 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-y += 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_VIDEO_PCI_SKELETON) += v4l/ | ||
obj-y += vfio-mdev/ | ||
subdir-$(CONFIG_SAMPLE_VFS) += vfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# List of programs to build | ||
hostprogs-$(CONFIG_SAMPLE_VFS) := \ | ||
hostprogs-y := \ | ||
test-fsmount \ | ||
test-statx | ||
|
||
|