Date: Fri, 04 Oct 2002 15:10:35 -0700 From: Glenn Trewitt <trewitt@cs.cmu.edu> To: Randy Bush <randy@psg.com>, FreeBSD Stable <freebsd-stable@FreeBSD.ORG> Subject: Re: small install Message-ID: <3D9E11DB.73D3D7E9@cs.cmu.edu> References: <E17xMiU-000JaP-00@rip.psg.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <http://www.wildlab.com/>
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D9E11DB.73D3D7E9>
