Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build xpmem vs. a kernel that built modules_prepare #44

Open
tzafrir-mellanox opened this issue Feb 23, 2021 · 0 comments
Open

Comments

@tzafrir-mellanox
Copy link
Contributor

I often build modules vs. a partially-built kernel: building the target 'modules_prepare' gives a kernel that is good enough for building the module.

The configure script, however, requires Module.symvers that is not generated by this target. My very basic workaround (that does not check modules_prepare properly. And may not work with some older kernels) is:

--- a/m4/ac_path_kernel_source.m4
+++ b/m4/ac_path_kernel_source.m4
@@ -24,7 +24,7 @@ AC_DEFUN([AC_PATH_KERNEL_SOURCE_SEARCH],
         /usr/src/linux-source-${vers} \
         /usr/src/linux /lib/modules/${vers}/source
     do
-      if test -e $dir/Module.symvers ; then
+      if test -e $dir/include/generated/autoconf.h ; then
         kerneldir=`dirname $dir/Makefile`/ || continue
         no_kernel=no
         break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant