From owner-freebsd-stable Fri Oct 4 15:11:29 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8347D37B401 for ; Fri, 4 Oct 2002 15:11:26 -0700 (PDT) Received: from oddjob.trewitt.org (adsl-216-102-95-11.dsl.snfc21.pacbell.net [216.102.95.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC88843E6E for ; Fri, 4 Oct 2002 15:11:25 -0700 (PDT) (envelope-from trewitt@cs.cmu.edu) Received: from cs.cmu.edu (jeeves.west.cmu.edu [198.123.23.2]) by oddjob.trewitt.org (8.11.3/8.11.3) with ESMTP id g94MBOi44555; Fri, 4 Oct 2002 15:11:24 -0700 (PDT) (envelope-from trewitt@cs.cmu.edu) Message-ID: <3D9E11DB.73D3D7E9@cs.cmu.edu> Date: Fri, 04 Oct 2002 15:10:35 -0700 From: Glenn Trewitt X-Mailer: Mozilla 4.79 (Macintosh; U; PPC) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Randy Bush , FreeBSD Stable Subject: Re: small install References: Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I agree with Andrew's comment that you should use DESTDIR, rather than making a jail or some such. I've attached a script that I used to build kernel/world, and it gets the result (which still has a lot of cruft that you won't want to copy over) down to 83 MB. I use environment variables instead of command line options, and set a whole bunch of "don't build this" variables that are interpreted by the various Makefiles under /usr/src. Anyway, here's the script... - Glenn Trewitt #! /bin/sh # Change this to suit your needs. DESTDIR=/s1/soekris # Just for testing... #NOCLEAN=1 export NOCLEAN KERNCONF=SOEKRIS # Don't build or install kernel modules NO_MODULES=1 export NO_MODULES LOCAL_DIRS=/usr/src/release/picobsd/tinyware/simple_httpd # These I'm not sure about. NOCRYPT=1 export NOCRYPT # Broad categories of things to exclude. NOPROFILE=1 export NOPROFILE NOGAMES=1 export NOGAMES NOSHARE=1 export NOSHARE NOINFO=1 export NOINFO NO_PORTSUPDATE=1 export NO_PORTSUPDATE NO_DOCUPDATE=1 export NO_DOCUPDATE NO_SHAREDOCS=1 export NO_SHAREDOCS NOMAN=1 export NOMAN # Specific programs/subsystems to exclude NO_CXX=1 export NO_CXX NO_OBJC=1 export NO_OBJC NO_GDB=1 export NO_GDB NOLIBC_R=1 export NOLIBC NO_FORTRAN=1 export NO_FORTRAN NOPERL=1 export NOPERL NO_X=1 export NO_X NO_SENDMAIL=1 export NO_SENDMAIL NO_MAILWRAPPER=1 export NO_MAILWRAPPER NOUUCP=1 export NOUUCP NO_LPR=1 export NO_LPR NO_I4B=1 export NO_I4B NO_OPENSSL=1 export NO_OPENSSL NO_GDB=1 export NO # Here's where we actually do the work. cd /usr/src make buildkernel KERNCONF=$KERNCONF make buildworld make installkernel KERNCONF=$KERNCONF make installworld Randy Bush wrote: > so if i want to build/install world > o for a rather small but not pico system, 32m ram and 512m hd > see > o not have games, compiler, ... but need networking of course > o do the install onto an ibm microdrive on my laptop which i then > push into the tiny machine > > are there clues, howto, ... somewhere? > > randy > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message