summaryrefslogtreecommitdiff
path: root/fs/hostfs/Makefile
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2023-02-11 00:05:08 +0300
committerRichard Weinberger <richard@nod.at>2023-04-21 00:04:40 +0300
commit8c6174503c7b7134c22072b45f92724c8a959f06 (patch)
tree64a2cd82fe4eba4e975d027f1b6640e053b7ac05 /fs/hostfs/Makefile
parentce1831fe2febf7a3a03fda43b41d7589caa022cd (diff)
downloadlinux-8c6174503c7b7134c22072b45f92724c8a959f06.tar.xz
um: hostfs: define our own API boundary
Instead of exporting the set of functions provided by glibc that are needed for hostfs_user.c, just build that into the kernel image whenever hostfs is built, and then export _those_ functions cleanly, to be independent of the libc implementation. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/hostfs/Makefile')
-rw-r--r--fs/hostfs/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/hostfs/Makefile b/fs/hostfs/Makefile
index 587bcd6e50a3..16be592e8085 100644
--- a/fs/hostfs/Makefile
+++ b/fs/hostfs/Makefile
@@ -3,9 +3,11 @@
# Licensed under the GPL
#
-hostfs-objs := hostfs_kern.o hostfs_user.o
+hostfs-objs := hostfs_kern.o
-obj-y :=
+hostfs-builtin-$(CONFIG_HOSTFS) += hostfs_user.o hostfs_user_exp.o
+
+obj-y := $(hostfs-builtin-y) $(hostfs-builtin-m)
obj-$(CONFIG_HOSTFS) += hostfs.o
include $(srctree)/arch/um/scripts/Makefile.rules