mirror of
https://github.com/tailix/kernel.git
synced 2025-02-10 15:36:37 -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
|
/modules/dummy
|
||||||
/iso/image.iso
|
/iso/image.iso
|
||||||
/iso/rootfs/boot/kernelmq
|
/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 INCLUDE = $(shell pwd)/include
|
||||||
export KERNEL = $(shell pwd)/arch/kernel
|
export KERNEL = $(shell pwd)/arch/kernel
|
||||||
export LIBK = $(shell pwd)/libk/libk.a
|
export LIBK = $(shell pwd)/libk/libk.a
|
||||||
|
export DUMMY = $(shell pwd)/modules/dummy
|
||||||
|
|
||||||
run: run-iso
|
run: run-iso
|
||||||
|
|
||||||
|
@ -28,7 +29,7 @@ clean-kernel:
|
||||||
run-iso: all-iso
|
run-iso: all-iso
|
||||||
make run -C iso
|
make run -C iso
|
||||||
|
|
||||||
all-iso: all-kernel
|
all-iso: all-kernel all-modules
|
||||||
make all -C iso
|
make all -C iso
|
||||||
|
|
||||||
clean-iso:
|
clean-iso:
|
||||||
|
|
|
@ -4,7 +4,8 @@ run: all
|
||||||
all:
|
all:
|
||||||
grub-file --is-x86-multiboot2 "$(KERNEL)"
|
grub-file --is-x86-multiboot2 "$(KERNEL)"
|
||||||
cp "$(KERNEL)" rootfs/boot/kernelmq
|
cp "$(KERNEL)" rootfs/boot/kernelmq
|
||||||
|
cp "$(DUMMY)" rootfs/boot/dummy
|
||||||
grub-mkrescue rootfs -o image.iso
|
grub-mkrescue rootfs -o image.iso
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f image.iso rootfs/boot/kernelmq
|
rm -f image.iso rootfs/boot/kernelmq rootfs/boot/dummy
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
menuentry "KernelMQ" {
|
menuentry "KernelMQ" {
|
||||||
multiboot2 /boot/kernelmq hello kernel
|
multiboot2 /boot/kernelmq hello kernel
|
||||||
module2 /boot/grub/grub.cfg qwe rty
|
module2 /boot/dummy qwe rty
|
||||||
module2 /boot/kernelmq foo bar
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue