mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
Add FreeBSD support to OpenZFS
Add the FreeBSD platform code to the OpenZFS repository. As of this commit the source can be compiled and tested on FreeBSD 11 and 12. Subsequent commits are now required to compile on FreeBSD and Linux. Additionally, they must pass the ZFS Test Suite on FreeBSD which is being run by the CI. As of this commit 1230 tests pass on FreeBSD and there are no unexpected failures. Reviewed-by: Sean Eric Fagan <sef@ixsystems.com> Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Co-authored-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #898 Closes #8987
This commit is contained in:
+20
-18
@@ -2,29 +2,31 @@ dnl #
|
||||
dnl # Default ZFS kernel configuration
|
||||
dnl #
|
||||
AC_DEFUN([ZFS_AC_CONFIG_KERNEL], [
|
||||
dnl # Setup the kernel build environment.
|
||||
ZFS_AC_KERNEL
|
||||
ZFS_AC_QAT
|
||||
AM_COND_IF([BUILD_LINUX], [
|
||||
dnl # Setup the kernel build environment.
|
||||
ZFS_AC_KERNEL
|
||||
ZFS_AC_QAT
|
||||
|
||||
dnl # Sanity checks for module building and CONFIG_* defines
|
||||
ZFS_AC_KERNEL_TEST_MODULE
|
||||
ZFS_AC_KERNEL_CONFIG_DEFINED
|
||||
dnl # Sanity checks for module building and CONFIG_* defines
|
||||
ZFS_AC_KERNEL_TEST_MODULE
|
||||
ZFS_AC_KERNEL_CONFIG_DEFINED
|
||||
|
||||
dnl # Sequential ZFS_LINUX_TRY_COMPILE tests
|
||||
ZFS_AC_KERNEL_FPU_HEADER
|
||||
ZFS_AC_KERNEL_WAIT_QUEUE_ENTRY_T
|
||||
ZFS_AC_KERNEL_MISC_MINOR
|
||||
ZFS_AC_KERNEL_DECLARE_EVENT_CLASS
|
||||
dnl # Sequential ZFS_LINUX_TRY_COMPILE tests
|
||||
ZFS_AC_KERNEL_FPU_HEADER
|
||||
ZFS_AC_KERNEL_WAIT_QUEUE_ENTRY_T
|
||||
ZFS_AC_KERNEL_MISC_MINOR
|
||||
ZFS_AC_KERNEL_DECLARE_EVENT_CLASS
|
||||
|
||||
dnl # Parallel ZFS_LINUX_TEST_SRC / ZFS_LINUX_TEST_RESULT tests
|
||||
ZFS_AC_KERNEL_TEST_SRC
|
||||
ZFS_AC_KERNEL_TEST_RESULT
|
||||
dnl # Parallel ZFS_LINUX_TEST_SRC / ZFS_LINUX_TEST_RESULT tests
|
||||
ZFS_AC_KERNEL_TEST_SRC
|
||||
ZFS_AC_KERNEL_TEST_RESULT
|
||||
|
||||
AS_IF([test "$LINUX_OBJ" != "$LINUX"], [
|
||||
KERNEL_MAKE="$KERNEL_MAKE O=$LINUX_OBJ"
|
||||
AS_IF([test "$LINUX_OBJ" != "$LINUX"], [
|
||||
KERNEL_MAKE="$KERNEL_MAKE O=$LINUX_OBJ"
|
||||
])
|
||||
|
||||
AC_SUBST(KERNEL_MAKE)
|
||||
])
|
||||
|
||||
AC_SUBST(KERNEL_MAKE)
|
||||
])
|
||||
|
||||
dnl #
|
||||
|
||||
Reference in New Issue
Block a user