Skip to content

Commit

Permalink
build a silent and a normal version
Browse files Browse the repository at this point in the history
  • Loading branch information
Redecorating committed Jul 9, 2021
1 parent c672caf commit 758aa13
Show file tree
Hide file tree
Showing 4 changed files with 503 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARCH = x86_64

TARGET = bootx64.efi
TARGET = bootx64.efi bootx64_silent.efi
FORMAT = efi-app-$(ARCH)
OBJS = ./lib/int_event.o ./lib/int_graphics.o ./lib/int_mem.o ./lib/int_dpath.o ./lib/int_print.o ./lib/pci_db.o bootx64.o

Expand All @@ -18,6 +18,9 @@ all: $(TARGET)
bootx64.so: $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^ $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) /usr/lib/libgnuefi.a

bootx64_silent.so: $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^ $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) /usr/lib/libgnuefi.a

%.efi: %.so
objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela -j .reloc -S --target=$(FORMAT) $^ $@

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This loader will load bootx64_original.efi once apple_set_os is loaded and fix t
Based on 0xbb's apple_set_os.efi
https://github.com/0xbb/apple_set_os.efi

This fork doesn't output any text and doesn't wait for you to press a key. To build you will need gnu-efi installed.
This fork has two versions. `bootx64.efi` is interactive and will let you press `z` to disable it. `bootx64_silent.efi` doesn't output any text and doesn't wait for you to press a key. To build you will need gnu-efi installed.

## Usage
```
Expand All @@ -15,9 +15,9 @@ This fork doesn't output any text and doesn't wait for you to press a key. To bu
3. Rename /EFI/Boot/bootx64.efi to /EFI/Boot/bootx64_original.efi
4. Copy bootx64.efi from this repository to /EFI/Boot
4. Copy bootx64.efi or bootx64_silent.efi from this repository to /EFI/Boot/bootx64.efi
5. If you dont have Windows installed, you need to bless the efi so the efi will run at startup.
5. If you dont have Windows installed, you may need to bless the efi so the efi will run at startup.
```

## Build via docker
Expand Down
Loading

0 comments on commit 758aa13

Please sign in to comment.