7 Building Unleashed requires Unleashed, so first, download and install the
8 latest snapshot from https://www.unleashed-os.org/snapshots/latest/
13 Clone this repository:
16 $ git clone git://repo.or.cz/unleashed.git
23 Objects generated during the build are stored in `/usr/obj`, so create it and
24 allow the build user to write to it.
27 # zfs create -o mountpoint=/usr/obj rpool/obj && install -m 1777 -d /usr/obj
30 Afterward, you can use make normally.
33 $ make -j32 build # adjust -j<num> as necessary for your hardware
36 `make build` installs the built artifacts into `proto/root_i386`, and generates
37 packages into the `packages/nightly/repo.redist` repository.
39 NOTE: objects generated by the legacy build system `dmake` in the `usr/src`
40 directories are stored directly inside the directories, so it is currently not
41 enough to clear `/usr/obj` to get a clean workspace. Instead use:
43 $ make -j32 cleandir # removes objects, proto/root_i386 and packages/i386/nightly/repo.redist
46 Single component build
47 ----------------------
49 To build a component that is using the new build system (e.g., cat(1)), change
50 into the source directory and run make. For example:
58 The component will be linked against the running system and installed to `/`.
59 To install to an alternate directory (eg. `proto/root_i386`), use `make install
62 To build a component under the legacy (dmake) build system, ie. things under
63 `usr/src`, first complete a full build so that prerequisite objects for the
64 component are made, and then:
72 The component will be built against the "proto area" in `proto/root_i386` and