made a configs/ dir for kernel configurations, and ./genkernel.sh generate all of them.

This commit is contained in:
Izaya 2017-09-13 12:08:11 +10:00
parent d2a0fa5910
commit 438b185412
3 changed files with 33 additions and 2 deletions

28
configs/headless.cfg Executable file
View File

@ -0,0 +1,28 @@
modules/base/loadlin.lua
modules/debug/log.lua
modules/base/header.lua
modules/base/component.lua
modules/lib/fs.lua
modules/util/logflush.lua
modules/lib/buffer.lua
modules/lib/io.lua
modules/lib/print.lua
modules/lib/cdlib.lua
modules/lib/relib.lua
modules/net/copper.lua
modules/util/motd.lua
modules/lib/readline.lua
modules/lib/shutil.lua
modules/lib/sha256.lua
modules/lib/userlib.lua
modules/net/net-ext.lua
modules/applications/login.lua
modules/applications/luash.lua
modules/applications/genkernel.lua
fwrap skex exec/skex2.lua
fwrap nshd exec/nshd.lua
fwrap nsh exec/nsh.lua
modules/util/fs-automount.lua
modules/setup.lua
modules/base/footer.lua

View File

@ -1,3 +1,6 @@
#!/bin/bash #!/bin/bash
./genkernel.lua build.cfg "$(git rev-parse --short HEAD)" > kernel.lua for f in `dir -d configs/*`; do
lua strip.lua kernel.lua skernel.lua kn=$(echo $f | cut -f 1 -d '.' | cut -f 2 -d "/")
./genkernel.lua $f "$(git rev-parse --short HEAD)" > $kn.lua
lua strip.lua $kn.lua s$kn.lua
done