-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fd3f19
commit 2c807cb
Showing
16 changed files
with
110 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "kernel/handover/Stivale1.h" | ||
|
||
__attribute__((section(".stivalehdr"), used)) StivaleHeader header = { | ||
.stack = 0, | ||
.flags = 1, | ||
.framebuffer_width = 0, | ||
.framebuffer_height = 0, | ||
.framebuffer_bpp = 32, | ||
.entry_point = 0, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DISTRO_DIRECTORY:=distro/$(BUILD_DISTRO) | ||
|
||
-include $(DISTRO_DIRECTORY)/.build.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$(BOOTDISK): $(RAMDISK) $(KERNEL_BINARY) $(DISTRO_DIRECTORY)/grub.cfg | ||
$(DIRECTORY_GUARD) | ||
@echo [GRUB-MKRESCUE] $@ | ||
|
||
@mkdir -p $(BOOTROOT)/boot/grub | ||
@cp $(DISTRO_DIRECTORY)/grub.cfg $(BOOTROOT)/boot/grub/ | ||
@cp $(RAMDISK) $(BOOTROOT)/boot/ | ||
@cp $(KERNEL_BINARY) $(BOOTROOT)/boot/kernel.bin | ||
|
||
@grub-mkrescue -o $@ $(BOOTROOT) || \ | ||
grub2-mkrescue -o $@ $(BOOTROOT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
set timeout=15 | ||
set timeout=0 | ||
set default=0 | ||
|
||
menuentry "skiftOS" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$(BOOTDISK): $(RAMDISK) $(KERNEL_BINARY) $(DISTRO_DIRECTORY)/grub.cfg | ||
$(DIRECTORY_GUARD) | ||
@echo [GRUB-MKRESCUE] $@ | ||
|
||
@mkdir -p $(BOOTROOT)/boot/grub | ||
@cp $(DISTRO_DIRECTORY)/grub.cfg $(BOOTROOT)/boot/grub/ | ||
@cp $(RAMDISK) $(BOOTROOT)/boot/ | ||
@cp $(KERNEL_BINARY) $(BOOTROOT)/boot/kernel.bin | ||
|
||
@grub-mkrescue -o $@ $(BOOTROOT) || \ | ||
grub2-mkrescue -o $@ $(BOOTROOT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
$(BOOTDISK): $(RAMDISK) $(KERNEL_BINARY) $(DISTRO_DIRECTORY)/limine.cfg $(ECHFS) $(LIMINE) $(LIMINE_LOADER) | ||
$(DIRECTORY_GUARD) | ||
|
||
rm -f $(BOOTDISK) | ||
|
||
dd if=/dev/zero bs=1M count=0 seek=64 of=$(BOOTDISK) | ||
|
||
parted -s $(BOOTDISK) mklabel msdos | ||
parted -s $(BOOTDISK) mkpart primary 1 100% | ||
|
||
$(ECHFS) -m -p0 $(BOOTDISK) quick-format 32768 | ||
$(ECHFS) -m -p0 $(BOOTDISK) import $(KERNEL_BINARY) kernel.bin | ||
$(ECHFS) -m -p0 $(BOOTDISK) import $(RAMDISK) ramdisk.tar | ||
$(ECHFS) -m -p0 $(BOOTDISK) import $(DISTRO_DIRECTORY)/limine.cfg limine.cfg | ||
|
||
$(LIMINE) $(LIMINE_LOADER) $(BOOTDISK) | ||
|
||
QEMU_DISK:=-hda $(BOOTDISK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
TIMEOUT=5 | ||
|
||
:skiftOS | ||
PROTOCOL=stivale | ||
|
||
KERNEL_PARTITION=0 | ||
KERNEL_PATH=kernel.bin | ||
KERNEL_PROTO=stivale | ||
|
||
MODULE_PARTITION=0 | ||
MODULE_PATH=ramdisk.tar | ||
MODULE_PARTITION=ramdisk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
$(BOOTDISK): $(RAMDISK) $(KERNEL_BINARY) $(DISTRO_DIRECTORY)/limine.cfg $(ECHFS) $(LIMINE) $(LIMINE_LOADER) | ||
$(DIRECTORY_GUARD) | ||
|
||
rm -f $(BOOTDISK) | ||
|
||
dd if=/dev/zero bs=1M count=0 seek=64 of=$(BOOTDISK) | ||
|
||
parted -s $(BOOTDISK) mklabel msdos | ||
parted -s $(BOOTDISK) mkpart primary 1 100% | ||
|
||
$(ECHFS) -m -p0 $(BOOTDISK) quick-format 32768 | ||
$(ECHFS) -m -p0 $(BOOTDISK) import $(KERNEL_BINARY) kernel.bin | ||
$(ECHFS) -m -p0 $(BOOTDISK) import $(RAMDISK) ramdisk.tar | ||
$(ECHFS) -m -p0 $(BOOTDISK) import $(DISTRO_DIRECTORY)/limine.cfg limine.cfg | ||
|
||
$(LIMINE) $(LIMINE_LOADER) $(BOOTDISK) | ||
|
||
QEMU_DISK:=-hda $(BOOTDISK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
ECHFS:=thirdparty/echfs/echfs-utils | ||
LIMINE:=thirdparty/limine/limine-install | ||
LIMINE_LOADER:=thirdparty/limine/limine.bin | ||
|
||
$(ECHFS): | ||
make -C thirdparty/echfs/ all | ||
|
||
$(LIMINE): | ||
make -C thirdparty/limine/ limine-install | ||
|
||
$(LIMINE_LOADER): | ||
make -C thirdparty/limine/ all |
Submodule limine
updated
from 4bda00 to 9fd401