Now any initrd file is treated like a program image and passed to the loader to load as a process. Very rudimentary elf loading just allocates pages, copies sections, and sets the ELF's entrypoint as the RIP to iretq to.
15 lines
206 B
Python
15 lines
206 B
Python
|
|
def configure(ctx):
|
|
pass
|
|
|
|
def build(bld):
|
|
sources = bld.path.ant_glob("**/*.cpp")
|
|
|
|
bld.stlib(
|
|
source = sources,
|
|
name = 'elf',
|
|
target = 'elf',
|
|
)
|
|
|
|
# vim: ft=python et
|