File shim-arch-independent-names.patch of Package shim
xxxxxxxxxx
1
From 71ca8f761fb5434ef65895345d96ccf063da7d66 Mon Sep 17 00:00:00 2001
2
From: Gary Lin <glin@suse.com>
3
Date: Tue, 22 Aug 2017 12:43:36 +0800
4
Subject: [PATCH] Make the names of EFI binaries arch-independent
5
6
Since we only build the 64-bit binaries, we don't have the issue of the
7
mixed architecture binaries in the same directory. Besides, we will use
8
the same install script for x86_64 and AArch64. It's easier to maintain
9
the script with the same names.
10
11
Signed-off-by: Gary Lin <glin@suse.com>
12
---
13
fallback.c | 2 +-
14
shim.c | 2 +-
15
shim.h | 4 ++--
16
3 files changed, 4 insertions(+), 4 deletions(-)
17
18
diff --git a/fallback.c b/fallback.c
19
index fc81c5e4..44b2d464 100644
20
--- a/fallback.c
21
+++ b/fallback.c
22
23
24
x = 1;
25
console_print(L"add-symbol-file "DEBUGDIR
26
- L"fb" EFI_ARCH L".efi.debug %p -s .data %p\n",
27
+ L"fallback.efi.debug %p -s .data %p\n",
28
&_etext, &_edata);
29
}
30
31
diff --git a/shim.c b/shim.c
32
index 765c9254..6751a2bc 100644
33
--- a/shim.c
34
+++ b/shim.c
35
36
FreePool(data);
37
38
console_print(L"add-symbol-file "DEBUGDIR
39
- L"shim" EFI_ARCH L".efi.debug 0x%08x -s .data 0x%08x\n",
40
+ L"shim.efi.debug 0x%08x -s .data 0x%08x\n",
41
&_text, &_data);
42
43
console_print(L"Pausing for debugger attachment.\n");
44
diff --git a/shim.h b/shim.h
45
index 0a6c8cfa..b9c3c4d8 100644
46
--- a/shim.h
47
+++ b/shim.h
48
49
#define DEBUGSRC L"/usr/src/debug/shim-" VERSIONSTR "." EFI_ARCH
50
#endif
51
52
-#define FALLBACK L"\\fb" EFI_ARCH L".efi"
53
-#define MOK_MANAGER L"\\mm" EFI_ARCH L".efi"
54
+#define FALLBACK L"\\fallback.efi"
55
+#define MOK_MANAGER L"\\MokManager.efi"
56
57
#if defined(VENDOR_DB_FILE)
58
# define vendor_authorized vendor_db
59
--
60
2.29.2
61
62