descriptionUnleashed OS
homepage URLhttp://unleashed-os.org
ownerjeffpc@josefsipek.net
last changeThu, 17 Jan 2019 15:16:36 +0000 (17 15:16 +0000)
content tags
add:
README.md

How to build Unleashed

Install Unleashed

Building Unleashed requires Unleashed, so first, download and install the latest snapshot from https://www.unleashed-os.org/snapshots/latest/

Get the source

Clone this repository:

$ git clone git://repo.or.cz/unleashed.git
$ cd unleashed

Build

Objects generated during the build are stored in /usr/obj, so create it and allow the build user to write to it.

# zfs create -o mountpoint=/usr/obj rpool/obj && install -m 1777 -d /usr/obj

Afterward, you can use make normally.

$ make -j32 build            # adjust -j<num> as necessary for your hardware

make build installs the built artifacts into proto/root_i386, and generates packages into the packages/nightly/repo.redist repository.

NOTE: objects generated by the legacy build system dmake in the usr/src directories are stored directly inside the directories, so it is currently not enough to clear /usr/obj to get a clean workspace. Instead use:

$ make -j32 cleandir         # removes objects, proto/root_i386 and packages/i386/nightly/repo.redist

Single component build

To build a component that is using the new build system (e.g., cat(1)), change into the source directory and run make. For example:

$ cd bin/cat
$ make
# make install

The component will be linked against the running system and installed to /. To install to an alternate directory (eg. proto/root_i386), use make install DESTDIR=path.

To build a component under the legacy (dmake) build system, ie. things under usr/src, first complete a full build so that prerequisite objects for the component are made, and then:

$ ./tools/bldenv.sh
$ cd usr/src/cmd/w
$ dmake install

The component will be built against the "proto area" in proto/root_i386 and installed there.

shortlog
3 days ago Lauri Tirkkonendmake: remove '-->' outputs.master
3 days ago Lauri TirkkonenREADME: remove extra backslashes
3 days ago Lauri Tirkkonendon't build kernel twice
3 days ago Lauri Tirkkonengood night nightly(1); long live 'make build'
3 days ago Lauri Tirkkonenfix leftover protocmp warnings
3 days ago Lauri Tirkkonenusr/Makefile: add make-to-dmake wrapper
3 days ago Lauri Tirkkonentoplevel Makefile: handle gen-config better
3 days ago Lauri Tirkkonenbldenv: remove newtask & option flags, add PS1 indicato...
3 days ago Lauri Tirkkonenbldenv.sh: allow usage as a wrapper
3 days ago Lauri Tirkkonennightly/bldenv: remove ability to provide env file
3 days ago Lauri Tirkkonensu: add missing su.1
3 days ago Lauri Tirkkonentrue(1)/false(1): replace with OpenBSD versions
3 days ago Lauri Tirkkonenenv: add -Wall
3 days ago Lauri Tirkkonenecho: add -Wall
3 days ago Lauri Tirkkonenlib/: add -Werror-implicit-function-declaration
3 days ago Lauri Tirkkonenbin/: add -Werror-implicit-function-declaration
...
tags
6 days ago v1.2.1 Unleashed 1.2.1
3 weeks ago v1.2 Unleashed v1.2
3 months ago v1.1 Unleashed v1.1
7 months ago v1.0 Unleashed v1.0
11 months ago v1.0-rc1 Unleashed v1.0-rc1
heads
3 days ago master
3 months ago gcc-update
forks
Cached version (6865s old)
unleashed/lotheac.git lotheac@iki.fi 3 days ago
unleashed/xorhash.git fork for stuff xorhash@protonmail.com 11 months ago
unleashed/tickless.git unleashed repo fork cneirabustos@gmail.com 11 months ago