Updated build instructions to reflect recent changes
This commit is contained in:
parent
8955ee52c4
commit
09c5718a18
19
doc/build.md
19
doc/build.md
@ -2,21 +2,12 @@
|
||||
MultICE uses a relatively simple build system. It has been tested on Arch Linux, Debian Linux, OpenOS and Plan9k.
|
||||
## 1. Choose modules.
|
||||
The system is made out of modules from the `modules/` directory. When you run the build script, it assembles them, and optionally optomises the code for space.
|
||||
There are a number of preconfigured module sets in the `config/` directory, and you can of course you can write your own.
|
||||
|
||||
Modules are specified in the `modules.cfg` file and are relative to the `modules/` folder.
|
||||
An example for interactive usage with networking:
|
||||
```
|
||||
base/header.lua
|
||||
drivers/dterm.lua
|
||||
library/print.lua
|
||||
drivers/keyboard.lua
|
||||
library/net.lua
|
||||
applications/luash.lua
|
||||
base/footer.lua
|
||||
```
|
||||
The build system defaults to a file called `modules.cfg` in the current directory. You can specify a config file using `--modconfig=file.cfg`.
|
||||
## 2. Configure build system
|
||||
The build system has a configuration file `build.cfg`.
|
||||
### `optomise`
|
||||
The build system has a configuration file `build.cfg`, though another can be specified using `--cfgfile=file.cfg`.
|
||||
### `optimise`
|
||||
Can either be yes or no.
|
||||
Specifies whether to run the simple optimisation function on the kernel.
|
||||
### `test`
|
||||
@ -27,6 +18,8 @@ Can either be yes or no.
|
||||
Specifies whether to output log files.
|
||||
### `opath`
|
||||
Specifies where to put the output kernel.
|
||||
### `ospath`
|
||||
Specifies where to put the output kernel after being optimised.
|
||||
|
||||
## 3. Build.
|
||||
Simply run `build.lua`. Under OpenOS or plan9k that may just be going to the right dir and entering `build`, but under proper UNIX systems it may involve `lua build.lua`.
|
||||
|
Loading…
Reference in New Issue
Block a user