NetBSD Problem Report #59716

From paul@whooppee.com  Mon Oct 20 07:34:58 2025
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D26FF1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 20 Oct 2025 07:34:58 +0000 (UTC)
Message-Id: <20251020073455.938AB49AD14@speedy.whooppee.com>
Date: Mon, 20 Oct 2025 00:34:55 -0700 (PDT)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: Need a mechanism to more selectively build and install modules
X-Send-Pr-Version: 3.95

>Number:         59716
>Category:       kern
>Synopsis:       Need a mechanism to more selectively build and install modules
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 20 07:35:00 +0000 2025
>Originator:     Paul Goyette
>Release:        NetBSD 11.99.3
>Organization:
+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | paul@whooppee.com    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette@netbsd.org  |
| & Network Engineer  |                          | pgoyette99@gmail.com |
+---------------------+--------------------------+----------------------+
>Environment:


System: NetBSD speedy.whooppee.com 11.99.3 NetBSD 11.99.3 (SPEEDY 2025-10-02 05:04:28 UTC) #0: Thu Oct 2 08:10:57 UTC 2025 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
We need a mechanism to selectively build and install modules based on
bus attachment rather than only selecting based on machine and/or
architecture.  Ref the following comment in $SRC/sys/modules/Makefile
starting at line 484

	# For now, all of these are disabled, pending resolution of how to deal
	# with attachment-specific modules and bus-specific modules (as opposed
	# to machine- or architecture-specific modules)

	.if 0
	...

Note that there are more than 30 modules listed which aren't even
being compile-tested due to this lack of selectivity.

(Well, a few of them _are_ being built, tested, and used on my own
system, but my testing of even these few cannot be assumed to continue
indefinitely!)

>How-To-Repeat:

>Fix:


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.