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

[Xen-devel] [PATCH] xen: Install arch-arm directory headers



Some headers for ARM are not installed on the host. This may make external
software relying on Xen headers failed to compile on ARM.

Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx>

---
    This patch is candidate to be backported on Xen 4.4
---
 tools/include/Makefile |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tools/include/Makefile b/tools/include/Makefile
index 9ed41f1..f7a6256 100644
--- a/tools/include/Makefile
+++ b/tools/include/Makefile
@@ -13,7 +13,7 @@ xen/.dir:
        mkdir -p xen/libelf
        ln -sf $(XEN_ROOT)/xen/include/public/COPYING xen
        ln -sf $(wildcard $(XEN_ROOT)/xen/include/public/*.h) xen
-       ln -sf $(addprefix $(XEN_ROOT)/xen/include/public/,arch-x86 hvm io xsm) 
xen
+       ln -sf $(addprefix $(XEN_ROOT)/xen/include/public/,arch-x86 arch-arm 
hvm io xsm) xen
        ln -sf ../xen-sys/$(XEN_OS) xen/sys
        ln -sf $(addprefix $(XEN_ROOT)/xen/include/xen/,libelf.h elfstructs.h) 
xen/libelf/
        ln -s ../xen-foreign xen/foreign
@@ -23,6 +23,8 @@ xen/.dir:
 install: all
        $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/arch-x86
        $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/arch-x86/hvm
+       $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/arch-arm
+       $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/arch-arm/hvm
        $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/foreign
        $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/hvm
        $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/io
@@ -32,6 +34,11 @@ install: all
        $(INSTALL_DATA) xen/*.h $(DESTDIR)$(INCLUDEDIR)/xen
        $(INSTALL_DATA) xen/arch-x86/*.h $(DESTDIR)$(INCLUDEDIR)/xen/arch-x86
        $(INSTALL_DATA) xen/arch-x86/hvm/*.h 
$(DESTDIR)$(INCLUDEDIR)/xen/arch-x86/hvm
+
+#      xen/arch-arm doesn't contains headers for now. Uncommented the line
+#      as soon as a new header is added
+#      $(INSTALL_DATA) xen/arch-arm/*.h $(DESTDIR)$(INCLUDEDIR)/xen/arch-arm
+       $(INSTALL_DATA) xen/arch-arm/hvm/*.h 
$(DESTDIR)$(INCLUDEDIR)/xen/arch-arm/hvm
        $(INSTALL_DATA) xen/foreign/*.h $(DESTDIR)$(INCLUDEDIR)/xen/foreign
        $(INSTALL_DATA) xen/hvm/*.h $(DESTDIR)$(INCLUDEDIR)/xen/hvm
        $(INSTALL_DATA) xen/io/*.h $(DESTDIR)$(INCLUDEDIR)/xen/io
-- 
1.7.10.4


_______________________________________________
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®.