From owner-freebsd-arch Wed Nov 6 15:46:29 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9211137B401 for ; Wed, 6 Nov 2002 15:46:28 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57FD243E4A for ; Wed, 6 Nov 2002 15:46:28 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 34234AE2C5; Wed, 6 Nov 2002 15:46:28 -0800 (PST) Date: Wed, 6 Nov 2002 15:46:28 -0800 From: Alfred Perlstein To: Marcel Moolenaar Cc: arch@FreeBSD.org Subject: Re: Suggestion: modules: ARCHS variable in makefiles Message-ID: <20021106234628.GH24139@elvis.mu.org> References: <20021106231518.GA1505@dhcp01.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021106231518.GA1505@dhcp01.pn.xcllnt.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Marcel Moolenaar [021106 15:15] wrote: > Gang, > > Johns sweep over the drivers to clean up some warnings triggered a > thought in me. But enough about that, what about the following: :-) > > The way we define SUBDIR in src/sys/modules/Makefile has annoyed me > enough that I'm willing to spend a not-completely-unlimited time > to handle it roughly the same as we do for ports: The makefile for > a module lists the architectures it's supposed to work on and is > simply skipped if the current (target) architecture is not in the > list. The top-level modules Makefile simply lists *all* modules, > possibly adjusted by some unrelated knob (such as WANT_EXT2FS_MODULE > or NO_IPFILTER). This sounds interesting, how about a default rule though that without the ARCH line the module will build on all arches, have an include and exclude option. #MODULE_ARCHES= ${ALL_ARCH} # implicit. MODULE_NOARCHS= alpha # build on all but alpha. MODULE_ARCHS= i386 alpha pc98 # only build on i386, alpha and pc98. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message