Skip to content

fix: dkms.conf WOLFSSL_ROOT and kernel 8.x support#17

Open
MarkAtwood wants to merge 1 commit intowolfSSL:masterfrom
MarkAtwood:fix/dkms-wolfssl-root-kernel8
Open

fix: dkms.conf WOLFSSL_ROOT and kernel 8.x support#17
MarkAtwood wants to merge 1 commit intowolfSSL:masterfrom
MarkAtwood:fix/dkms-wolfssl-root-kernel8

Conversation

@MarkAtwood
Copy link
Copy Markdown

Summary

  • dkms.conf MAKE command never passed WOLFSSL_ROOT, so DKMS builds always failed at link time. Now defaults to /usr/src/wolfssl; overridable via environment variable.
  • BUILD_EXCLUSIVE_KERNEL regex only matched kernels 3–7; extended to include 8.x.
  • Added a DKMS usage section to README.md documenting the /usr/src/wolfssl convention and the WOLFSSL_ROOT override.

Test plan

  • dkms add kernel-src/ with wolfssl at /usr/src/wolfssl — verify build succeeds
  • WOLFSSL_ROOT=/custom/path dkms install wolfguard/<version> — verify override is respected
  • Confirm dkms status reports module installed on a kernel 8.x system

Copilot AI review requested due to automatic review settings April 17, 2026 20:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes DKMS build configuration to correctly pass WOLFSSL_ROOT (with a sensible default) and updates supported kernel version matching to include 8.x; also adds documentation for DKMS usage. Additionally, this PR introduces Beads/Dolt and Claude agent configuration files, which appears unrelated to the DKMS fixes described.

Changes:

  • Update dkms.conf to pass WOLFSSL_ROOT into the DKMS make invocation and extend BUILD_EXCLUSIVE_KERNEL to match 8.x.
  • Document DKMS setup and the /usr/src/wolfssl convention (plus override) in README.md.
  • Add Beads/Dolt repo metadata, hooks, and Claude/agent configuration; update .gitignore accordingly.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
kernel-src/dkms.conf Passes WOLFSSL_ROOT into DKMS builds; expands supported kernel regex to 8.x.
README.md Adds DKMS usage docs and documents WOLFSSL_ROOT override.
CLAUDE.md Adds AI agent workflow/tooling instructions (Beads).
AGENTS.md Adds agent instructions and repeats Beads integration guidance.
.gitignore Ignores Dolt/Beads artifacts (but uses broad *.db).
.claude/settings.json Adds Claude hooks to run bd prime automatically.
.beads/** Adds Beads configuration, metadata, docs, hooks, and ignore patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread kernel-src/dkms.conf
DEST_MODULE_LOCATION="/wolfssl"

MAKE="make -j module"
MAKE="make -j WOLFSSL_ROOT=${WOLFSSL_ROOT:-/usr/src/wolfssl} module"
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WOLFSSL_ROOT is injected without quoting, so paths containing spaces (or shell-sensitive characters) will break DKMS builds. Quote the assignment so the value is passed as a single make variable (e.g., WOLFSSL_ROOT="...") while keeping the default fallback behavior.

Suggested change
MAKE="make -j WOLFSSL_ROOT=${WOLFSSL_ROOT:-/usr/src/wolfssl} module"
MAKE="make -j WOLFSSL_ROOT=\"${WOLFSSL_ROOT:-/usr/src/wolfssl}\" module"

Copilot uses AI. Check for mistakes.
Comment thread kernel-src/dkms.conf
# requires kernel 3.10 - 7.x, inclusive:
BUILD_EXCLUSIVE_KERNEL="^(([7654]\.)|(3\.1[0-9]))"
# requires kernel 3.10 - 8.x, inclusive:
BUILD_EXCLUSIVE_KERNEL="^(([87654]\.)|(3\.1[0-9]))"
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The regex is inconsistent: the major-version branch includes a \. but the 3\.1[0-9] branch does not. Adding a trailing \. to the 3.10–3.19 branch (e.g., 3\.1[0-9]\.) makes the intent clearer and avoids accidental matches on longer prefixes.

Suggested change
BUILD_EXCLUSIVE_KERNEL="^(([87654]\.)|(3\.1[0-9]))"
BUILD_EXCLUSIVE_KERNEL="^(([87654]\.)|(3\.1[0-9]\.))"

Copilot uses AI. Check for mistakes.
Comment thread .beads/metadata.json Outdated
Comment on lines +1 to +7
{
"database": "dolt",
"backend": "dolt",
"dolt_mode": "embedded",
"dolt_database": "wolfguard",
"project_id": "9f17adae-2663-4f93-a3e8-4a774052e480"
} No newline at end of file
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description/title focus on DKMS + kernel 8.x support, but the diff also introduces Beads/Dolt metadata, hooks, and Claude/agent configuration across multiple new files. This is a significant scope expansion; either split Beads/agent tooling into a separate PR or update the PR description (and possibly title) to explicitly include that tooling change and its rationale.

Copilot uses AI. Check for mistakes.
@MarkAtwood MarkAtwood requested a review from douzzer April 17, 2026 21:10
Pass WOLFSSL_ROOT to make so DKMS builds can find the wolfssl
tree. Defaults to /usr/src/wolfssl; overridable via environment.

Extend BUILD_EXCLUSIVE_KERNEL regex to cover kernel 8.x.

Add DKMS usage section to README.md.
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