diff options
author | Brian Behlendorf <[email protected]> | 2013-01-29 16:13:07 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-01-29 16:35:23 -0800 |
commit | de081a2ab4e911d2308b4f4055558f1d666f6b63 (patch) | |
tree | 01e7373fb9f7f3a1e186a3b98bf799abaa1e2372 /config | |
parent | 3cbfd259b709e3561b4b407d4a27eeec6dc201d0 (diff) |
Check for KALLSYMS
Check at ./configure time that the kernel was built with kallsyms
support. If the kernel doesn't have CONFIG_KALLSYMS defined the
modules will still compile cleanly but will not be loadable. So
we really want to catch this early during ./configure. Note that
we do not require CONFIG_KALLSYMS_ALL but it may be safely defined.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #6
Diffstat (limited to 'config')
-rw-r--r-- | config/spl-build.m4 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4 index dae1ac4fc..e9695de9a 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -82,6 +82,7 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [ SPL_AC_KERN_PATH_PARENT_HEADER SPL_AC_KERN_PATH_PARENT_SYMBOL SPL_AC_KERN_PATH_LOCKED + SPL_AC_CONFIG_KALLSYMS SPL_AC_CONFIG_ZLIB_INFLATE SPL_AC_CONFIG_ZLIB_DEFLATE SPL_AC_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE @@ -2130,6 +2131,26 @@ AC_DEFUN([SPL_AC_KERN_PATH_LOCKED], [ ]) dnl # +dnl # /proc/kallsyms support, +dnl # Verify the kernel has CONFIG_KALLSYMS support enabled. +dnl # +AC_DEFUN([SPL_AC_CONFIG_KALLSYMS], [ + AC_MSG_CHECKING([whether CONFIG_KALLSYMS is defined]) + SPL_LINUX_TRY_COMPILE([ + #if !defined(CONFIG_KALLSYMS) + #error CONFIG_KALLSYMS not defined + #endif + ],[ ],[ + AC_MSG_RESULT([yes]) + ],[ + AC_MSG_RESULT([no]) + AC_MSG_ERROR([ + *** This kernel does not include the required kallsyms support. + *** Rebuild the kernel with CONFIG_KALLSYMS=y set.]) + ]) +]) + +dnl # dnl # zlib inflate compat, dnl # Verify the kernel has CONFIG_ZLIB_INFLATE support enabled. dnl # |