From owner-freebsd-small Wed Nov 1 18:42:40 2000 Delivered-To: freebsd-small@freebsd.org Received: from genius.systems.pavilion.net (genesis.tao.org.uk [194.242.131.254]) by hub.freebsd.org (Postfix) with ESMTP id 2250C37B4CF for ; Wed, 1 Nov 2000 18:42:37 -0800 (PST) Received: by genius.systems.pavilion.net (Postfix, from userid 100) id 6ECF29B12; Thu, 2 Nov 2000 02:46:04 +0000 (GMT) Date: Thu, 2 Nov 2000 02:46:04 +0000 From: Josef Karthauser To: freebsd-small@freebsd.org Subject: PicoBSD ideas... Message-ID: <20001102024604.C32009@pavilion.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-NCC-RegID: uk.pavilion Organisation: Pavilion Internet plc, Lees House, 21-23 Dyke Road, Brighton, England Phone: +44-845-333-5000 Fax: +44-845-333-5001 Mobile: +44-403-596893 Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm currently hacking on PicoBSD and have a couple of ideas that I'd like to run by you all before I commit them: * I believe that it make sense to build the PicoBSD sources in their own object directory, /usr/obj/picobsd/${TYPE}/usr/src, instead of over the top of /usr/obj/usr/src...? Quite often the build options of programs that we want on a PicoBSD disk are different from those in the main system. * One of the main problems with PicoBSD at the moment is that we can't pass compile flags to programs on a per program basis. This is because of missing functionality in crunchgen. In particular this means that we can't actually selectively compile out parts of programs that we don't want on a per config basis. A case in point is user-ppp. This has become very large over time as it's been able to deal with more and more things, most of which aren't required for the dial picobsd config for instance. On the otherhand it should be possible to compile in ATM support, for instance, if we want it. I've got a work around for this. It involves adding an extra configuration file to the crunch1/ subdirectory for a particular type. i.e: genius% pwd /usr/src/release/picobsd/build genius% cat buildopts.inc # $FreeBSD$ OPTS= -DNOPAM ppp_OPTS= -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM -DNOSUID -DHAVE_DES -DNORADIUS - DNOI4B -DNONETGRAPH #end OPTS is added to every program that is built, and the progname_OPTS are just added to that program. This allows much more customisation. I'll probably remove the generic ${CRUNCHFLAGS} from the build/ scripts and replace them with local customistations, if that makes sense to people here. Joe -- Josef Karthauser FreeBSD: How many times have you booted today? Technical Manager Viagra for your server (http://www.uk.freebsd.org) Pavilion Internet plc. [joe@pavilion.net, joe@uk.freebsd.org, joe@tao.org.uk] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message