summaryrefslogtreecommitdiff
path: root/samples/vfs/Makefile
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-11-01 23:36:32 +0000
committerAl Viro <viro@zeniv.linux.org.uk>2019-02-28 04:22:56 -0500
commit276004904c3f7f9c5570d2f7776c2dac885decbb (patch)
treea307bd9f27fcb0b51622814b74af7a467cdf5bb4 /samples/vfs/Makefile
parent889fcd98ab91abf62e71a48d282db852ab8687ba (diff)
vfs: Add a sample program for the new mount APIvfs-mount-syscalls
Add a sample program to demonstrate fsopen/fsmount/move_mount to mount something. To make it compile on all arches, irrespective of whether or not syscall numbers are assigned, define the syscall number to -1 if it isn't to cause the kernel to return -ENOSYS. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'samples/vfs/Makefile')
-rw-r--r--samples/vfs/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/samples/vfs/Makefile b/samples/vfs/Makefile
new file mode 100644
index 000000000000..4ac9690fb3c4
--- /dev/null
+++ b/samples/vfs/Makefile
@@ -0,0 +1,10 @@
+# List of programs to build
+hostprogs-$(CONFIG_SAMPLE_VFS) := \
+ test-fsmount \
+ test-statx
+
+# Tell kbuild to always build the programs
+always := $(hostprogs-y)
+
+HOSTCFLAGS_test-fsmount.o += -I$(objtree)/usr/include
+HOSTCFLAGS_test-statx.o += -I$(objtree)/usr/include