aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xcutils/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* tools/build: Introduce {PREPEND,APPEND}_{LIB,INCLUDES}Roger Pau Monne2011-11-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | Create two new variables called APPEND_ and PREPEND_ to add compile flags at the beginning or at the end of the search path. Added a new semantic for user defined compile flags, here is the list of possible options: PREPEND_LIB: add libraries to the search path before xen (before xen installation folders). PREPEND_INCLUDES: add headers to the search path before xen (before xen installation folders). APPEND_LIB: add libraries to the search path at the end (after all xen installation folders have been added). APPEND_INCLUDES: add libraries to the search path at the end (after all xen installation folders have been added). EXTRA_INCLUDES and EXTRA_LIB can still be used, and they will have the same effect as PREPEND_INCLUDES and PREPEND_LIB. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: remove pattern matched linking rulesIan Campbell2011-03-311-7/+11
| | | | | | | | | Most subdirs only build a single tool to start with and those which build multiple tools often have different linkage requirements. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: Remove $(CFLAGS) from links lines.Ian Campbell2011-03-311-9/+5
| | | | | | | | The relevant variable in these circumstances is called $(LDFLAGS). Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: do not link against unused libraries.Ian Campbell2011-03-171-4/+15
| | | | | | | | | | | | | | | | | A fair few things under tools link against libraries which they don't even use. Most of this appears to come from copy-and-pasting previous Makefile snippets and cargo-culting plus the tendency to define global $(LIBS) even for Makefiles which build multiple separate utilities or libraries. Identified by comparing a build with --as-needed to one without by looking at the NEEDED header of all ELF objects. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* build: Make XEN_ROOT an absolute path.Keir Fraser2011-03-171-1/+1
| | | | | | | | Otherwise make can search the path relative to certain standard paths such as /usr/include (e.g., the line '-include $(XEN_ROOT)/.config' in Config.mk suffers from this). Signed-off-by: Keir Fraser <keir@xen.org>
* split LDLIBS from LDFLAGS to fix link errors in recent toolchainsStefano Stabellini2010-08-111-1/+1
| | | | | | | | | | | | | | | | Linker command lines are order-sensitive. Move linker options -Lfoo -lfoo from LDFLAGS to LDLIBS and place this new variable after the objects to link. This resolves build errors in xenpagin and blktap with recent toolchains. rename SHLIB_CFLAGS to SHLIB_LDFLAGS rename LDFLAGS_* to LDLIBS_* move LDFLAGS usage after CFLAGS in CC calls remove stale comments in xenpaging Makefile Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Use -MMD -MF in tools/* rather than -Wp,-M...Keir Fraser2009-01-121-6/+2
| | | | | | | | | | | | | | | | | | | | | | If you use -MMD -MF then the correct .o filename is written to the .*.d file as the compiler driver arranges everything. This was done in 19010:275abe1c5d24 for the hypervisor. In this patch we do the same elsewhere in the xen-unstable tree, particularly tools/. Specifically: * Change tools/Rules.mk to add -MMD -MF ... to CFLAGS and set DEPS. * Remove -Wp,-MD... from every other Makefile * Remove setting of DEPS from every other Makefile * Ensure that every Makefile says -include $(DEPS) * Ensure that every Makefile's clean target removes $(DEPS) Some Makefiles were already halfway there, but often for a different variable name eg PROG_DEP. The variable name is now standardised in Rules.mk as DEPS. I have done a test build with this change, on Debian etch. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* lsevtchn: Simple tool to list event channel states for a domain.Keir Fraser2008-04-091-1/+1
| | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* Define CFLAGS and LDFLAGS for libxenstore.Keir Fraser2008-01-271-2/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Define CFLAGS and LDFLAGS for libxenguest.Keir Fraser2008-01-271-4/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Define CFLAGS and LDFLAGS for libxenctrl.Keir Fraser2008-01-271-2/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Add PRIVATE_BINDIR. Use it.Keir Fraser2008-01-261-5/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Move generation of public header hierarchy into the tools.Keir Fraser2008-01-261-1/+1
| | | | | | | This patch merges the two versions of public header generation currently used in the build into one. Signed-off-by: Bastian Blank <waldi@debian.org>
* Apply PREFIX directly to LIBDIR.Keir Fraser2008-01-221-1/+1
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* tools: LDFLAGS in link linesKeir Fraser2008-01-171-1/+1
| | | | | | | LDFLAGS is not honoured by a couple of link lines in tools/*, but should be. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Specify -fno-strict-aliasing in root build config file.Keir Fraser2007-07-071-1/+1
| | | | | | | | Fixes correctness issues with xenstored and gcc-4.2. Original patch by Charles Coffing <ccoffing@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM][QEMU] Save/restore: enable HVM live migrationTim Deegan2007-03-161-3/+3
| | | | | by getting page-dirtying bitmaps from qemu-dm as well as from xen. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Don't use $(LINK.o), as it doesn't pick up -m32/-m64 from $(CFLAGS).kfraser@localhost.localdomain2006-10-191-1/+1
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Clean up duplication of 'install' macros in the Makefiles.kfraser@localhost.localdomain2006-10-171-4/+0
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* [TOOLS] Add a simple tool to display the Xen specific ELF notes.Ian Campbell2006-08-231-1/+1
| | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* build: Clean up use of .PHONYkaf24@firebug.cl.cam.ac.uk2006-04-101-0/+3
| | | | | | | | | | | | * Move .PHONY directives next to targets, this makes them a lot harder to miss * Add missing .PHONY directives * Remove nonexistent .PHONY directives * Hopefully I didn'T miss anything... Signed-Off-By: Horms <horms@verge.net.au>
* Move 'debug' build option into the outermost Config.mk file.kaf24@firebug.cl.cam.ac.uk2006-03-091-1/+1
| | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Clean up the usage of CFLAGS. This is nice for packagers, who wouldkaf24@firebug.cl.cam.ac.uk2006-03-091-1/+1
| | | | | | | | like to control the base compilation flags from a central place. Signed-off-by: Charles Coffing <ccoffing@novell.com>
* Allow parallel 32- and 64-bit Xen installations. Move xc_save, xc_restore,emellor@ewan2005-10-111-1/+1
| | | | | | | | | | | | and xenconsole out of /usr/libexec/xen and into one of /usr/lib/xen/bin or /usr/lib64/xen/bin. Remove all the PATH hacking inside Xend, and rely upon the PATH being set correctly from outside. Added an auxbin module for handling the hacky stuff. Replace the few /usr/bin/python bang paths with /usr/bin/env python. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Cross-compilation fixes.kaf24@firebug.cl.cam.ac.uk2005-08-301-2/+0
| | | | | Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
* Break the building/save/restore code out into a separate library libxenguest.cl349@firebug.cl.cam.ac.uk2005-08-251-1/+1
| | | | | | | Also update the tools accordingly. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Rename libxc => libxenctrl and xc.h => xen/xenctrl.hcl349@firebug.cl.cam.ac.uk2005-08-241-1/+1
| | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk> --HG-- rename : tools/libxc/xc.h => tools/libxc/xenctrl.h
* bitkeeper revision 1.1534.1.1 (429399e0oJudIjoFsgWFxNKnCM7qTg)cl349@firebug.cl.cam.ac.uk2005-05-241-1/+1
| | | | | | | | | | | Nothing but vnet uses libxutil -- move it there. Makefile, xc.c, setup.py, configure, configure.in, Makefile.in: This doesn't use libxutil. Makefile, Makefile.vnet, Rules.mk: Move libxutil into vnet since it's only used there. Many files: mvdir
* bitkeeper revision 1.1527.1.3 (42936982HEfOXuPvsCgdi5IHEHax_Q)cl349@firebug.cl.cam.ac.uk2005-05-241-1/+1
|\ | | | | | | | | | | Don't need xc_save_OBJS with updated Makefile. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
| * bitkeeper revision 1.1527.2.1 (429368a2F0SR4yrzuHsrRucuwriYqA)cl349@firebug.cl.cam.ac.uk2005-05-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the parts of vm save which need interaction with xend as part of xend, instead of using xfrd. Execute xc_linux_save in a seperate process so that it can't crash xend. Also handle errors passed from xc_linux_save. xen_domain.c: Disable save in xfrd. xc_save.c: new file Makefile: Add xc_save. XendDomainInfo.py: Add suspended state and threading Condition with notification, allowing easy waiting for state changes. XendDomain.py: Implement the parts of vm save which need interaction with xend as part of xend, instead of using xfrd. Set state to "suspended" when detecting a suspended domain. Fix reading output from subprocesses. Fix ValueError in xen_domain(). xc.c: Remove python binding for xc_linux_save. xc_linux_save.c: Implement the parts of vm save which need interaction with xend as part of xend, instead of using xfrd. Also run xc_linux_save in a seperate process. xc_linux_restore.c: Flush output so that xend picks it up timely. Also disable debug output again. xc.h: Update xc_linux_save prototype and fix comments for xc_linux_{save,restore}. ignore: Add tools/xcutils/xc_save. xpopen.py: Exit with 127 if exec fails. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* | bitkeeper revision 1.1527.1.2 (4293468ayy5XU1yxu0QwnCQ83S5pbA)kaf24@firebug.cl.cam.ac.uk2005-05-241-11/+4
| | | | | | | | | | | | | | No more dependency of GNU Make 'eval' function, which is not present in older versions. Signed-off-by: Keir Fraser <keir@xensource.com>
* | bitkeeper revision 1.1527.1.1 (42933814hYUdPBrhJ2nEsS5J3nRP8Q)kaf24@firebug.cl.cam.ac.uk2005-05-241-5/+3
|/ | | | | | Another xcutil Makefile 'fix'. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1526 (4292f6fatFGrb_g2pL3e_YfSdZhjPA)kaf24@firebug.cl.cam.ac.uk2005-05-241-2/+1
| | | | | | Another xcutils build fix: libxc depends on libxutil. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1523.1.1 (4292f383Cc0iiNE6syBhzLa27UwM7w)cl349@firebug.cl.cam.ac.uk2005-05-241-2/+3
| | | | | | | Makefile: Fix library link on systems which don't have libxc installed (yet). Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* bitkeeper revision 1.1513.1.1 (42925a6aSZSwfyaVsNzV4psPmpZwZg)cl349@firebug.cl.cam.ac.uk2005-05-231-0/+62
Execute xc_linux_restore in a seperate process so that it can't crash xend. Also handle errors passed from xc_linux_restore and log info messages from xc_linux_restore. XendDomain.py: Popen xc_restore instead of calling xc_linux_restore directly. xc.c: Add pyxc_handle exporting the file descriptor to the control interface. Remove xc_linux_restore -- replaced by popen of xc_restore directly from python. xc_linux_restore.c: Enable debug output. xpopen.py: Add xpopen functionality: Optionally exclude a list of file descriptors from being closed, allowing access to those file descriptors from the command. Remove unused parts. xpopen.py, Makefile, xc_restore.c: new file Makefile: Add xcutils subdir. ignore: Add tools/xcutils/xc_restore. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>