2008-12-05 17:46:11 +00:00
|
|
|
dnl #
|
|
|
|
dnl # Default ZFS kernel configuration
|
|
|
|
dnl #
|
|
|
|
AC_DEFUN([ZFS_AC_CONFIG_KERNEL], [
|
|
|
|
dnl # Kernel build make options
|
|
|
|
dnl # KERNELMAKE_PARAMS="V=1" # Enable verbose module build
|
|
|
|
KERNELMAKE_PARAMS=
|
|
|
|
|
|
|
|
dnl # Kernel build cpp flags
|
|
|
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL "
|
2008-12-05 23:03:48 +00:00
|
|
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-unknown-pragmas "
|
2008-12-05 17:46:11 +00:00
|
|
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -I$splsrc -I$splsrc/include -I$TOPDIR"
|
|
|
|
|
|
|
|
dnl # Required for pread() functionality an other GNU goodness
|
|
|
|
HOSTCFLAGS="$HOSTCFLAGS -ggdb -O2 -std=c99 "
|
|
|
|
HOSTCFLAGS="$HOSTCFLAGS -D_GNU_SOURCE -D__EXTENSIONS__ "
|
|
|
|
|
|
|
|
dnl # XXX: Quiet warnings not covered by the gcc-* patches
|
|
|
|
dnl # XXX: Remove once all the warnings are resolved
|
|
|
|
HOSTCFLAGS="$HOSTCFLAGS -Wno-switch -Wno-unused -Wno-missing-braces "
|
2008-12-06 00:53:29 +00:00
|
|
|
HOSTCFLAGS="$HOSTCFLAGS -Wno-unknown-pragmas -Wno-parentheses "
|
2008-12-05 17:46:11 +00:00
|
|
|
HOSTCFLAGS="$HOSTCFLAGS -Wno-uninitialized -fno-strict-aliasing "
|
|
|
|
|
|
|
|
dnl # Expected defines not covered by zfs_config.h or spl_config.h
|
|
|
|
HOSTCFLAGS="$HOSTCFLAGS -DHAVE_SPL -D_POSIX_PTHREAD_SEMANTICS "
|
|
|
|
HOSTCFLAGS="$HOSTCFLAGS -D_FILE_OFFSET_BITS=64 "
|
|
|
|
HOSTCFLAGS="$HOSTCFLAGS -D_LARGEFILE64_SOURCE -D_REENTRANT "
|
|
|
|
HOSTCFLAGS="$HOSTCFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\" "
|
|
|
|
|
|
|
|
dnl # Expected default include path
|
|
|
|
HOSTCFLAGS="$HOSTCFLAGS -I$TOPDIR "
|
|
|
|
|
|
|
|
if test "$kernelbuild" != "$kernelsrc"; then
|
|
|
|
KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$kernelbuild"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(KERNELMAKE_PARAMS)
|
|
|
|
AC_SUBST(KERNELCPPFLAGS)
|
|
|
|
AC_SUBST(HOSTCFLAGS)
|
2008-12-16 00:46:34 +00:00
|
|
|
|
|
|
|
ZFS_AC_CONFIG_KERNEL_BIO_ARGS
|
2008-12-05 17:46:11 +00:00
|
|
|
])
|