diff mbox

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

Message ID 1404839088-10758-1-git-send-email-julien.grall@linaro.org
State Accepted, archived
Headers show

Commit Message

Julien Grall July 8, 2014, 5:04 p.m. UTC
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@linaro.org>

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

Comments

Ian Campbell July 9, 2014, 3:55 p.m. UTC | #1
On Tue, 2014-07-08 at 18:04 +0100, Julien Grall wrote:
> 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@linaro.org>

Acked-by: Ian Campbell <ian.campbell@citrix.com>
Ian Campbell July 10, 2014, 10:33 a.m. UTC | #2
On Wed, 2014-07-09 at 16:55 +0100, Ian Campbell wrote:
> On Tue, 2014-07-08 at 18:04 +0100, Julien Grall wrote:
> > 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@linaro.org>
> 
> Acked-by: Ian Campbell <ian.campbell@citrix.com>

applied, thanks.
diff mbox

Patch

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