2015-05-24 11:51:18 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2023-01-28 12:31:38 -05:00
|
|
|
.PATH: ${SRCTOP}/sys/compat/linux
|
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
|
|
|
.PATH: ${SRCTOP}/sys/x86/linux
|
|
|
|
|
.endif
|
2015-05-24 11:51:18 -04:00
|
|
|
|
|
|
|
|
KMOD= linux_common
|
2016-07-10 04:22:04 -04:00
|
|
|
SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \
|
2022-08-26 10:34:15 -04:00
|
|
|
linux_dummy.c linux_errno.c linux_netlink.c \
|
2023-03-31 07:56:59 -04:00
|
|
|
linux.c device_if.h vnode_if.h bus_if.h opt_inet6.h opt_inet.h \
|
|
|
|
|
opt_netlink.h
|
2015-05-24 11:51:18 -04:00
|
|
|
|
2022-05-23 06:16:26 -04:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
2022-05-23 06:19:07 -04:00
|
|
|
SRCS+= linux_x86.c linux_vdso_selector_x86.c
|
2022-05-23 06:16:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
2015-05-24 11:51:18 -04:00
|
|
|
EXPORT_SYMS=
|
|
|
|
|
EXPORT_SYMS+= linux_get_osname
|
|
|
|
|
EXPORT_SYMS+= linux_get_osrelease
|
2022-01-08 10:41:53 -05:00
|
|
|
EXPORT_SYMS+= linux_use_real_ifname
|
2015-05-24 11:51:18 -04:00
|
|
|
|
2019-05-13 14:28:40 -04:00
|
|
|
.if !defined(KERNBUILDDIR)
|
|
|
|
|
.warning Building Linuxulator outside of a kernel does not make sense
|
|
|
|
|
.endif
|
|
|
|
|
|
2021-11-07 03:42:24 -05:00
|
|
|
EXPORT_SYMS= YES
|
|
|
|
|
|
2015-05-24 11:51:18 -04:00
|
|
|
.include <bsd.kmod.mk>
|