baseport/src/cedar/generic/base/syborg/svpplatform/libfdt/patch.libfdt
changeset 0 ffa851df0825
equal deleted inserted replaced
-1:000000000000 0:ffa851df0825
       
     1 Minor changes are required to get libfdt to build as part of qemu.
       
     2 The patch below records modifications relative to upstream dtc-v1.2.0.
       
     3 
       
     4 Index: libfdt_env.h
       
     5 ===================================================================
       
     6 --- libfdt_env.h	(revision 230023)
       
     7 +++ libfdt_env.h	(working copy)
       
     8 @@ -4,10 +4,9 @@
       
     9  #include <stddef.h>
       
    10  #include <stdint.h>
       
    11  #include <string.h>
       
    12 -#include <endian.h>
       
    13 -#include <byteswap.h>
       
    14 +#include "bswap.h"
       
    15  
       
    16 -#if __BYTE_ORDER == __BIG_ENDIAN
       
    17 +#ifdef WORDS_BIGENDIAN
       
    18  #define fdt32_to_cpu(x)		(x)
       
    19  #define cpu_to_fdt32(x)		(x)
       
    20  #define fdt64_to_cpu(x)		(x)