Compare commits
10 Commits
v2.71-bina
...
v2.74.2-bi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23508f2f54 | ||
|
|
8b602028b7 | ||
|
|
1ab351f25d | ||
|
|
431e506371 | ||
|
|
63ab02ac8e | ||
|
|
99331a5e6b | ||
|
|
976efdbf15 | ||
|
|
3d64710f20 | ||
|
|
b915f182ec | ||
|
|
d8d80eddce |
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:
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
|||||||
13
Makefile
13
Makefile
@@ -1,14 +1,14 @@
|
|||||||
CC = cc
|
CC ?= cc
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX ?= /usr/local
|
||||||
DESTDIR =
|
DESTDIR ?=
|
||||||
|
|
||||||
CFLAGS = -O2 -pipe -Wall -Wextra
|
CFLAGS ?= -O2 -pipe -Wall -Wextra
|
||||||
|
|
||||||
.PHONY: all install clean
|
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
all: limine-install
|
all: limine-install
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
install: all
|
install: all
|
||||||
install -d '$(DESTDIR)$(PREFIX)/bin'
|
install -d '$(DESTDIR)$(PREFIX)/bin'
|
||||||
install -s limine-install '$(DESTDIR)$(PREFIX)/bin/'
|
install -s limine-install '$(DESTDIR)$(PREFIX)/bin/'
|
||||||
@@ -21,6 +21,7 @@ install: all
|
|||||||
install -m 644 BOOTX64.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
|
install -m 644 BOOTX64.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
|
||||||
install -m 644 BOOTIA32.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
|
install -m 644 BOOTIA32.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f limine-install limine-install.exe
|
rm -f limine-install limine-install.exe
|
||||||
|
|
||||||
|
|||||||
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 <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#ifndef O_BINARY
|
||||||
|
#define O_BINARY 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define DIV_ROUNDUP(a, b) (((a) + ((b) - 1)) / (b))
|
#define DIV_ROUNDUP(a, b) (((a) + ((b) - 1)) / (b))
|
||||||
|
|
||||||
struct gpt_table_header {
|
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) {
|
if (device == -1) {
|
||||||
perror("ERROR");
|
perror("ERROR");
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@@ -455,7 +459,7 @@ int main(int argc, char *argv[]) {
|
|||||||
uint64_t stage2_loc_b = stage2_loc_a + stage2_size_a;
|
uint64_t stage2_loc_b = stage2_loc_a + stage2_size_a;
|
||||||
|
|
||||||
if (gpt) {
|
if (gpt) {
|
||||||
if (argc > 3) {
|
if (argc >= 3) {
|
||||||
uint32_t partition_num;
|
uint32_t partition_num;
|
||||||
sscanf(argv[2], "%" SCNu32, &partition_num);
|
sscanf(argv[2], "%" SCNu32, &partition_num);
|
||||||
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