Skip to content

Commit

Permalink
TEST: add files for qubes-builder
Browse files Browse the repository at this point in the history
Signed-off-by: Krystian Hebel <[email protected]>
  • Loading branch information
krystian-hebel committed Oct 28, 2024
1 parent 6a50fd9 commit 2a13b58
Show file tree
Hide file tree
Showing 5 changed files with 1,146 additions and 0 deletions.
27 changes: 27 additions & 0 deletions qubesos/0203-xen.efi.build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 22a0881b94f0b17d369ce090cbf3cced6366fae5 Mon Sep 17 00:00:00 2001
From: Fedora developers <[email protected]>
Date: Mon, 8 Jul 2024 13:35:51 +0200
Subject: [PATCH] xen.efi.build

---
xen/arch/x86/arch.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/xen/arch/x86/arch.mk b/xen/arch/x86/arch.mk
index 4f6c086988dd..0efc664bc919 100644
--- a/xen/arch/x86/arch.mk
+++ b/xen/arch/x86/arch.mk
@@ -91,7 +91,9 @@ XEN_BUILD_EFI := $(call if-success,$(CC) $(filter-out -include %/include/xen/con
-c $(srctree)/$(efi-check).c -o $(efi-check).o,y)

# Check if the linker supports PE.
-EFI_LDFLAGS := $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10 --enable-long-section-names
+#EFI_LDFLAGS := $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10 --enable-long-section-names
+# use a reduced set of options from LDFLAGS
+EFI_LDFLAGS = --as-needed --build-id=sha1 -mi386pep --subsystem=10 --enable-long-section-names
LD_PE_check_cmd = $(call ld-option,$(EFI_LDFLAGS) --image-base=0x100000000 -o $(efi-check).efi $(efi-check).o)
XEN_BUILD_PE := $(LD_PE_check_cmd)

--
2.44.0

Loading

0 comments on commit 2a13b58

Please sign in to comment.