Building a sandboxed kernel

Dag-Erling Smørgrav des at
Sun Jul 23 11:17:37 UTC 2006

"R. Tyler Ballance" <tyler at> writes:
> This doesn't solve the problem of different versions of userland
> tools required.

$ cd /foo/bar/src
$ make kernel-toolchain TARGET_ARCH=iguana
$ make buildkernel TARGET_ARCH=iguana

no need for a jail or a chroot or anything; buildkernel will use the
cross-building toolchain built by kernel-toolchain.

note 1: you don't need DESTDIR to build, only to install.

note 2: you probably want to use NO_KERNELCLEAN to avoid starting
every buildkernel from scratch.

note 3: most of this is documented in build(7)

Dag-Erling Smørgrav - des at

More information about the freebsd-hackers mailing list