misc: limine-install -> limine-s2deploy
This commit is contained in:
parent
01fd8257e3
commit
65b5a7f66f
|
@ -40,35 +40,35 @@ jobs:
|
||||||
- name: Build the bootloader
|
- name: Build the bootloader
|
||||||
run: make -C build
|
run: make -C build
|
||||||
|
|
||||||
- name: Clean limine-install
|
- name: Clean limine-s2deploy
|
||||||
run: rm build/bin/limine-install
|
run: rm build/bin/limine-s2deploy
|
||||||
|
|
||||||
- name: Build limine-install-linux-x86_64
|
- name: Build limine-s2deploy-linux-x86_64
|
||||||
run: make -C build CFLAGS="-O2 -pipe -static" limine-install
|
run: make -C build CFLAGS="-O2 -pipe -static" limine-s2deploy
|
||||||
|
|
||||||
- name: Strip limine-install-linux-x86_64
|
- name: Strip limine-s2deploy-linux-x86_64
|
||||||
run: strip build/bin/limine-install
|
run: strip build/bin/limine-s2deploy
|
||||||
|
|
||||||
- name: Rename limine-install-linux-x86_64
|
- name: Rename limine-s2deploy-linux-x86_64
|
||||||
run: mv build/bin/limine-install build/bin/limine-install-linux-x86_64
|
run: mv build/bin/limine-s2deploy build/bin/limine-s2deploy-linux-x86_64
|
||||||
|
|
||||||
- name: Build limine-install-linux-x86_32
|
- name: Build limine-s2deploy-linux-x86_32
|
||||||
run: make -C build CC="gcc -m32" CFLAGS="-O2 -pipe -static" limine-install
|
run: make -C build CC="gcc -m32" CFLAGS="-O2 -pipe -static" limine-s2deploy
|
||||||
|
|
||||||
- name: Strip limine-install-linux-x86_32
|
- name: Strip limine-s2deploy-linux-x86_32
|
||||||
run: strip build/bin/limine-install
|
run: strip build/bin/limine-s2deploy
|
||||||
|
|
||||||
- name: Rename limine-install-linux-x86_32
|
- name: Rename limine-s2deploy-linux-x86_32
|
||||||
run: mv build/bin/limine-install build/bin/limine-install-linux-x86_32
|
run: mv build/bin/limine-s2deploy build/bin/limine-s2deploy-linux-x86_32
|
||||||
|
|
||||||
- name: Build limine-install-win32
|
- name: Build limine-s2deploy-win32
|
||||||
run: make -C build CC="i686-w64-mingw32-gcc" CFLAGS="-O2 -pipe" limine-install
|
run: make -C build CC="i686-w64-mingw32-gcc" CFLAGS="-O2 -pipe" limine-s2deploy
|
||||||
|
|
||||||
- name: Strip limine-install-win32
|
- name: Strip limine-s2deploy-win32
|
||||||
run: i686-w64-mingw32-strip build/bin/limine-install.exe
|
run: i686-w64-mingw32-strip build/bin/limine-s2deploy.exe
|
||||||
|
|
||||||
- name: Rename limine-install-win32
|
- name: Rename limine-s2deploy-win32
|
||||||
run: mv build/bin/limine-install.exe build/bin/limine-install-win32.exe
|
run: mv build/bin/limine-s2deploy.exe build/bin/limine-s2deploy-win32.exe
|
||||||
|
|
||||||
- name: Copy LICENSE to bin
|
- name: Copy LICENSE to bin
|
||||||
run: cp LICENSE.md build/bin/
|
run: cp LICENSE.md build/bin/
|
||||||
|
|
|
@ -19,7 +19,7 @@ export PATH
|
||||||
override BUILD_ELTORITO_EFI := @BUILD_ELTORITO_EFI@
|
override BUILD_ELTORITO_EFI := @BUILD_ELTORITO_EFI@
|
||||||
override BUILD_PXE := @BUILD_PXE@
|
override BUILD_PXE := @BUILD_PXE@
|
||||||
override BUILD_CD := @BUILD_CD@
|
override BUILD_CD := @BUILD_CD@
|
||||||
override BUILD_LIMINE_INSTALL := @BUILD_LIMINE_INSTALL@
|
override BUILD_LIMINE_S2DEPLOY := @BUILD_LIMINE_S2DEPLOY@
|
||||||
|
|
||||||
WERROR ?= @WERROR@
|
WERROR ?= @WERROR@
|
||||||
export WERROR
|
export WERROR
|
||||||
|
@ -82,12 +82,12 @@ all: @BUILD_UEFI@ @BUILD_BIOS@
|
||||||
limine-hdd.h: $(call MKESCAPE,$(BINDIR))/limine-hdd.h
|
limine-hdd.h: $(call MKESCAPE,$(BINDIR))/limine-hdd.h
|
||||||
|
|
||||||
$(call MKESCAPE,$(BINDIR))/limine-hdd.h: $(call MKESCAPE,$(BINDIR))/limine-hdd.bin
|
$(call MKESCAPE,$(BINDIR))/limine-hdd.h: $(call MKESCAPE,$(BINDIR))/limine-hdd.bin
|
||||||
cd '$(call SHESCAPE,$(BINDIR))' && '$(call SHESCAPE,$(SRCDIR))/limine-install/hgen.sh' >limine-hdd.h
|
cd '$(call SHESCAPE,$(BINDIR))' && '$(call SHESCAPE,$(SRCDIR))/limine-s2deploy/hgen.sh' >limine-hdd.h
|
||||||
|
|
||||||
.PHONY: limine-install
|
.PHONY: limine-s2deploy
|
||||||
limine-install:
|
limine-s2deploy:
|
||||||
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
||||||
cp '$(call SHESCAPE,$(SRCDIR))/limine-install/Makefile' '$(call SHESCAPE,$(SRCDIR))/limine-install/limine-install.c' '$(call SHESCAPE,$(SRCDIR))/limine-install/.gitignore' '$(call SHESCAPE,$(BINDIR))/'
|
cp '$(call SHESCAPE,$(SRCDIR))/limine-s2deploy/Makefile' '$(call SHESCAPE,$(SRCDIR))/limine-s2deploy/limine-s2deploy.c' '$(call SHESCAPE,$(SRCDIR))/limine-s2deploy/.gitignore' '$(call SHESCAPE,$(BINDIR))/'
|
||||||
$(MAKE) limine-hdd.h
|
$(MAKE) limine-hdd.h
|
||||||
$(MAKE) -C '$(call SHESCAPE,$(BINDIR))'
|
$(MAKE) -C '$(call SHESCAPE,$(BINDIR))'
|
||||||
|
|
||||||
|
@ -109,16 +109,16 @@ install-data:
|
||||||
.PHONY: install-strip
|
.PHONY: install-strip
|
||||||
install-strip: install-data
|
install-strip: install-data
|
||||||
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
||||||
$(INSTALL) -s '$(call SHESCAPE,$(BINDIR))/limine-install' '$(DESTDIR)$(PREFIX)/bin/' || true
|
$(INSTALL) -s '$(call SHESCAPE,$(BINDIR))/limine-s2deploy' '$(DESTDIR)$(PREFIX)/bin/' || true
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: install-data
|
install: install-data
|
||||||
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
||||||
$(INSTALL) '$(call SHESCAPE,$(BINDIR))/limine-install' '$(DESTDIR)$(PREFIX)/bin/' || true
|
$(INSTALL) '$(call SHESCAPE,$(BINDIR))/limine-s2deploy' '$(DESTDIR)$(PREFIX)/bin/' || true
|
||||||
|
|
||||||
.PHONY: uninstall
|
.PHONY: uninstall
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f '$(DESTDIR)$(PREFIX)/bin/limine-install'
|
rm -f '$(DESTDIR)$(PREFIX)/bin/limine-s2deploy'
|
||||||
rm -f '$(DESTDIR)$(PREFIX)/share/limine'
|
rm -f '$(DESTDIR)$(PREFIX)/share/limine'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/stage1.stamp: $(STAGE1_FILES) $(call MKESCAPE,$(BUILDDIR))/decompressor-build/decompressor.bin $(call MKESCAPE,$(BUILDDIR))/common-bios/stage2.bin.gz
|
$(call MKESCAPE,$(BUILDDIR))/stage1.stamp: $(STAGE1_FILES) $(call MKESCAPE,$(BUILDDIR))/decompressor-build/decompressor.bin $(call MKESCAPE,$(BUILDDIR))/common-bios/stage2.bin.gz
|
||||||
|
@ -136,8 +136,8 @@ endif
|
||||||
.PHONY: limine-bios
|
.PHONY: limine-bios
|
||||||
limine-bios: common-bios decompressor
|
limine-bios: common-bios decompressor
|
||||||
$(MAKE) '$(call SHESCAPE,$(BUILDDIR))/stage1.stamp'
|
$(MAKE) '$(call SHESCAPE,$(BUILDDIR))/stage1.stamp'
|
||||||
ifneq ($(BUILD_LIMINE_INSTALL), no)
|
ifneq ($(BUILD_LIMINE_S2DEPLOY), no)
|
||||||
$(MAKE) limine-install
|
$(MAKE) limine-s2deploy
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: limine-eltorito-efi
|
.PHONY: limine-eltorito-efi
|
||||||
|
@ -268,7 +268,7 @@ echfs-test:
|
||||||
$(MAKE) test-clean
|
$(MAKE) test-clean
|
||||||
$(MAKE) test.hdd
|
$(MAKE) test.hdd
|
||||||
$(MAKE) limine-bios
|
$(MAKE) limine-bios
|
||||||
$(MAKE) limine-install
|
$(MAKE) limine-s2deploy
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
echfs-utils -g -p0 test.hdd quick-format 512 > part_guid
|
echfs-utils -g -p0 test.hdd quick-format 512 > part_guid
|
||||||
sed "s/@GUID@/`cat part_guid`/g" < test/limine.cfg > limine.cfg.tmp
|
sed "s/@GUID@/`cat part_guid`/g" < test/limine.cfg > limine.cfg.tmp
|
||||||
|
@ -277,14 +277,14 @@ echfs-test:
|
||||||
echfs-utils -g -p0 test.hdd import test/test.elf boot/test.elf
|
echfs-utils -g -p0 test.hdd import test/test.elf boot/test.elf
|
||||||
echfs-utils -g -p0 test.hdd import test/bg.bmp boot/bg.bmp
|
echfs-utils -g -p0 test.hdd import test/bg.bmp boot/bg.bmp
|
||||||
echfs-utils -g -p0 test.hdd import $(BINDIR)/limine.sys boot/limine.sys
|
echfs-utils -g -p0 test.hdd import $(BINDIR)/limine.sys boot/limine.sys
|
||||||
$(BINDIR)/limine-install test.hdd
|
$(BINDIR)/limine-s2deploy test.hdd
|
||||||
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
||||||
|
|
||||||
.PHONY: fwcfg-common fwcfg-test fwcfg-simple-test
|
.PHONY: fwcfg-common fwcfg-test fwcfg-simple-test
|
||||||
fwcfg-common:
|
fwcfg-common:
|
||||||
$(MAKE) test-clean
|
$(MAKE) test-clean
|
||||||
$(MAKE) limine-bios
|
$(MAKE) limine-bios
|
||||||
$(MAKE) limine-install
|
$(MAKE) limine-s2deploy
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
rm -rf test_image/
|
rm -rf test_image/
|
||||||
mkdir -p test_image/boot
|
mkdir -p test_image/boot
|
||||||
|
@ -309,7 +309,7 @@ ext2-test:
|
||||||
$(MAKE) test-clean
|
$(MAKE) test-clean
|
||||||
$(MAKE) test.hdd
|
$(MAKE) test.hdd
|
||||||
$(MAKE) limine-bios
|
$(MAKE) limine-bios
|
||||||
$(MAKE) limine-install
|
$(MAKE) limine-s2deploy
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
rm -rf test_image/
|
rm -rf test_image/
|
||||||
mkdir test_image
|
mkdir test_image
|
||||||
|
@ -324,7 +324,7 @@ ext2-test:
|
||||||
sudo umount test_image/
|
sudo umount test_image/
|
||||||
sudo losetup -d `cat loopback_dev`
|
sudo losetup -d `cat loopback_dev`
|
||||||
rm -rf test_image loopback_dev
|
rm -rf test_image loopback_dev
|
||||||
$(BINDIR)/limine-install test.hdd
|
$(BINDIR)/limine-s2deploy test.hdd
|
||||||
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
||||||
|
|
||||||
.PHONY: fat12-test
|
.PHONY: fat12-test
|
||||||
|
@ -332,7 +332,7 @@ fat12-test:
|
||||||
$(MAKE) test-clean
|
$(MAKE) test-clean
|
||||||
$(MAKE) test.hdd
|
$(MAKE) test.hdd
|
||||||
$(MAKE) limine-bios
|
$(MAKE) limine-bios
|
||||||
$(MAKE) limine-install
|
$(MAKE) limine-s2deploy
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
rm -rf test_image/
|
rm -rf test_image/
|
||||||
mkdir test_image
|
mkdir test_image
|
||||||
|
@ -347,7 +347,7 @@ fat12-test:
|
||||||
sudo umount test_image/
|
sudo umount test_image/
|
||||||
sudo losetup -d `cat loopback_dev`
|
sudo losetup -d `cat loopback_dev`
|
||||||
rm -rf test_image loopback_dev
|
rm -rf test_image loopback_dev
|
||||||
$(BINDIR)/limine-install test.hdd
|
$(BINDIR)/limine-s2deploy test.hdd
|
||||||
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
||||||
|
|
||||||
.PHONY: fat16-test
|
.PHONY: fat16-test
|
||||||
|
@ -355,7 +355,7 @@ fat16-test:
|
||||||
$(MAKE) test-clean
|
$(MAKE) test-clean
|
||||||
$(MAKE) test.hdd
|
$(MAKE) test.hdd
|
||||||
$(MAKE) limine-bios
|
$(MAKE) limine-bios
|
||||||
$(MAKE) limine-install
|
$(MAKE) limine-s2deploy
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
rm -rf test_image/
|
rm -rf test_image/
|
||||||
mkdir test_image
|
mkdir test_image
|
||||||
|
@ -370,7 +370,7 @@ fat16-test:
|
||||||
sudo umount test_image/
|
sudo umount test_image/
|
||||||
sudo losetup -d `cat loopback_dev`
|
sudo losetup -d `cat loopback_dev`
|
||||||
rm -rf test_image loopback_dev
|
rm -rf test_image loopback_dev
|
||||||
$(BINDIR)/limine-install test.hdd
|
$(BINDIR)/limine-s2deploy test.hdd
|
||||||
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
||||||
|
|
||||||
.PHONY: legacy-fat16-test
|
.PHONY: legacy-fat16-test
|
||||||
|
@ -379,7 +379,7 @@ legacy-fat16-test:
|
||||||
$(MAKE) mbrtest.hdd
|
$(MAKE) mbrtest.hdd
|
||||||
fdisk -l mbrtest.hdd
|
fdisk -l mbrtest.hdd
|
||||||
$(MAKE) limine-bios
|
$(MAKE) limine-bios
|
||||||
$(MAKE) limine-install
|
$(MAKE) limine-s2deploy
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
rm -rf test_image/
|
rm -rf test_image/
|
||||||
mkdir test_image
|
mkdir test_image
|
||||||
|
@ -394,7 +394,7 @@ legacy-fat16-test:
|
||||||
sudo umount test_image/
|
sudo umount test_image/
|
||||||
sudo losetup -d `cat loopback_dev`
|
sudo losetup -d `cat loopback_dev`
|
||||||
rm -rf test_image loopback_dev
|
rm -rf test_image loopback_dev
|
||||||
$(BINDIR)/limine-install mbrtest.hdd
|
$(BINDIR)/limine-s2deploy mbrtest.hdd
|
||||||
qemu-system-i386 -cpu pentium2 -m 16M -M isapc -net none -hda mbrtest.hdd -debugcon stdio
|
qemu-system-i386 -cpu pentium2 -m 16M -M isapc -net none -hda mbrtest.hdd -debugcon stdio
|
||||||
|
|
||||||
.PHONY: fat32-test
|
.PHONY: fat32-test
|
||||||
|
@ -402,7 +402,7 @@ fat32-test:
|
||||||
$(MAKE) test-clean
|
$(MAKE) test-clean
|
||||||
$(MAKE) test.hdd
|
$(MAKE) test.hdd
|
||||||
$(MAKE) limine-bios
|
$(MAKE) limine-bios
|
||||||
$(MAKE) limine-install
|
$(MAKE) limine-s2deploy
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
rm -rf test_image/
|
rm -rf test_image/
|
||||||
mkdir test_image
|
mkdir test_image
|
||||||
|
@ -417,7 +417,7 @@ fat32-test:
|
||||||
sudo umount test_image/
|
sudo umount test_image/
|
||||||
sudo losetup -d `cat loopback_dev`
|
sudo losetup -d `cat loopback_dev`
|
||||||
rm -rf test_image loopback_dev
|
rm -rf test_image loopback_dev
|
||||||
$(BINDIR)/limine-install test.hdd
|
$(BINDIR)/limine-s2deploy test.hdd
|
||||||
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
||||||
|
|
||||||
.PHONY: iso9660-test
|
.PHONY: iso9660-test
|
||||||
|
@ -438,7 +438,7 @@ ntfs-test:
|
||||||
$(MAKE) test-clean
|
$(MAKE) test-clean
|
||||||
$(MAKE) test.hdd
|
$(MAKE) test.hdd
|
||||||
$(MAKE) limine-bios
|
$(MAKE) limine-bios
|
||||||
$(MAKE) limine-install
|
$(MAKE) limine-s2deploy
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
rm -rf test_image/
|
rm -rf test_image/
|
||||||
mkdir test_image
|
mkdir test_image
|
||||||
|
@ -453,7 +453,7 @@ ntfs-test:
|
||||||
sudo umount test_image/
|
sudo umount test_image/
|
||||||
sudo losetup -d `cat loopback_dev`
|
sudo losetup -d `cat loopback_dev`
|
||||||
rm -rf test_image loopback_dev
|
rm -rf test_image loopback_dev
|
||||||
$(BINDIR)/limine-install test.hdd
|
$(BINDIR)/limine-s2deploy test.hdd
|
||||||
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
qemu-system-x86_64 -net none -smp 4 -hda test.hdd -debugcon stdio
|
||||||
|
|
||||||
.PHONY: full-hybrid-test
|
.PHONY: full-hybrid-test
|
||||||
|
@ -468,7 +468,7 @@ full-hybrid-test:
|
||||||
sudo cp -rv $(BINDIR)/* test_image/boot/
|
sudo cp -rv $(BINDIR)/* test_image/boot/
|
||||||
sudo cp -rv test/* test_image/boot/
|
sudo cp -rv test/* test_image/boot/
|
||||||
xorriso -as mkisofs -b boot/limine-cd.bin -no-emul-boot -boot-load-size 4 -boot-info-table --efi-boot boot/limine-eltorito-efi.bin -efi-boot-part --efi-boot-image --protective-msdos-label test_image/ -o test.iso
|
xorriso -as mkisofs -b boot/limine-cd.bin -no-emul-boot -boot-load-size 4 -boot-info-table --efi-boot boot/limine-eltorito-efi.bin -efi-boot-part --efi-boot-image --protective-msdos-label test_image/ -o test.iso
|
||||||
$(BINDIR)/limine-install test.iso
|
$(BINDIR)/limine-s2deploy test.iso
|
||||||
qemu-system-x86_64 -m 512M -M q35 -bios ovmf-x64/OVMF.fd -net none -smp 4 -cdrom test.iso -debugcon stdio
|
qemu-system-x86_64 -m 512M -M q35 -bios ovmf-x64/OVMF.fd -net none -smp 4 -cdrom test.iso -debugcon stdio
|
||||||
qemu-system-x86_64 -m 512M -M q35 -bios ovmf-x64/OVMF.fd -net none -smp 4 -hda test.iso -debugcon stdio
|
qemu-system-x86_64 -m 512M -M q35 -bios ovmf-x64/OVMF.fd -net none -smp 4 -hda test.iso -debugcon stdio
|
||||||
qemu-system-x86_64 -m 512M -M q35 -bios ovmf-ia32/OVMF.fd -net none -smp 4 -cdrom test.iso -debugcon stdio
|
qemu-system-x86_64 -m 512M -M q35 -bios ovmf-ia32/OVMF.fd -net none -smp 4 -cdrom test.iso -debugcon stdio
|
||||||
|
|
22
README.md
22
README.md
|
@ -61,9 +61,9 @@ fetching the `latest-binary` branch:
|
||||||
git clone https://github.com/limine-bootloader/limine.git --branch=latest-binary --depth=1
|
git clone https://github.com/limine-bootloader/limine.git --branch=latest-binary --depth=1
|
||||||
```
|
```
|
||||||
|
|
||||||
`limine-install` binaries are provided for Linux and Windows.
|
`limine-s2deploy` binaries are provided for Linux and Windows.
|
||||||
|
|
||||||
In case one wants to rebuild `limine-install`, simply run `make` in the binary
|
In case one wants to rebuild `limine-s2deploy`, simply run `make` in the binary
|
||||||
release directory.
|
release directory.
|
||||||
|
|
||||||
## Building the bootloader
|
## Building the bootloader
|
||||||
|
@ -146,10 +146,10 @@ with a supported file system (the ESP partition is recommended).
|
||||||
|
|
||||||
### BIOS/MBR
|
### BIOS/MBR
|
||||||
In order to install Limine on a MBR device (which can just be a raw image file),
|
In order to install Limine on a MBR device (which can just be a raw image file),
|
||||||
run `limine-install` as such:
|
run `limine-s2deploy` as such:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
limine-install <path to device/image>
|
limine-s2deploy <path to device/image>
|
||||||
```
|
```
|
||||||
|
|
||||||
The boot device must to contain the `limine.sys` and `limine.cfg` files in
|
The boot device must to contain the `limine.sys` and `limine.cfg` files in
|
||||||
|
@ -160,18 +160,18 @@ with a supported file system.
|
||||||
If using a GPT formatted device, there are 2 options one can follow for
|
If using a GPT formatted device, there are 2 options one can follow for
|
||||||
installation:
|
installation:
|
||||||
* Specifying a dedicated stage 2 partition.
|
* Specifying a dedicated stage 2 partition.
|
||||||
* Letting `limine-install` attempt to embed stage 2 within GPT structures.
|
* Letting `limine-s2deploy` attempt to embed stage 2 within GPT structures.
|
||||||
|
|
||||||
In case one wants to specify a stage 2 partition, create a partition on the GPT
|
In case one wants to specify a stage 2 partition, create a partition on the GPT
|
||||||
device of at least 32KiB in size, and pass the 1-based number of the partition
|
device of at least 32KiB in size, and pass the 1-based number of the partition
|
||||||
to `limine-install` as a second argument; such as:
|
to `limine-s2deploy` as a second argument; such as:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
limine-install <path to device/image> <1-based stage 2 partition number>
|
limine-s2deploy <path to device/image> <1-based stage 2 partition number>
|
||||||
```
|
```
|
||||||
|
|
||||||
In case one wants to let `limine-install` embed stage 2 within GPT's structures,
|
In case one wants to let `limine-s2deploy` embed stage 2 within GPT's structures,
|
||||||
simply omit the partition number, and invoke `limine-install` the same as one
|
simply omit the partition number, and invoke `limine-s2deploy` the same as one
|
||||||
would do for an MBR partitioned device.
|
would do for an MBR partitioned device.
|
||||||
|
|
||||||
The boot device must to contain the `limine.sys` and `limine.cfg` files in
|
The boot device must to contain the `limine.sys` and `limine.cfg` files in
|
||||||
|
@ -198,9 +198,9 @@ xorriso -as mkisofs -b <relative path of limine-cd.bin> \
|
||||||
|
|
||||||
*Note: `xorriso` is required.*
|
*Note: `xorriso` is required.*
|
||||||
|
|
||||||
And do not forget to also run `limine-install` on the generated image:
|
And do not forget to also run `limine-s2deploy` on the generated image:
|
||||||
```
|
```
|
||||||
limine-install image.iso
|
limine-s2deploy image.iso
|
||||||
```
|
```
|
||||||
|
|
||||||
`<relative path of limine-cd.bin>` is the relative path of
|
`<relative path of limine-cd.bin>` is the relative path of
|
||||||
|
|
10
configure.ac
10
configure.ac
|
@ -60,13 +60,13 @@ fi
|
||||||
|
|
||||||
AC_SUBST(BUILD_BIOS, [$BUILD_BIOS])
|
AC_SUBST(BUILD_BIOS, [$BUILD_BIOS])
|
||||||
|
|
||||||
BUILD_LIMINE_INSTALL="default"
|
BUILD_LIMINE_S2DEPLOY="default"
|
||||||
|
|
||||||
AC_ARG_ENABLE([limine-install],
|
AC_ARG_ENABLE([limine-s2deploy],
|
||||||
AS_HELP_STRING([--disable-limine-install], [disable building limine-install]),
|
AS_HELP_STRING([--disable-limine-s2deploy], [disable building limine-s2deploy]),
|
||||||
BUILD_LIMINE_INSTALL="$enableval")
|
BUILD_LIMINE_S2DEPLOY="$enableval")
|
||||||
|
|
||||||
AC_SUBST(BUILD_LIMINE_INSTALL, [$BUILD_LIMINE_INSTALL])
|
AC_SUBST(BUILD_LIMINE_S2DEPLOY, [$BUILD_LIMINE_S2DEPLOY])
|
||||||
|
|
||||||
BUILD_CD="default"
|
BUILD_CD="default"
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
limine-install
|
|
||||||
limine-install.exe
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
limine-s2deploy
|
||||||
|
limine-s2deploy.exe
|
|
@ -6,7 +6,7 @@ PREFIX ?= /usr/local
|
||||||
CFLAGS ?= -g -O2 -pipe -Wall -Wextra
|
CFLAGS ?= -g -O2 -pipe -Wall -Wextra
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: limine-install
|
all: limine-s2deploy
|
||||||
|
|
||||||
.PHONY: install-data
|
.PHONY: install-data
|
||||||
install-data: all
|
install-data: all
|
||||||
|
@ -22,16 +22,16 @@ install-data: all
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: install-data
|
install: install-data
|
||||||
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
||||||
$(INSTALL) limine-install '$(DESTDIR)$(PREFIX)/bin/'
|
$(INSTALL) limine-s2deploy '$(DESTDIR)$(PREFIX)/bin/'
|
||||||
|
|
||||||
.PHONY: install-strip
|
.PHONY: install-strip
|
||||||
install-strip: install-data
|
install-strip: install-data
|
||||||
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
||||||
$(INSTALL) -s limine-install '$(DESTDIR)$(PREFIX)/bin/'
|
$(INSTALL) -s limine-s2deploy '$(DESTDIR)$(PREFIX)/bin/'
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f limine-install limine-install.exe
|
rm -f limine-s2deploy limine-s2deploy.exe
|
||||||
|
|
||||||
limine-install: limine-install.c
|
limine-s2deploy: limine-s2deploy.c
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -std=c99 limine-install.c -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) -std=c99 limine-s2deploy.c -o $@
|
Loading…
Reference in New Issue