From owner-freebsd-current@FreeBSD.ORG Sun Oct 24 03:16:04 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FB06106564A; Sun, 24 Oct 2010 03:16:04 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6EE9A8FC0A; Sun, 24 Oct 2010 03:16:03 +0000 (UTC) Received: by wyb42 with SMTP id 42so2230360wyb.13 for ; Sat, 23 Oct 2010 20:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=RrWbQ2CrL3s9G4wzqVpeBC1fOYP10u3I45znagOQH7o=; b=W2Y9GjBEDnc3aGu9+7Cq6th2DNgEaq7l6cABCARuDGU+7OIQEqgkAfXXw5tSxX12cQ 2B3s1pxR3aEZs5VwN7fu7au1p7TRp2Inl8Dx0CJFvNSxsLtm2WvnC09zDyFnOUr72lCC BOpX+KsGzK3Wwc/P8+vwGr6Ac7kmDYrwxFo2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=IXQraFyeY9H/7XNi/pyRlirLoYZopS5J5gWvsaqKJtFi1mIFpw9tMOV/02D++/X3ID snO4+1Tz6r4crBPcOatxCHNcmwUk5kZr11qc/7NwyE3SUX82FCp4Zf5i4txMA71TYxsd 680CBsTvEJx/laeQC95ntLcTcYWpt5iaDUSFg= MIME-Version: 1.0 Received: by 10.216.164.66 with SMTP id b44mr1327891wel.81.1287890162105; Sat, 23 Oct 2010 20:16:02 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.216.10.198 with HTTP; Sat, 23 Oct 2010 20:16:02 -0700 (PDT) In-Reply-To: References: <1287866401.2580.5.camel@home-yahoo> <1287873322.2580.16.camel@home-yahoo> Date: Sat, 23 Oct 2010 20:16:02 -0700 X-Google-Sender-Auth: OfoDp970vxbR-WS7Wd4_hkA6T3k Message-ID: From: Garrett Cooper To: "sbruno@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current Subject: Re: Small /etc/src.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2010 03:16:04 -0000 On Sat, Oct 23, 2010 at 7:19 PM, Garrett Cooper wrote= : > On Sat, Oct 23, 2010 at 3:35 PM, Sean Bruno wrote= : >> On Sat, 2010-10-23 at 14:21 -0700, Rob Farmer wrote: >>> On Sat, Oct 23, 2010 at 13:40, Sean Bruno wrote= : >>> > Anyone have a src.conf + make.conf that I can steal to build a small >>> > installation of BSD? =A0I've been trying to shrink the installation s= o I >>> > can cram an ISO of BSD across the network into a remote installation >>> > thing in an HP box. >>> >>> Have you checked this: >>> http://phk.freebsd.dk/misc/build_options/ >>> >>> I'm not sure exactly what you're looking for, but in my experience (I >>> care more about build time than size though, and still want a fairly >>> functional system) these are the most important variables to set: >>> >>> NO_MODULES (stick everything in the kernel - tons of stuff is built >>> twice, like ufs support) >>> WITHOUT_PROFILE >>> WITHOUT_LIB32 >>> WITHOUT_CLANG >>> WITHOUT_KERBEROS >>> WITHOUT_CDDL >>> >>> Some of the options involving src/share like WITHOUT_LOCALES seem to >>> kill a lot of files too. >>> >>> Everything else either just skips a couple files (of course, that can >>> add up) or starts to cut into basic functionality (like no man pages), >>> IMHO. >>> >> >> Thanks for the clue, I've come up with some stuff now that got me down >> to ~100MB, but I think I can go smaller. >> src.conf: >> WITHOUT_AMD=3Dtrue >> WITHOUT_APM=3Dtrue >> WITHOUT_BIND=3Dtrue >> WITHOUT_BSNMP=3Dtrue >> WITHOUT_BSD_CPIO=3Dtrue >> WITHOUT_BZIP2=3Dtrue >> WITHOUT_BLUETOOTH=3Dtree >> WITHOUT_CDDL=3Dtrue >> WITHOUT_CLANG=3Dtrue >> WITHOUT_CPP=3Dtrue >> WITHOUT_CRYPT=3Dtrue >> WITHOUT_CTM=3Dtrue >> WITHOUT_CVS=3Dtrue >> WITHOUT_CXX=3Dtrue >> WITHOUT_DICT=3Dtrue >> WITHOUT_EXAMPLES=3Dtrue >> WITHOUT_FREEBSD_UPDATE=3Dtrue >> WITHOUT_GAMES=3Dtrue >> WITHOUT_GDB=3Dtrue >> WITHOUT_GNU=3Dtrue >> WITHOUT_GPIB=3Dtrue >> WITHOUT_GROFF=3Dtrue >> WITHOUT_GCOV=3Dtrue >> WITHOUT_HTML=3Dtrue >> WITHOUT_INET6=3Dtrue >> WITHOUT_INFO=3Dtrue >> #WITHOUT_INSTALLLIB=3Dtrue >> WITHOUT_IPFILTER=3Dtrue >> WITHOUT_IPFW=3Dtrue >> WITHOUT_IPX=3Dtrue >> WITHOUT_IPX_SUPPORT=3Dtrue >> WITHOUT_JAIL=3Dtrue >> WITHOUT_LIB32=3Dtrue >> WITHOUT_LOCATE=3Dtrue >> WITHOUT_LPR=3Dtrue >> WITHOUT_MAIL=3Dtrue >> WITHOUT_MAN=3Dtrue >> WITHOUT_NCP=3Dtrue >> WITHOUT_NDIS=3Dtrue >> WITHOUT_NETGRAPH=3Dtrue >> WITHOUT_NIS=3Dtrue >> WITHOUT_NLS=3Dtrue >> WITHOUT_NLS_CATALOGS=3Dtrue >> WITHOUT_NS_CACHING=3Dtrue >> WITHOUT_NTP=3Dtrue >> WITHOUT_OBJC=3Dtrue >> WITHOUT_PAM=3Dtrue >> WITHOUT_PF=3Dtrue >> WITHOUT_PORTSNAP=3Dtrue >> WITHOUT_PPP=3Dtrue >> WITHOUT_PROFILE=3Dtrue >> WITHOUT_QUOTAS=3Dtrue >> WITHOUT_RCMDS=3Dtrue >> WITHOUT_RCS=3Dtrue >> WITHOUT_RESCUE=3Dtrue >> WITHOUT_ROUTED=3Dtrue >> WITHOUT_SHAREDOCS=3Dtrue >> WITHOUT_SYSINSTALL=3Dtrue >> WITHOUT_TCSH=3Dtrue >> WITHOUT_TELNET=3Dtrue >> WITHOUT_TOOLCHAIN=3Dtrue >> WITHOUT_WIRELESS=3Dtrue >> >> make.conf: >> NO_MODULES=3Dtrue >> NO_SHARE=3Dtrue > > =A0 =A0Looks about right (I don't optimize things that much in all cases, > but I've come close before). Here's a PR I opened that would tune the > rc.d scripts, because you'll probably notice that there's a ton of > noise involved at bootup when you do the above items: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dconf/145344 > > =A0 =A0If desired, I can update the patch with latest HEAD for the PR. I > would need for someone to review the item though and help commit it. One thing though: being pedantic and setting true is ok, but just doing: WITHOUT_TCSH=3D etc is sufficient. Another thing you could do is: FEATURES=3D \ AMD \ APM \ ... WIRELESS .for feature in ${FEATURES} WITHOUT_${feature}=3D .endfor (that's what I did in one instance where I source the src.conf file from another Makefile). It's up to you depending on your target audience for the file on what approach you want to take. Cheers, -Garrett