[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] device_tree: Fix build with latest libfdt
From: |
Peter Crosthwaite |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] device_tree: Fix build with latest libfdt |
Date: |
Tue, 11 Jun 2013 12:13:27 +1000 |
Hi Hans,
On Fri, Jun 7, 2013 at 12:39 AM, Hans de Goede <address@hidden> wrote:
> We override libfdt_env.h with our own copy, and the latest libfdt expects
> libfdt_env.h to 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
> Signed-off-by: Hans de Goede <address@hidden>
> ---
> include/libfdt_env.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/include/libfdt_env.h b/include/libfdt_env.h
> index 3667d4c..1cd8766 100644
> --- a/include/libfdt_env.h
> +++ b/include/libfdt_env.h
> @@ -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
>
>
[Qemu-devel] [PATCH 2/2] usb/host-libusb: Fix building with libusb git master code, Hans de Goede, 2013/06/06