summaryrefslogtreecommitdiff
path: root/samples/seccomp
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-05-09 10:00:19 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-05-18 11:29:01 +0900
commit6944a06d141b9afea38b15da08bd773d90abef0c (patch)
tree725f77576509ada9edbca36d976a3034e67fe6a6 /samples/seccomp
parenta3bc88645e9293f5aaac9c05a185d9f1c0594c6c (diff)
downloadlwn-6944a06d141b9afea38b15da08bd773d90abef0c.tar.gz
lwn-6944a06d141b9afea38b15da08bd773d90abef0c.zip
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 <yamada.masahiro@socionext.com>
Diffstat (limited to 'samples/seccomp')
-rw-r--r--samples/seccomp/Makefile2
1 files changed, 1 insertions, 1 deletions
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 @@
# SPDX-License-Identifier: GPL-2.0
ifndef CROSS_COMPILE
-hostprogs-$(CONFIG_SAMPLE_SECCOMP) := bpf-fancy dropper bpf-direct user-trap
+hostprogs-y := bpf-fancy dropper bpf-direct user-trap
HOSTCFLAGS_bpf-fancy.o += -I$(objtree)/usr/include
HOSTCFLAGS_bpf-fancy.o += -idirafter $(objtree)/include