mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
xen-tools: apply kdd tool patch
Apply an upstream Xen Release-acked patch to fix kdd debugger and remove the temporary inhibit of Werror on building that tool. Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
596d98b559
commit
16ec6ab62c
|
@ -40,15 +40,3 @@ index a151b3f625..a05ceec1e5 100644
|
||||||
--
|
--
|
||||||
2.19.1
|
2.19.1
|
||||||
|
|
||||||
diff --git a/tools/debugger/kdd/Makefile b/tools/debugger/kdd/Makefile
|
|
||||||
index 26116949d4..a72ad3b1e0 100644
|
|
||||||
--- a/tools/debugger/kdd/Makefile
|
|
||||||
+++ b/tools/debugger/kdd/Makefile
|
|
||||||
@@ -1,7 +1,6 @@
|
|
||||||
XEN_ROOT = $(CURDIR)/../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
CFLAGS += -DXC_WANT_COMPAT_MAP_FOREIGN_API
|
|
||||||
LDLIBS += $(LDLIBS_libxenctrl)
|
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
From d44cbbe0f3243afcc56e47dcfa97bbfe23e46fbb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Wei Liu <wl@xen.org>
|
||||||
|
Date: Fri, 3 Jul 2020 20:10:01 +0000
|
||||||
|
Subject: [PATCH] kdd: fix build again
|
||||||
|
|
||||||
|
Restore Tim's patch. The one that was committed was recreated by me
|
||||||
|
because git didn't accept my saved copy. I made some mistakes while
|
||||||
|
recreating that patch and here we are.
|
||||||
|
|
||||||
|
Fixes: 3471cafbdda3 ("kdd: stop using [0] arrays to access packet contents")
|
||||||
|
Reported-by: Michael Young <m.a.young@durham.ac.uk>
|
||||||
|
Signed-off-by: Wei Liu <wl@xen.org>
|
||||||
|
Reviewed-by: Tim Deegan <tim@xen.org>
|
||||||
|
Release-acked-by: Paul Durrant <paul@xen.org>
|
||||||
|
---
|
||||||
|
tools/debugger/kdd/kdd.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tools/debugger/kdd/kdd.c b/tools/debugger/kdd/kdd.c
|
||||||
|
index 866532f0c7..a7d0976ea4 100644
|
||||||
|
--- a/tools/debugger/kdd/kdd.c
|
||||||
|
+++ b/tools/debugger/kdd/kdd.c
|
||||||
|
@@ -79,11 +79,11 @@ typedef struct {
|
||||||
|
/* State of the debugger stub */
|
||||||
|
typedef struct {
|
||||||
|
union {
|
||||||
|
- uint8_t txb[sizeof (kdd_hdr)]; /* Marshalling area for tx */
|
||||||
|
+ uint8_t txb[sizeof (kdd_pkt)]; /* Marshalling area for tx */
|
||||||
|
kdd_pkt txp; /* Also readable as a packet structure */
|
||||||
|
};
|
||||||
|
union {
|
||||||
|
- uint8_t rxb[sizeof (kdd_hdr)]; /* Marshalling area for rx */
|
||||||
|
+ uint8_t rxb[sizeof (kdd_pkt)]; /* Marshalling area for rx */
|
||||||
|
kdd_pkt rxp; /* Also readable as a packet structure */
|
||||||
|
};
|
||||||
|
unsigned int cur; /* Offset into rx where we'll put the next byte */
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
|
@ -8,6 +8,7 @@ SRC_URI = " \
|
||||||
file://0001-python-pygrub-pass-DISTUTILS-xen.4.12.patch \
|
file://0001-python-pygrub-pass-DISTUTILS-xen.4.12.patch \
|
||||||
file://0001-xen-build-temporarily-inhibit-Werror.patch \
|
file://0001-xen-build-temporarily-inhibit-Werror.patch \
|
||||||
file://xen-tools-kdd-stop-using-0-arrays-to-access-packet-contents.patch \
|
file://xen-tools-kdd-stop-using-0-arrays-to-access-packet-contents.patch \
|
||||||
|
file://xen-tools-kdd-fix-build-again.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
LIC_FILES_CHKSUM ?= "file://COPYING;md5=4295d895d4b5ce9d070263d52f030e49"
|
LIC_FILES_CHKSUM ?= "file://COPYING;md5=4295d895d4b5ce9d070263d52f030e49"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user