Move makerd to TOML-based manifest
Added the cpptoml library (and license), and moved to using that for the initrd manifest. It's now possible to specify the `executable` flag for files, and the kernel correctly only launches new processes for the initrd files marked `executable`.
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
#assets/fonts/tamsyn8x16r.psf screenfont.psf
|
||||
build/kernel/src/drivers/nulldrv/nulldrv nulldrv
|
||||
18
assets/initrd.toml
Normal file
18
assets/initrd.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
# This is the manifest for the initial ramdisk, read by the `makerd` tool.
|
||||
# The contents should be a table array of files to add to the ramdistk:
|
||||
#
|
||||
# [[files]]
|
||||
# dest = "foo.bar" # Name of the file in the ramdisk
|
||||
# source = "build/foo/foo.bar" # Location of the file from the project root
|
||||
# executable = true # Optional, default false. Whether this is an
|
||||
# # initial application for the kernel to execute
|
||||
# # on startup
|
||||
|
||||
[[files]]
|
||||
dest = "screenfont.psf"
|
||||
source = "assets/fonts/tamsyn8x16r.psf"
|
||||
|
||||
[[files]]
|
||||
dest = "nulldrv"
|
||||
source = "build/kernel/src/drivers/nulldrv/nulldrv"
|
||||
executable = true
|
||||
Reference in New Issue
Block a user