]> git.proxmox.com Git - mirror_spl-debian.git/blob - config/kernel-trim-unused-symbols.m4
dch: close a bug and refresh timestamp.
[mirror_spl-debian.git] / config / kernel-trim-unused-symbols.m4
1 dnl #
2 dnl # config trim unused symbols,
3 dnl # Verify the kernel has CONFIG_TRIM_UNUSED_KSYMS DISABLED.
4 dnl #
5 AC_DEFUN([SPL_AC_CONFIG_TRIM_UNUSED_KSYMS], [
6 AC_MSG_CHECKING([whether CONFIG_TRIM_UNUSED_KSYM is disabled])
7 SPL_LINUX_TRY_COMPILE([
8 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
9 #error CONFIG_TRIM_UNUSED_KSYMS not defined
10 #endif
11 ],[ ],[
12 AC_MSG_RESULT([yes])
13 ],[
14 AC_MSG_RESULT([no])
15 AC_MSG_ERROR([
16 *** This kernel has unused symbols trimming enabled, please disable.
17 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set.])
18 ])
19 ])