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=
|
|
|
|
|
2009-01-09 19:29:00 +00:00
|
|
|
# FIXME: Quiet warnings not covered by the gcc-* patches. We should
|
|
|
|
# FIXME: consider removing this as soon as we reasonably can
|
2009-03-11 20:14:08 +00:00
|
|
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -Wall -Wstrict-prototypes -Werror"
|
|
|
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-switch -Wno-unused"
|
|
|
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-missing-braces -Wno-parentheses"
|
|
|
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-uninitialized -fno-strict-aliasing"
|
2008-12-05 17:46:11 +00:00
|
|
|
|
2009-01-09 19:29:00 +00:00
|
|
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL "
|
|
|
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\" "
|
2008-12-05 17:46:11 +00:00
|
|
|
|
2009-01-09 19:29:00 +00:00
|
|
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -I$splsrc -I$splsrc/include -I$TOPDIR"
|
2008-12-05 17:46:11 +00:00
|
|
|
|
|
|
|
if test "$kernelbuild" != "$kernelsrc"; then
|
|
|
|
KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$kernelbuild"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(KERNELMAKE_PARAMS)
|
|
|
|
AC_SUBST(KERNELCPPFLAGS)
|
2008-12-16 00:46:34 +00:00
|
|
|
|
|
|
|
ZFS_AC_CONFIG_KERNEL_BIO_ARGS
|
2008-12-05 17:46:11 +00:00
|
|
|
])
|