Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 2009 20:02:57 +0000
From:      krad <kraduk@googlemail.com>
To:        Rolf G Nielsen <lazlar@lazlarlyricon.com>
Cc:        Oles Hnatkevych <don_oles@able.com.ua>, freebsd-questions@freebsd.org
Subject:   Re: build 7.x kernel without zfs
Message-ID:  <d36406630912251202x5a24e90ah5ccbae173171d527@mail.gmail.com>
In-Reply-To: <4B340022.30401@lazlarlyricon.com>
References:  <4B33F802.8020407@able.com.ua> <4B340022.30401@lazlarlyricon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/12/24 Rolf G Nielsen <lazlar@lazlarlyricon.com>

> Oles Hnatkevych wrote:
>
>> Hi!
>>
>> Since my installation has 496Mb on root partition, having to kernels
>> (current and old) there becomes pain, only 4Mb free left.
>>
>> How can I build kernel without zfs module, since it consumes 12Mb with
>> symbols?
>>
>>
>>
> Hi Oles,
>
> I'm not sure how to specify which modules not to build, but to build only
> the modules you need, use MODULES_OVERRIDE in your kernel config file. E.g.
> the following line will build and install only atapicam and ext2fs.
>
> makeoptions MODULES_OVERRIDE="atapicam ext2fs"
>
> To find out what modules you use, just type kldstat in the console, and add
> the listed modules to the MODULES_OVERRIDE.
>
> You can also specify that you don't want debug symbols built by removing or
> commenting out the makeoptions DEBUG=-g line.
>
> Rolf Nielsen
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>


have a look at the man page for src.conf there are loads of options there to
stop bits building. eg games, zfs, bluetooth etc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d36406630912251202x5a24e90ah5ccbae173171d527>