-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The native build of efitools is only needed for the tools, add a patch so that we can just build and install the tools. This means we don't need to depend on gnu-efi-native anymore, and also the native recipe doesn't end up shipping a build-host-targetting LockDown.efi in the sysroot which is obviously incorrect. Signed-off-by: Ross Burton <[email protected]>
- Loading branch information
1 parent
61b3dcb
commit c4f7798
Showing
3 changed files
with
67 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
meta-efi-secure-boot/recipes-bsp/efitools/efitools/0001-add-binary-only-make-rules.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From 77ce20597eb0283f1a089c0cf4923346338bde8b Mon Sep 17 00:00:00 2001 | ||
From: Ross Burton <[email protected]> | ||
Date: Wed, 27 Nov 2024 17:15:33 +0000 | ||
Subject: [PATCH] add binary-only make rules | ||
|
||
Add rules to build and install just the binaries, for the native recipe. | ||
|
||
Upstream-Status: Pending | ||
Signed-off-by: Ross Burton <[email protected]> | ||
--- | ||
Makefile | 9 ++++++--- | ||
1 file changed, 6 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/Makefile b/Makefile | ||
index 66f5d2e..e42de67 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -29,15 +29,18 @@ EFISIGNED = $(patsubst %.efi,%-signed.efi,$(EFIFILES)) | ||
all: $(EFIFILES) $(BINARIES) noPK.auth $(KEYAUTH) DBX.auth \ | ||
$(KEYUPDATEAUTH) $(KEYBLACKLISTAUTH) $(KEYHASHBLACKLISTAUTH) | ||
|
||
+binaries: $(BINARIES) | ||
|
||
-install: all | ||
+install: all install-binaries | ||
$(INSTALL) -m 755 -d $(EFIDIR) | ||
$(INSTALL) -m 755 $(EFIFILES) $(EFIDIR) | ||
+ $(INSTALL) -m 755 -d $(DOCDIR) | ||
+ $(INSTALL) -m 644 README COPYING $(DOCDIR) | ||
+ | ||
+install-binaries: binaries | ||
$(INSTALL) -m 755 -d $(BINDIR) | ||
$(INSTALL) -m 755 $(BINARIES) $(BINDIR) | ||
$(INSTALL) -m 755 mkusb.sh $(BINDIR)/efitool-mkusb | ||
- $(INSTALL) -m 755 -d $(DOCDIR) | ||
- $(INSTALL) -m 644 README COPYING $(DOCDIR) | ||
|
||
lib/lib.a lib/lib-efi.a: FORCE | ||
$(MAKE) -C lib $(notdir $@) |