mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-27 15:04:31 +00:00
Change BOOTLOADER options
This commit is contained in:
parent
b0ff30941d
commit
9230491801
6
Makefile
6
Makefile
@ -133,8 +133,7 @@ ifeq ($(BOOTLOADER), lynx)
|
||||
-efi-boot-part --efi-boot-image --protective-msdos-label \
|
||||
iso_tmp_data -o $(OSNAME).iso
|
||||
endif
|
||||
ifeq ($(BOOTLOADER), other)
|
||||
ifeq ($(OSARCH), amd64)
|
||||
ifeq ($(BOOTLOADER), limine)
|
||||
cp tools/limine.cfg $(LIMINE_FOLDER)/limine.sys $(LIMINE_FOLDER)/limine-cd.bin $(LIMINE_FOLDER)/limine-cd-efi.bin iso_tmp_data/
|
||||
xorriso -as mkisofs -quiet -b limine-cd.bin \
|
||||
-no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
@ -142,7 +141,7 @@ ifeq ($(OSARCH), amd64)
|
||||
-efi-boot-part --efi-boot-image --protective-msdos-label \
|
||||
iso_tmp_data -o $(OSNAME).iso
|
||||
endif
|
||||
ifeq ($(OSARCH), i686)
|
||||
ifeq ($(BOOTLOADER), grub)
|
||||
# TODO: Add custom language support for GRUB or detect the system language using "echo $LANG | cut -d . -f 1" and set "lang" variable inside grub.cfg
|
||||
mkdir -p iso_tmp_data/boot
|
||||
mkdir -p iso_tmp_data/boot/grub
|
||||
@ -152,7 +151,6 @@ endif
|
||||
ifeq ($(OSARCH), aarch64)
|
||||
$(COMPILER_PATH)/$(COMPILER_ARCH)objcopy Kernel/kernel.fsys -O binary $(OSNAME).img
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(OSARCH), amd64)
|
||||
QEMU_UEFI_BIOS = -bios /usr/share/qemu/OVMF.fd
|
||||
|
@ -15,9 +15,10 @@ KERNEL_VERSION = pre-alpha-0.0.0.1
|
||||
|
||||
# Which bootloader to use.
|
||||
# Available bootloaders:
|
||||
# - lynx - Lynx Bootloader (still under development)
|
||||
# - other - Limine (64-bit) & GRUB Bootloader (32-bit)
|
||||
BOOTLOADER=other
|
||||
# - lynx - Lynx (still under development)
|
||||
# - limine - Limine
|
||||
# - grub - GRUB
|
||||
BOOTLOADER=limine
|
||||
|
||||
# The path of the cross-compiler.
|
||||
COMPILER_PATH = tools/cross/bin
|
||||
|
Loading…
x
Reference in New Issue
Block a user