Subject: Re: 3.0.1: pf as an LKM and SMP
To: None <netbsd-users@netbsd.org>
From: Mark Cullen <mark.r.cullen@gmail.com>
List: netbsd-users
Date: 07/23/2006 01:57:40
Mark Cullen wrote:
> reed@reedmedia.net wrote:
>>> and they rebuild, but how does it know to use the kernel 
>>> configuration we
>>> made with MULTIPROCESSOR, and thus compile the modules with this option?
>>>
>>> Basically, can someone say exactly how we're supposed to rebuild the 
>>> kernel
>>> modules *without* having to rebuild the whole world?! I'm actually 
>>> really
>>> quite stumped with this one.
>>
>> This is the same question I asked on netbsd-help and then 
>> current-users this week. (I didn't find an answer either for build.sh.)
>>
>> You could try to edit the Makefile for the individual module and add 
>> the -D definition (maybe -DMULTIPROCESSOR) to CPPFLAGS. And run "make" 
>> there.
>>
> 
> Yeah, we're now trying adding -DMULTIPROCESSOR=1 to CFLAGS and CPPFLAGS 
> in mk.conf. It added it to the make for /usr/src/sys/lkm, but waiting to 
> restart to test it out.
> 

This works, for anyone having the same problem!

-- 
Mark Cullen <mark.r.cullen@gmail.com>