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:
parent
19120c0b26
commit
97db4431ad
4 changed files with 6 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,3 +8,4 @@
|
|||
/modules/dummy
|
||||
/iso/image.iso
|
||||
/iso/rootfs/boot/kernelmq
|
||||
/iso/rootfs/boot/dummy
|
||||
|
|
3
Makefile
3
Makefile
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue