[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 01/11] libfdt: move headers to xen/include/xen/libfdt/



On 19/03/12 17:51, David Vrabel wrote:
> From: David Vrabel <david.vrabel@xxxxxxxxxx>
> 
> Move the public libfdt headers to xen/include/xen/libfdt/ so CFLAGS
> does need to be set to find them.  This requires minor tweaks to one
> of the headers imported from upstream.
> 
> Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx>

Sorry, forgot the -M option when generating this.  The real diff is much
more modest.

8<--------------------
[PATCH] libfdt: move headers to xen/include/xen/libfdt/

Move the public libfdt headers to xen/include/xen/libfdt/ so CFLAGS
does need to be set to find them.  This requires minor tweaks to one
of the headers imported from upstream.

Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx>
---
 xen/common/Makefile                             |    2 --
 xen/common/device_tree.c                        |    3 +--
 xen/common/libfdt/Makefile                      |    2 +-
 xen/{common => include/xen}/libfdt/fdt.h        |    0
 xen/{common => include/xen}/libfdt/libfdt.h     |    4 ++--
 xen/{common => include/xen}/libfdt/libfdt_env.h |    0
 6 files changed, 4 insertions(+), 7 deletions(-)
 rename xen/{common => include/xen}/libfdt/fdt.h (100%)
 rename xen/{common => include/xen}/libfdt/libfdt.h (99%)
 rename xen/{common => include/xen}/libfdt/libfdt_env.h (100%)

diff --git a/xen/common/Makefile b/xen/common/Makefile
index 372b259..9f2e0d6 100644
--- a/xen/common/Makefile
+++ b/xen/common/Makefile
@@ -61,5 +61,3 @@ subdir-$(ia64) += hvm

 subdir-y += libelf
 subdir-$(HAS_DEVICE_TREE) += libfdt
-
-CFLAGS += -Ilibfdt
diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c
index d50cb9c..140d342 100644
--- a/xen/common/device_tree.c
+++ b/xen/common/device_tree.c
@@ -14,13 +14,12 @@
 #include <xen/device_tree.h>
 #include <xen/kernel.h>
 #include <xen/lib.h>
+#include <xen/libfdt/libfdt.h>
 #include <xen/mm.h>
 #include <xen/stdarg.h>
 #include <xen/string.h>
 #include <asm/early_printk.h>

-#include <libfdt.h>
-
 struct dt_early_info __initdata early_info;
 void *device_tree_flattened;

diff --git a/xen/common/libfdt/Makefile b/xen/common/libfdt/Makefile
index 0e65bc0..7578fe9 100644
--- a/xen/common/libfdt/Makefile
+++ b/xen/common/libfdt/Makefile
@@ -2,4 +2,4 @@ include Makefile.libfdt

 obj-y += $(LIBFDT_OBJS)

-CFLAGS += -I.
+CFLAGS += -I$(BASEDIR)/include/xen/libfdt/
diff --git a/xen/common/libfdt/fdt.h b/xen/include/xen/libfdt/fdt.h
similarity index 100%
rename from xen/common/libfdt/fdt.h
rename to xen/include/xen/libfdt/fdt.h
diff --git a/xen/common/libfdt/libfdt.h b/xen/include/xen/libfdt/libfdt.h
similarity index 99%
rename from xen/common/libfdt/libfdt.h
rename to xen/include/xen/libfdt/libfdt.h
index 55f3eb3..6086047 100644
--- a/xen/common/libfdt/libfdt.h
+++ b/xen/include/xen/libfdt/libfdt.h
@@ -51,8 +51,8 @@
  *     EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */

-#include <libfdt_env.h>
-#include <fdt.h>
+#include <xen/libfdt/libfdt_env.h>
+#include <xen/libfdt/fdt.h>

 #define FDT_FIRST_SUPPORTED_VERSION    0x10
 #define FDT_LAST_SUPPORTED_VERSION     0x11
diff --git a/xen/common/libfdt/libfdt_env.h
b/xen/include/xen/libfdt/libfdt_env.h
similarity index 100%
rename from xen/common/libfdt/libfdt_env.h
rename to xen/include/xen/libfdt/libfdt_env.h
-- 
1.7.2.5

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.