Skip to contentSkip to conversation

tools: Allow cross-compilation of xentop

PATCH In review Edgar E. Iglesias 2 participants 4 messages Dec 15, 2016 – Dec 16, 2016

lore
Share & tools
lore
#0 lore raw

cover tools: Allow cross-compilation of xentop

From: "Edgar E. Iglesias" <[email protected]>

We usually cross-compile the Xen tools for ARM in Yocto, including support for xentop.

These patches remove two blockers in the Makefiles for cross-compiled xentop.

Cheers,
Edgar

Edgar E. Iglesias (2):
tools/xenstat: Remove redundant check for curses.h tools/xenstat: Don't disable xentop when cross-compiling

 tools/xenstat/Makefile | 6 ------
 1 file changed, 6 deletions(-)
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

PATCH 1/2 tools/xenstat: Remove redundant check for curses.h

From: "Edgar E. Iglesias" <[email protected]>

This check for curses.h does not consider cross-compilation. It only checks host paths.

Luckily, commit 65da4913214120ddc95bd846cb3649a29f87146a introduced proper configure checks for ncurses so we can remove the redundant check in the Makefile.

---
 tools/xenstat/Makefile | 2 --
 1 file changed, 2 deletions(-)
tools/xenstat/Makefile +0 -2
index 901be4a..09ec1b7 100644
@@ -6,10 +6,8 @@ SUBDIRS += libxenstat
 
 # This doesn't cross-compile (cross-compile environments rarely have curses)
 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
-ifeq ($(wildcard /usr/include/curses.h),/usr/include/curses.h)
 SUBDIRS += xentop
 endif
-endif
 
 .PHONY: all install clean distclean
 
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw

PATCH 2/2 tools/xenstat: Don't disable xentop when cross-compiling

In reply to Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

This partially reverts 16504669c5cbb8b195d20412aadc838da5c428f7 since xentop cross-compiles fine.

---
 tools/xenstat/Makefile | 4 ----
 1 file changed, 4 deletions(-)
tools/xenstat/Makefile +0 -4
index 09ec1b7..90d033a 100644
@@ -3,11 +3,7 @@ include $(XEN_ROOT)/tools/Rules.mk
 
 SUBDIRS :=
 SUBDIRS += libxenstat
-
-# This doesn't cross-compile (cross-compile environments rarely have curses)
-ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
 SUBDIRS += xentop
-endif
 
 .PHONY: all install clean distclean
 
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on the v1 series
#3 lore raw
In reply to Edgar E. Iglesias
Quoted 8 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

We usually cross-compile the Xen tools for ARM in Yocto, including support for xentop.

These patches remove two blockers in the Makefiles for cross-compiled xentop.

Quoted 6 lines

Cheers,
Edgar

Edgar E. Iglesias (2):
tools/xenstat: Remove redundant check for curses.h tools/xenstat: Don't disable xentop when cross-compiling

Quoted 7 lines
 tools/xenstat/Makefile | 6 ------
 1 file changed, 6 deletions(-)
Signature · 1 line
2.7.4

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel