Skip to content

bsdkm: fix bsdkm build with rdseed.#10736

Open
philljj wants to merge 1 commit into
wolfSSL:masterfrom
philljj:bsdkm_rdseed
Open

bsdkm: fix bsdkm build with rdseed.#10736
philljj wants to merge 1 commit into
wolfSSL:masterfrom
philljj:bsdkm_rdseed

Conversation

@philljj

@philljj philljj commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

Fix build error with rdseed.

Testing

@philljj philljj self-assigned this Jun 18, 2026
Copilot AI review requested due to automatic review settings June 18, 2026 20:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR targets the FreeBSD kernel module (bsdkm) build, addressing a build failure when RDSEED support is enabled by ensuring wolfcrypt/src/random.c receives the necessary compile flag adjustments to find x86 intrinsic headers.

Changes:

  • Updates bsdkm/Makefile to include random.c in the set of sources receiving special per-file CFLAGS adjustments intended for x86 intrinsic/SIMD builds.

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

Comment thread bsdkm/Makefile
Comment on lines 84 to 86
.if ${ENABLED_ASM} == "yes"
.for f in chacha dilithium poly1305 sha sha256 sha3 sha512
.for f in chacha dilithium poly1305 sha sha256 sha3 sha512 random
CFLAGS.${f}.c += ${WOLFKMOD_SIMD_BASE}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure worth the extra complexity for an obscure build scenario.

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