Subject: Re: how should I make kernels to have it work under build.sh
To: George Michaelson <ggm@apnic.net>
From: Luke Mewburn <lukem@NetBSD.org>
List: netbsd-help
Date: 11/18/2005 10:57:04
--0oEQci8Wf3TZ4Qnh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 17, 2005 at 11:02:57AM +1000, George Michaelson wrote:
  |=20
  | I still make my kernel by hand, in the live code tree.
  |=20
  | I would like to make my kernels in the build process, preferably in the
  | OBJ tree.
  |=20
  | is this doable/sensible?
  |=20
  | right now, I do:
  |=20
  | $ cat ~/bin/makeBSD=20
  | #!/bin/sh
  |=20
  | cd /usr/src
  | nice ./build.sh -u -x -M /data/Build/obj -T /data/Build/tools build \
  |         > /var/tmp/build.log 2>&1 & tail -f /var/tmp/build.log=20
  | $=20
  |=20
  | where /usr/src is a RO mount of the src hierarchy
  | (from /data/NetBSD/src, which is where I make kernels by hand)

Add after "build" argument to build.sh, add
	kernel=3D/path/to/MYKERNELCONFIG releasekernel=3D/path/to/MYKERNELCONFIG

If you don't provide a path to MYKERNELCONFIG it will be searched
for in sys/arch/${MACHINE}/conf.

For that matter, I recommend using "distribution" instead of "build",
and I also add "sets" and "sourcesets" as well...

cheers,
Luke.

--0oEQci8Wf3TZ4Qnh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFDfRjQpBhtmn8zJHIRAlfzAJ0TnBftxs3SJgRNwzqZR73mdXyZfwCdHgiU
OfdTMUN+20I/3lgn+JcYTm4=
=8hUs
-----END PGP SIGNATURE-----

--0oEQci8Wf3TZ4Qnh--