Skip to content

Makefile: allow forcing kernel module build or skip #40

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

lxin
Copy link
Owner

@lxin lxin commented Apr 12, 2025

Previously, whether to build the QUIC kernel modules was determined automatically by checking if /lib/modules/$(uname -r)/kernel/net/quic existed, assuming the module was already built into the kernel.

This patch introduces a --with/without-modules configure option to let users explicitly control module building:

--with-modules or --with-modules=yes: force building the modules

--without-modules or --with-modules=no: skip building the modules

If this option is not provided, the build system will continue to detect module presence automatically using the existing logic.

Note: If QUIC is already built into the kernel, the system uses the existing header file at /usr/include/linux/quic.h to build libquic, and skips installing a duplicate copy in libquic/Makefile.am.

Additionally, fix the workaround in tests/interop/Dockerfile.

Previously, whether to build the QUIC kernel modules was determined
automatically by checking if /lib/modules/$(uname -r)/kernel/net/quic
existed, assuming the module was already built into the kernel.

This patch introduces a --with/without-modules configure option to
let users explicitly control module building:

  --with-modules or --with-modules=yes: force building the modules

  --without-modules or --with-modules=no: skip building the modules

If this option is not provided, the build system will continue to
detect module presence automatically using the existing logic.

Note: If QUIC is already built into the kernel, the system uses the
existing header file at /usr/include/linux/quic.h to build libquic,
and skips installing a duplicate copy in libquic/Makefile.am.

Additionally, fix the workaround in tests/interop/Dockerfile.

Signed-off-by: Xin Long <[email protected]>
@metze-samba
Copy link
Contributor

Thanks! It seems to work. However I guess it would also be useful to only build and install the module without the library.

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

Successfully merging this pull request may close these issues.

2 participants