dev-guide icon indicating copy to clipboard operation
dev-guide copied to clipboard

Setting up illumos.sh section path

Open giorgio-v opened this issue 11 years ago • 2 comments

The path referred in the creation of illumos.sh, i.e. /opt/onbld/env/illumos does not exist in SmartOS.

I really don’t know where to get this file.

giorgio-v avatar Dec 21 '14 13:12 giorgio-v

SmartOS has a slightly different build environment. Instead, you should start by following the instructions here: https://wiki.smartos.org/display/DOC/Building+SmartOS+on+SmartOS. I generally use the workflow of running gmake world, and then go back in using bldenv to modify and go from there. You'd use it as follows:

$ cd projects/illumos/usr/src
$ ./tools/proto/root_i386-nd/opt/onbld/bin/bldenv ../../illumos.sh

Note, that on SmartOS, instead of running nightly manually, remove the file 0-illumos-stamp in the root of the smartos-live project and run gmake world. Let me know if this clarifies things.

rmustacc avatar Dec 21 '14 17:12 rmustacc

Sorry for the delay but, you know, life, work and christmas…

Let me recap:

  1. Follow the instruction on the SmartOS wiki until make world
  2. Generate illumos.sh as you described above (and basically skip the whole “Setting up illumos.sh” section in http://illumos.org/books/dev/workflow.html)
  3. Instead of /opt/onbld/bin/nightly ./illumos.sh use rm 0-illumos-stamp && gmake world

Correct? If so, do you think would it be a good idea to amend the guide to include SmartOS-specific instructions as some kind of footnote?

giorgio-v avatar Dec 30 '14 17:12 giorgio-v