A hobby OS (currently just a kernel). It is inspired by Unix, but does not follow existing standards.
The code can be viewed online or downloaded here, and is kept in a fossil repo.
Alternatively, you can get the source via fossil:
fossil clone https://tty0.xyz/fossil/lithium lithium.fossil mkdir lithium cd lithium fossil open ../lithium.fossil
Once you have the source, you must configure the build by creating config.mk:
ARCH = x86 PREFIX = i686-elf- CC = $(PREFIX)gcc CFLAGS = -ffreestanding -Os CPP = $(PREFIX)cpp CPPFLAGS = AS = $(PREFIX)as AFLAGS = AR = $(PREFIX)ar ARFLAGS = LD = $(PREFIX)ld LDFLAGS = LIBS = $(shell $(CC) -print-libgcc-file-name)
(example, for x86 with a GNU toolchain)
After that, it can be built simply by running