summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/files/0001-libxl_nocpuid-fix-build-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/xen/files/0001-libxl_nocpuid-fix-build-error.patch')
-rw-r--r--recipes-extended/xen/files/0001-libxl_nocpuid-fix-build-error.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-extended/xen/files/0001-libxl_nocpuid-fix-build-error.patch b/recipes-extended/xen/files/0001-libxl_nocpuid-fix-build-error.patch
new file mode 100644
index 00000000..a6d3e096
--- /dev/null
+++ b/recipes-extended/xen/files/0001-libxl_nocpuid-fix-build-error.patch
@@ -0,0 +1,41 @@
1From 61a061e43c86a78aaddb2efdcefeff29d13812c2 Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@gmail.com>
3Date: Thu, 20 Nov 2025 20:57:46 -0500
4Subject: [PATCH] libxl_nocpuid: fix build error
5
6The Yocto build requires an explict include of tye yajl headers to avoid
7this compile error:
8
9e/libnl3 -Wshadow -include poky/build/tmp/work/armv8a-poky-linux/xen-tools/4.21+stable/sources/xen-tools-4.21+stable/tools/libs/light/../../../tools/config.h -c -o libxl_aoutils.o libxl_aoutils.c
10| libxl_nocpuid.c:43:1: error: unknown type name 'yajl_gen_status'
11| 43 | yajl_gen_status libxl_cpuid_policy_list_gen_json(yajl_gen hand,
12| | ^~~~~~~~~~~~~~~
13| libxl_nocpuid.c:43:50: error: unknown type name 'yajl_gen'
14| 43 | yajl_gen_status libxl_cpuid_policy_list_gen_json(yajl_gen hand,
15| | ^~~~~~~~
16| make[6]: *** [poky/build/tmp/work/armv8a-poky-linux/xen-tools/4.21+stable/sources/xen-tools-4.21+stable/tools/libs/light/../../../tools/Rules.mk:178: libxl_nocpuid.o] Error 1
17| make[6]: *** Waiting for unfinished jobs....
18
19Upstream-Status: Inappropriate [oe specific]
20
21Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
22---
23 tools/libs/light/libxl_nocpuid.c | 2 ++
24 1 file changed, 2 insertions(+)
25
26diff --git a/tools/libs/light/libxl_nocpuid.c b/tools/libs/light/libxl_nocpuid.c
27index 0630959e76..00f6ac3233 100644
28--- a/tools/libs/light/libxl_nocpuid.c
29+++ b/tools/libs/light/libxl_nocpuid.c
30@@ -14,6 +14,8 @@
31
32 #include "libxl_internal.h"
33
34+#include <yajl/yajl_gen.h>
35+
36 int libxl__cpuid_policy_is_empty(libxl_cpuid_policy_list *pl)
37 {
38 return 1;
39--
402.39.2
41