Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2000 02:46:04 +0000
From:      Josef Karthauser <joe@pavilion.net>
To:        freebsd-small@freebsd.org
Subject:   PicoBSD ideas...
Message-ID:  <20001102024604.C32009@pavilion.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001102024604.C32009>