diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-01-09 16:08:22 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-01-09 16:08:22 +0000 |
commit | d30e84112a87337209ea45237f3d9b12e29abaa9 (patch) | |
tree | 25ceb202feb35d8ee393e9616532af439b0df74a /sys/modules/linux_common | |
parent | e6de850e0541afec795082daf12bf197bd4fca79 (diff) | |
download | FreeBSD-src-d30e84112a87337209ea45237f3d9b12e29abaa9.zip FreeBSD-src-d30e84112a87337209ea45237f3d9b12e29abaa9.tar.gz |
MFC r283421:
Introduce a new module linux_common.ko which is intended for the
following primary purposes:
1. Remove the dependency of linsysfs and linprocfs modules from linux.ko,
which will be architecture specific on amd64.
2. Incorporate into linux_common.ko general code for platforms on which
we'll support two Linuxulator modules (for both instruction set - 32 & 64 bit).
3. Move malloc(9) declaration to linux_common.ko, to enable getting memory
usage statistics properly.
Currently linux_common.ko incorporates a code from linux_mib.c and linux_util.c
and linprocfs, linsysfs and linux kernel modules depend on linux_common.ko.
Temporarily remove dtrace garbage from linux_mib.c and linux_util.c
Diffstat (limited to 'sys/modules/linux_common')
-rw-r--r-- | sys/modules/linux_common/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile new file mode 100644 index 0000000..4384d0b --- /dev/null +++ b/sys/modules/linux_common/Makefile @@ -0,0 +1,25 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../compat/linux + +KMOD= linux_common +SRCS= linux_common.c linux_mib.c linux_util.c \ + opt_compat.h device_if.h vnode_if.h bus_if.h + +EXPORT_SYMS= +EXPORT_SYMS+= linux_emul_path +EXPORT_SYMS+= linux_ioctl_register_handler +EXPORT_SYMS+= linux_ioctl_unregister_handler +EXPORT_SYMS+= linux_get_osname +EXPORT_SYMS+= linux_get_osrelease + +.if !defined(KERNBUILDDIR) +.if defined(DEBUG) +CFLAGS+=-DDEBUG +.endif +.if defined(KTR) +CFLAGS+=-DKTR +.endif +.endif + +.include <bsd.kmod.mk> |