@@ -791,12 +791,14 @@ then
791791fi
792792
793793#
794- # FreeBSD
795- AC_ARG_WITH ( [ bsd -source] ,
796- [ AS_HELP_STRING ( [ --with-bsd -source=PATH] ,[ PATH to root of FreeBSD kernel build tree] ) ] ,
797- [ BSDKM_ROOT =$withval] ,
798- [ BSDKM_ROOT =""] )
794+ # Kernel
795+ AC_ARG_WITH ( [ kernel -source] ,
796+ [ AS_HELP_STRING ( [ --with-kernel -source=PATH] ,[ PATH to root of kernel build tree] ) ] ,
797+ [ KERNEL_ROOT =$withval] ,
798+ [ KERNEL_ROOT =""] )
799799
800+ #
801+ # FreeBSD
800802AC_ARG_WITH ( [ bsd-export-syms] ,
801803 [ AS_HELP_STRING ( [ --with-bsd-export-syms=LIST] ,[ LIST of symbols to export] ) ] ,
802804 [ BSDKM_EXPORT_SYMS=$withval] ,
@@ -818,11 +820,11 @@ then
818820 AM_CFLAGS="$AM_CFLAGS -DXMALLOC_OVERRIDE -DWOLFCRYPT_ONLY"
819821 AM_CFLAGS="$AM_CFLAGS -DNO_ASN_TIME"
820822
821- if test "$BSDKM_ROOT " = ""; then
823+ if test "$KERNEL_ROOT " = ""; then
822824 AC_PATH_DEFAULT_BSDKM_SOURCE
823- BSDKM_ROOT ="$DEFAULT_BSDKM_ROOT"
825+ KERNEL_ROOT ="$DEFAULT_BSDKM_ROOT"
824826 fi
825- AC_SUBST ( [ BSDKM_ROOT ] )
827+ AC_SUBST ( [ KERNEL_ROOT ] )
826828 AC_SUBST ( [ BSDKM_EXPORT_SYMS] )
827829
828830fi
@@ -11383,7 +11385,7 @@ echo " * SIMD+FPU enable as flags: $ASFLAGS_FPUSIMD_ENABLE" && \
1138311385echo " * Linux kernel module PIE: $ENABLED_LINUXKM_PIE"
1138411386
1138511387test "$ENABLED_BSDKM" = "yes" && \
11386- echo " * FreeBSD Kernel Build Root: $BSDKM_ROOT "
11388+ echo " * FreeBSD Kernel Build Root: $KERNEL_ROOT "
1138711389
1138811390echo " * Debug enabled: $ax_enable_debug"
1138911391echo " * Coverage enabled: $ax_enable_coverage"
0 commit comments