Skip to content

Commit 3a72503

Browse files
update limine to 9.x from 4.x
1 parent 363ae24 commit 3a72503

29 files changed

+1518
-3161
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ add_link_options("-m elf_x86_64 -nostdlib -no-pie -T buildtools/linker.ld")
4949

5050
add_custom_target(ISO ALL DEPENDS ${CMAKE_BINARY_DIR}/rr.iso)
5151

52-
copy_config(limine.cfg limine.cfg)
53-
copy_config(limine.sys limine/limine.sys)
54-
copy_config(limine-cd.bin limine/limine-cd.bin)
55-
copy_config(limine-efi.bin limine/limine-cd-efi.bin)
52+
copy_config(limine.conf limine.conf)
53+
copy_config(limine-bios.sys limine/limine-bios.sys)
54+
copy_config(limine-bios-cd.bin limine/limine-bios-cd.bin)
55+
copy_config(limine-uefi-cd.bin limine/limine-uefi-cd.bin)
5656

5757
file(GLOB image_list ${CMAKE_SOURCE_DIR}/os/images/*)
5858
set(IMAGE_TARGETS "")

build-boot-image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function hasBinary(string $bin): bool
9191
fail("kernel symbols not found at '{$symbolPath}'");
9292
}
9393

94-
$limineCfgSrc = $scriptDir . '/limine-hdd.cfg';
94+
$limineCfgSrc = $scriptDir . '/limine-hdd.conf';
9595
if (!is_file($limineCfgSrc)) {
9696
fail("limine-hdd.cfg not found next to this script ('{$limineCfgSrc}'). This is fatal.");
9797
}
@@ -116,7 +116,7 @@ function hasBinary(string $bin): bool
116116

117117
echo ">> Copying files to boot image\n";
118118
runCommand("mcopy -i " . escapeshellarg($outImage) . " -sp " . escapeshellarg($limineBoot) . " ::/EFI/BOOT/BOOTX64.EFI");
119-
runCommand("mcopy -i " . escapeshellarg($outImage) . " -sp " . escapeshellarg($limineCfgSrc) . " ::/limine.cfg");
119+
runCommand("mcopy -i " . escapeshellarg($outImage) . " -sp " . escapeshellarg($limineCfgSrc) . " ::/limine.conf");
120120
runCommand("mcopy -i " . escapeshellarg($outImage) . " -sp " . escapeshellarg($kernelPath) . " ::/kernel.bin");
121121
runCommand("mcopy -i " . escapeshellarg($outImage) . " -sp " . escapeshellarg($symbolPath) . " ::/kernel.sym");
122122

cmake/custom_targets.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ endfunction()
165165
function(iso TARGETFILE SOURCEFILE)
166166
set(OUTNAME "${CMAKE_BINARY_DIR}/${TARGETFILE}")
167167
add_custom_command(OUTPUT ${OUTNAME}
168-
COMMAND php ../build-boot-image.php && xorriso -as mkisofs --quiet -b limine-cd.bin -joliet -no-emul-boot -boot-load-size 4 -boot-info-table -V "RETROROCKET" --protective-msdos-label "${CMAKE_BINARY_DIR}/iso" -o "${CMAKE_BINARY_DIR}/rr.iso"
168+
COMMAND php ../build-boot-image.php && xorriso -as mkisofs --quiet -b limine-bios-cd.bin -joliet -no-emul-boot -boot-load-size 4 -boot-info-table -V "RETROROCKET" --protective-msdos-label "${CMAKE_BINARY_DIR}/iso" -o "${CMAKE_BINARY_DIR}/rr.iso"
169169
DEPENDS SYMBOLS "kernel.bin" "RUN_run.sh" "DEBUG_debug.sh" ${basic_program_list} ${basic_library_list} ${basic_driver_list} ${KEYMAP_TARGETS} ${TIMEZONE_TARGETS} ${CONFIG_TARGETS} ${IMAGE_TARGETS} ${MODULE_TARGETS})
170-
add_dependencies(ISO SYMBOLS "kernel.bin" "RUN_run.sh" "DEBUG_debug.sh" "config_limine.cfg")
170+
add_dependencies(ISO SYMBOLS "kernel.bin" "RUN_run.sh" "DEBUG_debug.sh" "config_limine.conf")
171171
endfunction()

limine-hdd.cfg

Lines changed: 0 additions & 13 deletions
This file was deleted.

limine-hdd.conf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
timeout: 0
2+
interface_resolution: 1920x1080
3+
interface_branding: Retro Rocket
4+
interface_branding_color: 3;1;40
5+
randomize_memory: no
6+
7+
/Retro Rocket
8+
protocol: limine
9+
resolution: 1920x1080x32
10+
kaslr: no
11+
path: boot():/kernel.bin
12+
module_cmdline: Symbols
13+
module_path: boot():/kernel.sym

limine.cfg

Lines changed: 0 additions & 23 deletions
This file was deleted.

limine.conf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
timeout: 5
2+
interface_resolution: 1920x1080
3+
interface_branding: Retro Rocket
4+
interface_branding_color: 3;1;40
5+
randomize_memory: no
6+
7+
/Retro Rocket
8+
protocol: limine
9+
resolution: 1920x1080x32
10+
kaslr: no
11+
path: boot():/kernel.bin
12+
module_cmdline: Symbols
13+
module_path: boot():/kernel.sym
14+
15+
/Install Retro Rocket
16+
protocol: limine
17+
resolution: 1920x1080x32
18+
kaslr: no
19+
path: boot():/kernel.bin
20+
cmdline: install
21+
module_cmdline: Symbols
22+
module_path: boot():/kernel.sym

limine/.gitignore

100644100755
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
limine-deploy
2-
limine-deploy.exe
3-
limine-version
4-
limine-version.exe
5-
limine-enroll-config
6-
limine-enroll-config.exe
1+
limine
2+
limine.exe

limine/BOOTAA64.EFI

-200 KB
Binary file not shown.

limine/BOOTIA32.EFI

-248 KB
Binary file not shown.

0 commit comments

Comments
 (0)