-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathqemu-5.2.0.patch
39 lines (34 loc) · 1.36 KB
/
qemu-5.2.0.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- a/meson.build 2020-12-08 11:59:44.000000000 -0500
+++ b/meson.build 2020-12-22 23:47:41.390961616 -0500
@@ -108,8 +108,7 @@
native: false, language: ['c', 'cpp', 'objc'])
if targetos == 'linux'
- add_project_arguments('-isystem', meson.current_source_dir() / 'linux-headers',
- '-isystem', 'linux-headers',
+ add_project_arguments('-I' + meson.current_source_dir() + '/linux-headers',
language: ['c', 'cpp'])
endif
@@ -1738,9 +1737,6 @@
config_target += config_host
target_inc = [include_directories('target' / config_target['TARGET_BASE_ARCH'])]
- if targetos == 'linux'
- target_inc += include_directories('linux-headers', is_system: true)
- endif
if target.endswith('-softmmu')
qemu_target_name = 'qemu-system-' + target_name
target_type='system'
--- a/target/i386/kvm.c 2020-12-23 00:57:42.520236580 -0500
+++ b/target/i386/kvm.c 2020-12-23 01:15:39.823170130 -0500
@@ -18,6 +18,7 @@
#include <sys/ioctl.h>
#include <sys/utsname.h>
+#include <asm-x86/kvm.h>
#include <linux/kvm.h>
#include "standard-headers/asm-x86/kvm_para.h"
--- a/target/i386/machine.c 2020-12-23 09:55:42.148502022 -0500
+++ b/target/i386/machine.c 2020-12-23 01:17:10.288755291 -0500
@@ -1,3 +1,4 @@
+#include <asm-x86/kvm.h>
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/exec-all.h"