Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing -no-pie linker error by excluding optionroms from the build process #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions xnu-qemu-arm64-5.1.0.diff
Original file line number Diff line number Diff line change
Expand Up @@ -4588,3 +4588,18 @@ index 455c92b..6cb6926 100644
break;
case 6:
/* min_EL EL3 */
diff --git a/xnu-qemu-arm64-5.1.0/pc-bios/optionrom/Makefile b/xnu-qemu-arm64-5.1.0/pc-bios/optionrom/Makefile
index e33a24da0d..88fb432773 100644
--- a/xnu-qemu-arm64-5.1.0/pc-bios/optionrom/Makefile
+++ b/xnu-qemu-arm64-5.1.0/pc-bios/optionrom/Makefile
@@ -37,8 +37,8 @@ Wa = -Wa,
ASFLAGS += -32
QEMU_CFLAGS += $(call cc-c-option, $(QEMU_CFLAGS), $(Wa)-32)

-build-all: multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin pvh.bin
-
+#build-all: multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin pvh.bin
+build_all:
# suppress auto-removal of intermediate files
.SECONDARY: