updated the build instructions, script and gitignore
This commit is contained in:
parent
d455ac6f63
commit
9358f60401
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,6 +1,5 @@
|
|||||||
/build
|
|
||||||
apidoc.md
|
apidoc.md
|
||||||
apidoc.html
|
apidoc.html
|
||||||
psychos/
|
|
||||||
*.cpio
|
*.cpio
|
||||||
*.af
|
*.af
|
||||||
|
/target
|
||||||
|
19
README.md
19
README.md
@ -2,6 +2,25 @@
|
|||||||
|
|
||||||
A lightweight, multi-user operating system for OpenComputers
|
A lightweight, multi-user operating system for OpenComputers
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
### The kernel
|
||||||
|
|
||||||
|
The kernel can be built using luapreproc:
|
||||||
|
|
||||||
|
./luapreproc.lua module/init.lua kernel.lua
|
||||||
|
|
||||||
|
### The boot filesystem
|
||||||
|
|
||||||
|
A boot filesystem contains several things:
|
||||||
|
|
||||||
|
- The kernel, as init.lua
|
||||||
|
- The exec/ directory, as this contains all executables
|
||||||
|
- The lib/ directory, containing libraries
|
||||||
|
- The service/ directory, containing system services
|
||||||
|
|
||||||
|
This has been automated in the form of build.sh, pending a real makefile.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
To generate function documentation, run:
|
To generate function documentation, run:
|
||||||
|
12
build.sh
12
build.sh
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
mkdir build
|
rm -r target/*
|
||||||
cd module
|
mkdir target
|
||||||
cat sched.lua syslog.lua vt100.lua fs.lua iofs.lua loadfile.lua vt-task.lua io.lua dispmanager.lua init.lua > ../build/psychos.lua
|
lua luapreproc.lua module/init.lua target/init.lua
|
||||||
cd ..
|
cp -r exec/ service/ lib/ target/
|
||||||
echo '_OSVERSION="PsychOS 2.0a0"' >> build/*
|
|
||||||
echo sched\(\) >> build/*
|
|
||||||
|
Loading…
Reference in New Issue
Block a user