1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-20 11:16:10 -05:00

Load dummy module with GRUB

This commit is contained in:
Braiden Vasco 2017-11-05 10:03:08 +00:00
parent 19120c0b26
commit 97db4431ad
4 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View file

@ -8,3 +8,4 @@
/modules/dummy
/iso/image.iso
/iso/rootfs/boot/kernelmq
/iso/rootfs/boot/dummy

View file

@ -3,6 +3,7 @@ include config.mk
export INCLUDE = $(shell pwd)/include
export KERNEL = $(shell pwd)/arch/kernel
export LIBK = $(shell pwd)/libk/libk.a
export DUMMY = $(shell pwd)/modules/dummy
run: run-iso
@ -28,7 +29,7 @@ clean-kernel:
run-iso: all-iso
make run -C iso
all-iso: all-kernel
all-iso: all-kernel all-modules
make all -C iso
clean-iso:

View file

@ -4,7 +4,8 @@ run: all
all:
grub-file --is-x86-multiboot2 "$(KERNEL)"
cp "$(KERNEL)" rootfs/boot/kernelmq
cp "$(DUMMY)" rootfs/boot/dummy
grub-mkrescue rootfs -o image.iso
clean:
rm -f image.iso rootfs/boot/kernelmq
rm -f image.iso rootfs/boot/kernelmq rootfs/boot/dummy

View file

@ -1,5 +1,4 @@
menuentry "KernelMQ" {
multiboot2 /boot/kernelmq hello kernel
module2 /boot/grub/grub.cfg qwe rty
module2 /boot/kernelmq foo bar
module2 /boot/dummy qwe rty
}