2 compile / build fixes
cover 2 compile / build fixes
Hi All,
The joys of working with a cutting edge distro on my workstation ...
Regards,
Hans
PATCH 1/2 device_tree: Fix build with latest libfdt
We override libfdt_env.h with our own copy, and the latest libfdt expects libfdt_env.h to define fdt##_t types.
--- include/libfdt_env.h | 6 ++++++ 1 file changed, 6 insertions(+)
include/libfdt_env.h +6 -0
@@ -19,8 +19,14 @@#ifndef _LIBFDT_ENV_H#define _LIBFDT_ENV_H +#include <stdint.h> +#include "qemu/bswap.h" +typedef uint16_t fdt16_t ; +typedef uint32_t fdt32_t ; +typedef uint64_t fdt64_t ; +#ifdef HOST_WORDS_BIGENDIAN #define fdt32_to_cpu (x) (x)#define cpu_to_fdt32 (x) (x)
Signature · 1 line
1.8.2.1
PATCH 2/2 usb/host-libusb: Fix building with libusb git master code
In reply to Hans de GoedeThe next libusb release will deprecate libusb_get_port_path, and since we compile with -Werror, this breaks the build.
--- hw/usb/host-libusb.c | 4 ++++ 1 file changed, 4 insertions(+)
hw/usb/host-libusb.c +4 -0
@@ -241,7 +241,11 @@ static int usb_host_get_port(libusb_device *dev, char *port, size_t len)size_t off;int rc, i; +#if LIBUSBX_API_VERSION >=0x01000102 + rc =libusb_get_port_numbers (dev, path,7 ); +#else rc =libusb_get_port_path (ctx, dev, path,7 ); +#endif if (rc <0 ) {return 0 ; }
Signature · 1 line
1.8.2.1
Re: [Qemu-devel] [PATCH 2/2] usb/host-libusb: Fix building with libusb git master code
Quoted 2 lines · Hans de Goede
The next libusb release will deprecate
libusb_get_port_path, and since we compile with -Werror, this breaks the build.
Patch added to usb patch queue.
thanks,
Gerd
Re: [Qemu-devel] [PATCH 1/2] device_tree: Fix build with latest libfdt
In reply to Hans de GoedeQuoted 2 lines · Hans de Goede
We override
libfdt_env.hwith our own copy, and the latest libfdt expectslibfdt_env.hto define fdt##_t types.
Looks sane to me, but I'll leave that to the fdt experts ...
cheers,
Gerd
Re: [Qemu-devel] [PATCH 2/2] usb/host-libusb: Fix building with libusb git master code
In reply to Hans de Goedehw/usb/host-libusb.c static int usb_host_get_port(libusb_device *dev, char *port, size_t len) · line 248
Quoted 5 lines · Hans de Goede
hw/usb/host-libusb.c +4
-0+#if LIBUSBX_API_VERSION >=0x01000102 + rc =libusb_get_port_numbers (dev, path,7 ); +#else rc =libusb_get_port_path (ctx, dev, path,7 ); +#endif
I just added libusb_get_port_numbers to FreeBSD's libusb, but we don't have LIBUSBX_API_VERSION defined; we don't (yet) implement all of the functionality that would be implied by given version.
I'm not sure if it'd be better to add the definition in FreeBSD's libusb (and fault in missing functionality as needed, presumably), or address it in libusb consumers with additional #ifdefs.
Re: [Qemu-devel] [PATCH 1/2] device_tree: Fix build with latest libfdt
In reply to Hans de GoedeHi Hans,
Quoted 3 lines · Hans de Goede
We override
libfdt_env.hwith our own copy, and the latest libfdt expectslibfdt_env.hto define fdt##_t types.
This discussion is open on list, and AFAICT the consensus is to drop qemus libfdt_env.h altogether. QEMU should not be trying to override libfdt_env.h because it does not have a good reason to.
[PATCH v2 1/1] configure: dtc: Probe for libfdt_env.h
CCing the crowd.
Regards,
Peter
Quoted 28 lines
Signed-off-by Hans de Goede <[email protected]>--- include/libfdt_env.h | 6 ++++++ 1 file changed, 6 insertions(+)include/libfdt_env.h +6
-1@@ -19,8 +19,14 @@#ifndef _LIBFDT_ENV_H#define _LIBFDT_ENV_H +#include <stdint.h> +#include "qemu/bswap.h" +typedef uint16_t fdt16_t ; +typedef uint32_t fdt32_t ; +typedef uint64_t fdt64_t ; +#ifdef HOST_WORDS_BIGENDIAN #define fdt32_to_cpu (x) (x)#define cpu_to_fdt32 (x) (x) --1.8.2.1
Re: [Qemu-devel] [PATCH 1/2] device_tree: Fix build with latest libfdt
Il 10/06/2013 22:13, Peter Crosthwaite ha scritto:
Quoted 7 lines
Hi Hans,
Quoted 3 lines · Hans de Goede
We override
libfdt_env.hwith our own copy, and the latest libfdt expectslibfdt_env.hto define fdt##_t types.
Quoted 7 lines
This discussion is open on list, and AFAICT the consensus is to drop qemus
libfdt_env.haltogether. QEMU should not be trying to overridelibfdt_env.hbecause it does not have a good reason to.[PATCH v2 1/1] configure: dtc: Probe for
libfdt_env.hCCing the crowd.
F19, F20 and EPEL6 will all distribute libfdt_env.h by the time 1.6 is out. If this patch is not qemu-stable material, you have my ack too. Thanks!
Paolo
Re: [Qemu-devel] [PATCH 1/2] device_tree: Fix build with latest libfdt
Quoted 12 lines · Paolo Bonzini
Il 10/06/2013 22:13, Peter Crosthwaite ha scritto:
Quoted 11 lines
Hi Hans,
Quoted 3 lines · Hans de Goede
We override
libfdt_env.hwith our own copy, and the latest libfdt expectslibfdt_env.hto define fdt##_t types.This discussion is open on list, and AFAICT the consensus is to drop qemus
libfdt_env.haltogether. QEMU should not be trying to overridelibfdt_env.hbecause it does not have a good reason to.
Quoted 6 lines
Quoted 3 lines
[PATCH v2 1/1] configure: dtc: Probe for
libfdt_env.hCCing the crowd.
F19, F20 and EPEL6 will all distribute
libfdt_env.hby the time 1.6 is out. If this patch is not qemu-stable material, you have my ack too.
For clarity, by "this patch" do you mean the one that started this email thread (from Hans) or the one from Peter that he quotes the Subject of here?
thanks
-- PMM
Re: [Qemu-devel] [PATCH 1/2] device_tree: Fix build with latest libfdt
Il 12/06/2013 10:01, Peter Maydell ha scritto:
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
[PATCH v2 1/1] configure: dtc: Probe for
libfdt_env.hCCing the crowd.
F19, F20 and EPEL6 will all distribute
libfdt_env.hby the time 1.6 is out. If this patch is not qemu-stable material, you have my ack too.For clarity, by "this patch" do you mean the one that started this email thread (from Hans) or the one from Peter that he quotes the Subject of here?
The one that requires libfdt_env.h to be installed under /usr/include.
Paolo