Skip to content

Add support to build on NetBSD using pkgsrc packages#873

Merged
cnlohr merged 1 commit intocnlohr:masterfrom
tsutsui:build-on-netbsd
Mar 15, 2026
Merged

Add support to build on NetBSD using pkgsrc packages#873
cnlohr merged 1 commit intocnlohr:masterfrom
tsutsui:build-on-netbsd

Conversation

@tsutsui
Copy link
Copy Markdown
Contributor

@tsutsui tsutsui commented Mar 13, 2026

This adds a couple of small NetBSD/pkgsrc build fixes.

  • ch32fun.mk: check pkgsrc's default riscv64-none-elf toolchain path
  • minichlink: use pkgsrc-provided hidapi and libusb on NetBSD

With this, the tools build on my NetBSD/pkgsrc setup without local
Makefile changes.

Add a NetBSD-specific fallback for pkgsrc's default
riscv64-none-elf toolchain location in ch32fun.mk.

For minichlink on NetBSD, use pkgsrc-provided hidapi and libusb via
pkg-config, and include the external hidapi header.
@cnlohr cnlohr merged commit ade1f0a into cnlohr:master Mar 15, 2026
6 checks passed
@tsutsui tsutsui deleted the build-on-netbsd branch March 15, 2026 16:31
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