From owner-freebsd-questions@FreeBSD.ORG Fri Dec 25 20:02:59 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6761210656A3 for ; Fri, 25 Dec 2009 20:02:59 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id EEF8B8FC0A for ; Fri, 25 Dec 2009 20:02:58 +0000 (UTC) Received: by fxm27 with SMTP id 27so8961884fxm.3 for ; Fri, 25 Dec 2009 12:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=QkT/Uu6b1RFO7CRJBKjVhwK9SP9pT1D8F9lgwVIPGkg=; b=o5etR2sIh5fVe/JRKK8nTmDGJDYOOYZEqsR4h7nfJ50MvuA7OgqImnbYH6Sq/sbCjV nECxOWBAoLFcNYFSnWPgtAFv5KnnCeeImQfndIivBA+tnwu+7IgqmIQtT5A9QlCmsXA7 op5Q40jdaXp+UaJEyT4fcD2I23wTD+OWyppQE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ft67aU5Bc0i7GS1zkCTiBpT1eUnV8730CYAAcyJgH15bPPzim/KHo5ge3nuJB0MJFM EgNPK0CJTZeqBAgicieWRi1SnZMLWVuO7Jb5d/bsSP801P5uyqkX0gkpbLv+BZ+2+ByU KoIPiDObYMeTFrsWKSDZzCsLYDveYQ8C1dTlc= MIME-Version: 1.0 Received: by 10.239.163.67 with SMTP id o3mr425193hbd.22.1261771377927; Fri, 25 Dec 2009 12:02:57 -0800 (PST) In-Reply-To: <4B340022.30401@lazlarlyricon.com> References: <4B33F802.8020407@able.com.ua> <4B340022.30401@lazlarlyricon.com> Date: Fri, 25 Dec 2009 20:02:57 +0000 Message-ID: From: krad To: Rolf G Nielsen Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Oles Hnatkevych , freebsd-questions@freebsd.org Subject: Re: build 7.x kernel without zfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Dec 2009 20:02:59 -0000 2009/12/24 Rolf G Nielsen > 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