diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-28 20:59:11 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-28 20:59:11 +0100 |
commit | 6b150c794a4c71e36bd1e5e545be171d0e3b45d0 (patch) | |
tree | fb2ba6deacf57defc3c567b502f3c3be66872301 /Kernel/Makefile | |
parent | c10a5ac4ade2c70eee46bc401fd875e848393213 (diff) | |
download | serenity-6b150c794a4c71e36bd1e5e545be171d0e3b45d0.zip |
Kernel: Implement very simple kernel module loading
It's now possible to load a .o file into the kernel via a syscall.
The kernel will perform all the necessary ELF relocations, and then
call the "module_init" symbol in the loaded module.
Diffstat (limited to 'Kernel/Makefile')
-rw-r--r-- | Kernel/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Makefile b/Kernel/Makefile index b75072a25e..6c8544cbc1 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -99,6 +99,8 @@ CXX_OBJS = \ init.o \ kprintf.o +MODULE_OBJS = TestModule.o + OBJS = $(CXX_OBJS) Arch/i386/Boot/boot.ao KERNEL = kernel @@ -109,7 +111,7 @@ CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/8.3.0/i686-pc-sere DEFINES += -DKERNEL LDFLAGS += -Ttext 0x100000 -Wl,-T linker.ld -nostdlib -all: $(KERNEL) kernel.map +all: $(KERNEL) $(MODULE_OBJS) kernel.map kernel.map: kernel @echo "MKMAP $@"; sh mkmap.sh |