baseport/syborg/svpplatform/libfdt/patch.libfdt
author William Roberts <williamr@symbian.org>
Fri, 09 Oct 2009 15:18:54 +0100
changeset 11 52c9f17ec5d1
parent 2 d55eb581a87c
permissions -rw-r--r--
Add translated package_definition.xml in the 2.0.1 schema understood by Raptor 2.8.5

Minor changes are required to get libfdt to build as part of qemu.
The patch below records modifications relative to upstream dtc-v1.2.0.

Index: libfdt_env.h
===================================================================
--- libfdt_env.h	(revision 230023)
+++ libfdt_env.h	(working copy)
@@ -4,10 +4,9 @@
 #include <stddef.h>
 #include <stdint.h>
 #include <string.h>
-#include <endian.h>
-#include <byteswap.h>
+#include "bswap.h"
 
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
 #define fdt32_to_cpu(x)		(x)
 #define cpu_to_fdt32(x)		(x)
 #define fdt64_to_cpu(x)		(x)