summaryrefslogtreecommitdiffstats
path: root/meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-Remove-device-path-padding-on-non-Itanium.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-08 22:46:13 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-08 22:46:13 +0200
commit8d89651ef729e560ad96dcfc002fcde6ff7f923b (patch)
treeeb5be01c25f735d12fe9881ee6327c9b7e8bbe39 /meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-Remove-device-path-padding-on-non-Itanium.patch
downloadmeta-linaro-8d89651ef729e560ad96dcfc002fcde6ff7f923b.tar.gz
initial commit for Enea Linux 5.0 armdizzy-enea
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-Remove-device-path-padding-on-non-Itanium.patch')
-rw-r--r--meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-Remove-device-path-padding-on-non-Itanium.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-Remove-device-path-padding-on-non-Itanium.patch b/meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-Remove-device-path-padding-on-non-Itanium.patch
new file mode 100644
index 0000000..240aa69
--- /dev/null
+++ b/meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-Remove-device-path-padding-on-non-Itanium.patch
@@ -0,0 +1,28 @@
1From 2d8f962284f40b918c0fc8385e58fcba219ddc12 Mon Sep 17 00:00:00 2001
2From: Fedora Ninjas <pjones@fedoraproject.org>
3Date: Wed, 28 Nov 2012 17:13:24 -0500
4Subject: [PATCH 2/5] Remove device path padding on non-Itanium
5
6This code predates EFI support on any x86 hardware, and it's a strict
7violation of the specification. Windows doesn't do it either.
8---
9 src/include/efi.h | 2 ++
10 1 file changed, 2 insertions(+)
11
12diff --git a/src/include/efi.h b/src/include/efi.h
13index be667ae..c2ac853 100644
14--- a/src/include/efi.h
15+++ b/src/include/efi.h
16@@ -294,7 +294,9 @@ typedef struct {
17 uint8_t signature[16];
18 uint8_t mbr_type;
19 uint8_t signature_type;
20+#ifdef __ia64
21 uint8_t padding[6]; /* Emperically needed */
22+#endif
23 } __attribute__((packed)) HARDDRIVE_DEVICE_PATH;
24
25 typedef struct {
26--
271.8.0
28