diff options
Diffstat (limited to 'main/grub/0005-xen-Add-some-dummy-headers-for-PVH-mode.patch')
-rw-r--r-- | main/grub/0005-xen-Add-some-dummy-headers-for-PVH-mode.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/main/grub/0005-xen-Add-some-dummy-headers-for-PVH-mode.patch b/main/grub/0005-xen-Add-some-dummy-headers-for-PVH-mode.patch new file mode 100644 index 0000000000..80704778cd --- /dev/null +++ b/main/grub/0005-xen-Add-some-dummy-headers-for-PVH-mode.patch @@ -0,0 +1,70 @@ +From 02d764a4469d71a5bc78c1358b0bd62987e2dc8e Mon Sep 17 00:00:00 2001 +From: Juergen Gross <jgross@suse.com> +Date: Fri, 7 Dec 2018 13:11:33 +0100 +Subject: [PATCH 05/20] xen: Add some dummy headers for PVH mode + +With Xen PVH mode adding a new machine type the machine related headers +need to be present for the build to succeed. Most of the headers just +need to include the related common i386 headers. Add those to the tree. + +Note that xen_pvh/int.h needs to include pc/int_types.h instead of +pc/int.h in order to avoid the definition of grub_bios_interrupt(). + +xen_pvh/memory.h needs to include coreboot/memory.h (like some other +<machine>/memory.h do as well) as this contains just the needed stubs. + +Signed-off-by: Juergen Gross <jgross@suse.com> +Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> +Tested-by: Hans van Kranenburg <hans@knorrie.org> +(cherry picked from commit 408de833bbd1ccad39ad439eaf3cddd528b039b5) +--- + include/grub/i386/xen_pvh/boot.h | 1 + + include/grub/i386/xen_pvh/console.h | 1 + + include/grub/i386/xen_pvh/int.h | 1 + + include/grub/i386/xen_pvh/memory.h | 1 + + include/grub/i386/xen_pvh/time.h | 1 + + 5 files changed, 5 insertions(+) + create mode 100644 include/grub/i386/xen_pvh/boot.h + create mode 100644 include/grub/i386/xen_pvh/console.h + create mode 100644 include/grub/i386/xen_pvh/int.h + create mode 100644 include/grub/i386/xen_pvh/memory.h + create mode 100644 include/grub/i386/xen_pvh/time.h + +diff --git a/include/grub/i386/xen_pvh/boot.h b/include/grub/i386/xen_pvh/boot.h +new file mode 100644 +index 000000000..6cd23aa83 +--- /dev/null ++++ b/include/grub/i386/xen_pvh/boot.h +@@ -0,0 +1 @@ ++#include <grub/i386/pc/boot.h> +diff --git a/include/grub/i386/xen_pvh/console.h b/include/grub/i386/xen_pvh/console.h +new file mode 100644 +index 000000000..305a46d8e +--- /dev/null ++++ b/include/grub/i386/xen_pvh/console.h +@@ -0,0 +1 @@ ++#include <grub/i386/pc/console.h> +diff --git a/include/grub/i386/xen_pvh/int.h b/include/grub/i386/xen_pvh/int.h +new file mode 100644 +index 000000000..0f1f9ee62 +--- /dev/null ++++ b/include/grub/i386/xen_pvh/int.h +@@ -0,0 +1 @@ ++#include <grub/i386/pc/int_types.h> +diff --git a/include/grub/i386/xen_pvh/memory.h b/include/grub/i386/xen_pvh/memory.h +new file mode 100644 +index 000000000..8dd6f7c8c +--- /dev/null ++++ b/include/grub/i386/xen_pvh/memory.h +@@ -0,0 +1 @@ ++#include <grub/i386/coreboot/memory.h> +diff --git a/include/grub/i386/xen_pvh/time.h b/include/grub/i386/xen_pvh/time.h +new file mode 100644 +index 000000000..2298ee8f4 +--- /dev/null ++++ b/include/grub/i386/xen_pvh/time.h +@@ -0,0 +1 @@ ++#include <grub/i386/pc/time.h> +-- +2.21.0 + |