Chapter 6
Knitting the OSKit
To use Knit with the OSKit, you should:
- Obtain a matching version of the OSKit. (The Knit download page says which version of the OSKit
to use with each version of Knit.)
- Unpack, configure and prepare the OSKit:
mkdir /tmp/src
cd /tmp/src
tar zxvf oskit<version>.tar.gz
mkdir /tmp/obj
cd /tmp/obj
/tmp/src/oskit/configure --enable-knit
make prepare
- Try building some of the kernels:
mkdir /tmp/test
cd /tmp/test
knit \
OSKITDIR=/tmp/src/oskit \
BUILDDIR=/tmp/obj \
UNIT_PATH=/tmp/src/oskit/knit \
MAKEFILE=/tmp/src/oskit/knit/knit.mk \
Delta.unit \
Hello_ADR
make -s
This will build an OSKit kernel in the file kernel.
The following units define OSKit kernels.
Hello_ADR
Hello_Delta
Timer_Delta
Timer1_COM_Delta
Timer2_COM_Delta
MemFS_COM_Delta
Blkio_Delta
DiskPart_Delta
MemFS_Posix_Delta
NetBSD_Posix_Delta
PingReply_Delta
Cat_Delta