]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow building world into a separate dir (for reuse in multiple images):
authorNick Hibma <n_hibma@FreeBSD.org>
Thu, 18 Jun 2009 10:39:08 +0000 (10:39 +0000)
committerNick Hibma <n_hibma@FreeBSD.org>
Thu, 18 Jun 2009 10:39:08 +0000 (10:39 +0000)
commit95d876623ecd3e7da514bcfb3b23a170200412b2
tree00c4ed39be2e757c26eb51e5b741d47464a61573
parentaea6e893edb62599e6daa747e556906a81b83e01
Allow building world into a separate dir (for reuse in multiple images):
- buildworld and buildkernel are built into MAKEOBJDIRPREFIX
- installworld and installkernel are performed on NANO_OBJ.

No change of functionality if MAKEOBJDIRPREFIX is not set. If it is sea,t
clean_world deletes NANO_OBJ instead of NANO_WORLDDIR. By starting nanobsd.sh
with the -b option the existing world can be reused to build a new world
reducing time and disk space considerably.

While there:
- Fix two cases where (in comments) MAKEOBJDIRPREFIX should have been
  NANO_DISKIMGDIR.
- Simplify an 'if (not wrong); then true; else action; fi' into
  'if wrong; then action; fi'. 'if ! false; then echo hello; fi' produces hello.

Note: Make sure you use NANO_OBJ were you use MAKEOBJDIRPREFIX now in your
nanobsd.conf files if you want to split out.
tools/tools/nanobsd/nanobsd.sh