Compare commits
54 Commits
v2.50.1-bi
...
v2.74.2-bi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23508f2f54 | ||
|
|
8b602028b7 | ||
|
|
1ab351f25d | ||
|
|
431e506371 | ||
|
|
63ab02ac8e | ||
|
|
99331a5e6b | ||
|
|
976efdbf15 | ||
|
|
3d64710f20 | ||
|
|
b915f182ec | ||
|
|
d8d80eddce | ||
|
|
9d51c5f71a | ||
|
|
3e2b38926d | ||
|
|
864ff24f5e | ||
|
|
0a204ea3f8 | ||
|
|
b4e3077a09 | ||
|
|
a3f264f064 | ||
|
|
ee9928d1c2 | ||
|
|
6995d449e9 | ||
|
|
a4165aedc5 | ||
|
|
e6ef50ff53 | ||
|
|
cc336eaf0d | ||
|
|
dc2235486a | ||
|
|
66b0d3d356 | ||
|
|
6ef43ef5c2 | ||
|
|
4961b1efe7 | ||
|
|
af0afaa23f | ||
|
|
d54803dd80 | ||
|
|
9372b97cf5 | ||
|
|
2945d0ad97 | ||
|
|
7b98e90c5e | ||
|
|
547f86df86 | ||
|
|
6477428047 | ||
|
|
4ae2ad46b3 | ||
|
|
1f8074403a | ||
|
|
d685f91650 | ||
|
|
107bf5139a | ||
|
|
dadd8c5125 | ||
|
|
feafa77977 | ||
|
|
3aa60d0743 | ||
|
|
97e02faeb1 | ||
|
|
ca206fe257 | ||
|
|
7de521d448 | ||
|
|
6cbc954f6f | ||
|
|
d7a59ca09b | ||
|
|
97e032b09f | ||
|
|
2d382f266e | ||
|
|
13b8ed17cf | ||
|
|
c2f085f3dd | ||
|
|
7b75c89af3 | ||
|
|
3d62073cdd | ||
|
|
d279f34ac1 | ||
|
|
c9dcf7ebf5 | ||
|
|
a7c4946513 | ||
|
|
fdc3d70f85 |
BIN
BOOTIA32.EFI
BIN
BOOTIA32.EFI
Binary file not shown.
BIN
BOOTX64.EFI
BIN
BOOTX64.EFI
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
Copyright 2019, 2020, 2021 mintsuki and contributors.
|
||||
Copyright 2019, 2020, 2021, 2022 mintsuki and contributors.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
|
||||
39
Makefile
39
Makefile
@@ -1,30 +1,29 @@
|
||||
CC = cc
|
||||
CC ?= cc
|
||||
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
PREFIX ?= /usr/local
|
||||
DESTDIR ?=
|
||||
|
||||
LIMINE_HDD_BIN = limine-hdd.bin
|
||||
|
||||
CFLAGS = -O2 -pipe -Wall -Wextra
|
||||
|
||||
.PHONY: all install clean
|
||||
CFLAGS ?= -O2 -pipe -Wall -Wextra
|
||||
|
||||
.PHONY: all
|
||||
all: limine-install
|
||||
|
||||
.PHONY: install
|
||||
install: all
|
||||
install -d "$(DESTDIR)$(PREFIX)/bin"
|
||||
install -s limine-install "$(DESTDIR)$(PREFIX)/bin/"
|
||||
install -d "$(DESTDIR)$(PREFIX)/share"
|
||||
install -d "$(DESTDIR)$(PREFIX)/share/limine"
|
||||
install -m 644 limine.sys "$(DESTDIR)$(PREFIX)/share/limine/"
|
||||
install -m 644 limine-cd.bin "$(DESTDIR)$(PREFIX)/share/limine/"
|
||||
install -m 644 limine-eltorito-efi.bin "$(DESTDIR)$(PREFIX)/share/limine/"
|
||||
install -m 644 limine-pxe.bin "$(DESTDIR)$(PREFIX)/share/limine/"
|
||||
install -m 644 BOOTX64.EFI "$(DESTDIR)$(PREFIX)/share/limine/"
|
||||
install -m 644 BOOTIA32.EFI "$(DESTDIR)$(PREFIX)/share/limine/"
|
||||
install -d '$(DESTDIR)$(PREFIX)/bin'
|
||||
install -s limine-install '$(DESTDIR)$(PREFIX)/bin/'
|
||||
install -d '$(DESTDIR)$(PREFIX)/share'
|
||||
install -d '$(DESTDIR)$(PREFIX)/share/limine'
|
||||
install -m 644 limine.sys '$(DESTDIR)$(PREFIX)/share/limine/'
|
||||
install -m 644 limine-cd.bin '$(DESTDIR)$(PREFIX)/share/limine/'
|
||||
install -m 644 limine-eltorito-efi.bin '$(DESTDIR)$(PREFIX)/share/limine/'
|
||||
install -m 644 limine-pxe.bin '$(DESTDIR)$(PREFIX)/share/limine/'
|
||||
install -m 644 BOOTX64.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
|
||||
install -m 644 BOOTIA32.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f limine-install limine-install.exe
|
||||
|
||||
limine-install: limine-install.c inc.S $(LIMINE_HDD_BIN)
|
||||
$(CC) $(CFLAGS) -std=c11 -DLIMINE_HDD_BIN='"$(LIMINE_HDD_BIN)"' limine-install.c inc.S -o $@
|
||||
limine-install: limine-install.c inc.S limine-hdd.bin
|
||||
$(CC) $(CFLAGS) -std=c11 limine-install.c inc.S -o $@
|
||||
|
||||
6
inc.S
6
inc.S
@@ -4,7 +4,7 @@
|
||||
.data
|
||||
.global __binary_limine_hdd_bin_start
|
||||
__binary_limine_hdd_bin_start:
|
||||
.incbin LIMINE_HDD_BIN
|
||||
.incbin "limine-hdd.bin"
|
||||
.global __binary_limine_hdd_bin_end
|
||||
__binary_limine_hdd_bin_end:
|
||||
|
||||
@@ -13,7 +13,7 @@ __binary_limine_hdd_bin_end:
|
||||
.section .data
|
||||
.global __binary_limine_hdd_bin_start
|
||||
__binary_limine_hdd_bin_start:
|
||||
.incbin LIMINE_HDD_BIN
|
||||
.incbin "limine-hdd.bin"
|
||||
.global __binary_limine_hdd_bin_end
|
||||
__binary_limine_hdd_bin_end:
|
||||
|
||||
@@ -26,7 +26,7 @@ __binary_limine_hdd_bin_end:
|
||||
.section .data
|
||||
.global _binary_limine_hdd_bin_start
|
||||
_binary_limine_hdd_bin_start:
|
||||
.incbin LIMINE_HDD_BIN
|
||||
.incbin "limine-hdd.bin"
|
||||
.global _binary_limine_hdd_bin_end
|
||||
_binary_limine_hdd_bin_end:
|
||||
|
||||
|
||||
BIN
limine-cd.bin
BIN
limine-cd.bin
Binary file not shown.
Binary file not shown.
BIN
limine-hdd.bin
BIN
limine-hdd.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,6 +10,10 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef O_BINARY
|
||||
#define O_BINARY 0
|
||||
#endif
|
||||
|
||||
#define DIV_ROUNDUP(a, b) (((a) + ((b) - 1)) / (b))
|
||||
|
||||
struct gpt_table_header {
|
||||
@@ -287,7 +291,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
device = open(argv[1], O_RDWR);
|
||||
device = open(argv[1], O_RDWR | O_BINARY);
|
||||
if (device == -1) {
|
||||
perror("ERROR");
|
||||
goto cleanup;
|
||||
@@ -455,7 +459,7 @@ int main(int argc, char *argv[]) {
|
||||
uint64_t stage2_loc_b = stage2_loc_a + stage2_size_a;
|
||||
|
||||
if (gpt) {
|
||||
if (argc > 3) {
|
||||
if (argc >= 3) {
|
||||
uint32_t partition_num;
|
||||
sscanf(argv[2], "%" SCNu32, &partition_num);
|
||||
partition_num--;
|
||||
|
||||
BIN
limine-pxe.bin
BIN
limine-pxe.bin
Binary file not shown.
BIN
limine.sys
BIN
limine.sys
Binary file not shown.
Reference in New Issue
Block a user