Skip to content

Commit 06840ad

Browse files
committed
configure: clean up some shared kernel vars.
1 parent fa790d5 commit 06840ad

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

configure.ac

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -736,19 +736,26 @@ then
736736
DEF_FAST_MATH="no"
737737
fi
738738

739+
#
740+
# kernel mode variables. Shared by linuxkm, freebsdkm.
741+
KERNEL_ROOT=""
742+
HAVE_KERNEL_MODE=no
743+
744+
# Kernel root source tree.
745+
AC_ARG_WITH([kernel-source],
746+
[AS_HELP_STRING([--with-kernel-source=PATH],[PATH to root of kernel build tree])],
747+
[KERNEL_ROOT=$withval])
748+
749+
# For backwards comptability.
739750
AC_ARG_WITH([linux-source],
740751
[AS_HELP_STRING([--with-linux-source=PATH],[PATH to root of Linux kernel build tree])],
741-
[KERNEL_ROOT=$withval],
742-
[KERNEL_ROOT=""])
752+
[KERNEL_ROOT=$withval])
743753

744754
AC_ARG_WITH([linux-arch],
745755
[AS_HELP_STRING([--with-linux-arch=arch],[built arch (SRCARCH) of Linux kernel build tree])],
746756
[KERNEL_ARCH=$withval],
747757
[KERNEL_ARCH=""])
748758

749-
# Default to no kernel mode.
750-
HAVE_KERNEL_MODE=no
751-
752759
if test "x$ENABLED_LINUXKM" = "xyes"
753760
then
754761
HAVE_KERNEL_MODE=yes
@@ -790,13 +797,6 @@ then
790797
AM_CFLAGS="$AM_CFLAGS -DNO_DEV_RANDOM -DNO_WRITEV -DNO_STDIO_FILESYSTEM -DWOLFSSL_NO_SOCK -DWOLFSSL_USER_IO"
791798
fi
792799

793-
#
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=""])
799-
800800
#
801801
# FreeBSD
802802
AC_ARG_WITH([bsd-export-syms],

0 commit comments

Comments
 (0)