mirror of
https://github.com/opnsense/src.git
synced 2026-02-16 09:08:51 -05:00
Since we have arm64, and awaiting ppc64 Linuxulator, do not include x86 specific path to the module build for non x86 architectures. MFC after: 1 week
29 lines
703 B
Makefile
29 lines
703 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/compat/linux
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
.PATH: ${SRCTOP}/sys/x86/linux
|
|
.endif
|
|
|
|
KMOD= linux_common
|
|
SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \
|
|
linux_dummy.c linux_errno.c linux_netlink.c \
|
|
linux.c device_if.h vnode_if.h bus_if.h opt_inet6.h opt_inet.h
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
SRCS+= linux_x86.c linux_vdso_selector_x86.c
|
|
.endif
|
|
|
|
EXPORT_SYMS=
|
|
EXPORT_SYMS+= linux_emul_path
|
|
EXPORT_SYMS+= linux_get_osname
|
|
EXPORT_SYMS+= linux_get_osrelease
|
|
EXPORT_SYMS+= linux_use_real_ifname
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
.warning Building Linuxulator outside of a kernel does not make sense
|
|
.endif
|
|
|
|
EXPORT_SYMS= YES
|
|
|
|
.include <bsd.kmod.mk>
|