aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* build: CONFIG_IOEMU is now obsoleteIan Campbell2013-08-211-6/+2
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: allow user to specify a system qemu-xen binaryIan Campbell2013-08-211-8/+12
| | | | | | | | If this option is given don't bother building qemu-xen ourselves. Likely to be handy for distros who have an existing qemu package which they want to reuse. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: Make qemu-xen-traditional build optional.Ian Campbell2013-08-211-9/+13
| | | | | | | | | | | | | | | | | | | | | | Now that we have upstream qemu people may want to avoid building this extra code. There is a little bit of trickery in stubdom/configure.ac to ensure that the ioemu stubdom is only built if qemu-traditional is enabled. libxl will return an error if a caller tries to build a domain using qemu-xen-traditional when this support was disabled at build time. Since qemu-xen-traditional has been historically tightly bound to the Xen releases I don't see any value in supporting "3rd party" provision of qemu-xen-traditional. We also do not want/need this on ARM therefore default is on for x86 and off otherwise. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> [ ijc -- trivial conflicts in Tools.mk.in and tools/configure.ac. Reran autogen.sh ]
* Silently ignore rm and include errors during make distcleanDaniel Kiper2013-05-081-1/+1
| | | | | Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
* build: rename deb target as debballIan Campbell2013-02-281-3/+5
| | | | | | | | | "debball" by analogy with "tarball". Attempt to clarify the purpose of this target in the comment. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Tim Deegan <tim@xen.org> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
* build: cleanup configure detritus at toplevel and stubdomIan Campbell2013-01-251-0/+1
| | | | | | | | | | | | | | | These files were left over after $ git clean -f -dx $ ./configure $ make distclean and picked up by a subsequent. $ git clean -f -dx Ensure that these files are also correctly ignored. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Roger Pau Monné <roger.pau@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* Add conditional build of subsystems to configure.acMatthew Fioravante2013-01-181-2/+8
| | | | | | | | | The toplevel Makefile still works without running configure and will default build everything Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* hotplug/Linux: remove hotplug support, rely on udev insteadOlaf Hering2012-10-181-1/+0
| | | | | | | | | | | | | | | | | | Hotplug has been replaced by udev since several years. Remove the hotplug related files and install udev unconditionally. This makes it possible to remove udev from rpm BuildRequires which reduces the buildtime dependency chain. For openSuSE:Factory it was done just now: http://lists.opensuse.org/opensuse-buildservice/2012-10/msg00085.html The patch by itself will have no practical impact unless someone attempts to build and run a Xen dom0 on a really old base system. e.g. circa SLES9/2007 or earlier Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* docs, build: Do not ignore install-docs errorsIan Jackson2012-10-091-1/+1
| | | | | | | | | | | | | | In the toplevel Makefile "install-docs" (depended on by "install" and hence "dist"), but not "build", ignores errors. This was inherited from before 24563:4271634e4c86, prior to which the ||true seems intended to handle failures of check_pkgs. Nowadays we handle docs tools individually in the docs makefiles so there is no need for this ||true here. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* uninstall: push tools uninstall down into tools/MakefileIan Campbell2012-08-311-28/+1
| | | | | | | | | | Many of the rules here depend on having run configure and the variables which it defines in config/Tools.mk Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Looks-good: Jan Beulich <JBeulich@suse.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* uninstall: do not remove kernels or modules on uninstall.Ian Campbell2012-08-311-2/+1
| | | | | | | | | | | | | | | | | The pattern used is very broad and will delete any kernel with xen in its filename, likewise modules, including those which come packages from the distribution etc. I don't think this was ever the right thing to do but it is doubly wrong now that Xen does not even build or install a kernel by default. Push cleanup of the installed hypervisor down into xen/Makefile so that it can cleanup exactly what it actually installs. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Looks-good: Jan Beulich <JBeulich@suse.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* build: Correct typo introduced by c/s:25334Juergen Gross2012-06-081-1/+1
| | | | | | Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* nstore: rename public xenstore headersIan Campbell2012-05-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | The xenstore header xs.h is producing conflicts with other software[1]. xs is a too short identifier and does not matche the library. Renaming the headers to xenstore.h and xenstore_lib.h is the easiest way to make them easy recognizable and prevent furthe problems. [1]: http://bugs.debian.org/668550 [ Also update QEMU_TAG, to bring in corresponding change to qemu-xen-traditional. -iwj ] Signed-off-by: Bastian Blank <waldi@debian.org> 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> --HG-- rename : tools/xenstore/xs.h => tools/xenstore/xenstore.h rename : tools/xenstore/xs_lib.h => tools/xenstore/xenstore_lib.h
* Makefile: Some updates to uninstallFabio Fantoni2012-04-231-5/+11
| | | | | Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it> Committed-by: Ian Jackson <ian.jackson.citrix.com>
* build: Add xenversion as a top-level targetGeorge Dunlap2012-03-071-0/+3
| | | | | | | | We already have xenversion as a target in the xen subdirectory; simply extend it so that "make xenversion" does what you'd expect. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Keir Fraser <keir@xen.org>
* build: add autoconf to replace custom checks in tools/checkIan Jackson2012-02-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added autotools magic to replace custom check scripts. The previous checks have been ported to autoconf, and some additional ones have been added (plus the suggestions from running autoscan). Two files are created as a result from executing configure script, config/Tools.mk and config.h. conf/Tools.mk is included by tools/Rules.mk, and contains most of the options previously defined in .config, that can now be set passing parameters or defining environment variables when executing configure script. config.h is only used by libxl/xl to detect yajl_version.h. [ tools/config.sub and config.guess copied from autotools-dev 20100122.1 from Debian squeeze i386, which is GPLv2. tools/configure generated using the included ./autogen.sh which ran autoconf 2.67-2 from Debian squeeze i386. autoconf is GPLv3+ but has a special exception for the autoconf output; this exception applies to us and exempts us from complying with GPLv3+ for configure, which is good as Xen is GPL2 only. - Ian Jackson ] Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Tested-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* docs: Remove outdated LaTex documentation.Keir Fraser2012-01-251-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* Clone and build Seabios by default2012-01-241-0/+4
| | | | | | | | From: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
* Clone and build upstream Qemu by default2012-01-241-1/+8
| | | | | | | From: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
* Rename ioemu-dir as qemu-xen-traditional-dir2012-01-241-7/+7
| | | | | | | From: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
* tools: Revert seabios and upstream qemu build changesIan Jackson2011-09-141-10/+7
| | | | | | | | | | | | | | | These have broken the build and it seems to be difficult to fix. So we will revert the whole lot for now, and await corrected patch(es). Revert "fix the build when CONFIG_QEMU is specified by the user" Revert "tools: fix permissions of git-checkout.sh" Revert "scripts/git-checkout.sh: Is not bash specific. Invoke with /bin/sh." Revert "Clone and build Seabios by default" Revert "Clone and build upstream Qemu by default" Revert "Rename ioemu-dir as qemu-xen-traditional-dir" Revert "Move the ioemu-dir-find shell script to an external file" Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Clone and build upstream Qemu by defaultStefano Stabellini2011-09-131-1/+4
| | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* Rename ioemu-dir as qemu-xen-traditional-dirStefano Stabellini2011-09-131-7/+7
| | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* Makefile: install-tools does not depend on ioemu-dir if CONFIG_IOEMU=nKeir Fraser2011-05-201-1/+5
| | | | | | Based on patch by George Dunlap. Signed-off-by: Keir Fraser <keir@xen.org>
* Build target to wrap dist/install in a .deb archive.Tim Deegan2011-05-161-0/+5
| | | | | | | | | | | | | | Adds "make deb", which does a "make dist" build and wraps the resulting dist/install files in dist/xen-<version>.deb This is _not_ a "packaged" version of Xen for Debian users, nor is it intended to compete with anyone else's packaging efforts. In particular it doesn't do any of the boot-time or fstab fixups needed to actually start the xen tools. It's just a quick hack for developers to be able to quickly install and uninstall a Xen build on a test box. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* tools: provide explicit target for refetching/resetting qemuIan Campbell2010-11-091-0/+4
| | | | | | | | | | | | | This patch adds an explicit update mechanism: make tools/ioemu-dir-force-update This isn't brilliant but is better than doing "cd tools/ioemu-remote && git reset --hard <sha1...>" by hand. Note that invoking this target will destroy all working tree changes made to qemu-xen. Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools, build system: Make changing distro-specific layout aspects easier2010-09-201-1/+1
| | | | | | | | | | | Introduce CONFIG_LEAF_DIR, SUBSYS_DIR, INITD_DIR variables to cope better with variation between distributions. See docs/misc/distro_mapping.txt for details. Signed-off-by: Bruce Edge <bruce.edge@gmail.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Makefile: Serialise stubdom build after toolsKeir Fraser2010-07-091-1/+1
| | | | | | | | | | Currently "make stubdom" on its own fails because it depends on files being installed by the results of "make tools". This also means that in some circumstances a parallel "make tools stubdom" (or "make all") can fail due to races. So make "make stubdom" depend on "make tools" having completed first. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Makefile: Separate misc dist things from dist targetKeir Fraser2010-06-181-1/+3
| | | | | | | Separate the miscellaneous actions the dist: target does into its own target so you can run them independently. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
* uninstall: get rid of hardcoded pathesKeir Fraser2009-05-261-24/+24
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* TXT: update Makefile to latest tboot tarfileKeir Fraser2009-04-171-1/+1
| | | | | | | | This patch updates the Makefile to download the latest version of tboot, which supports the interface changes made recently. This should go into 3.4, since 3.4 supports the new tboot interface. Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
* tools: Always use sane upstream (`native') python pathsKeir Fraser2009-04-081-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, by default we would install our python modules into /usr/lib/python/xen, for example /usr/lib/python/xen/__init__.py. Upstream python's standard install location (a) includes the Python version number and (b) puts things in site-packages by default. Our best conjecture for the reason for this was an attempt to make the installs portable between different python versions. However, that doesn't work because compiled python modules (.pyc), and C python extensions corresponding to one version of python, are not compatible across different versions of python. This is why upstream include the version number. site-packages is the standard location for locally-installed packages and is automatically included on the python search path. In this change, we abandon our own unusual python path setup: * Invoke setup.py in an entirely standard manner. We pass PREFIX and DESTDIR using the appropriate options provided by setup.py for those purposes (adding them to setup.py calls which were previously lacking them). * Since the installation locations are now on the standard python path, we no longer need to add anything to the path in any of our python utilities. Therefore remove all that code from every python script. (Many of these scripts unconditionally added /usr/lib/python and /usr/lib64/python which is wrong even in the old world.) * There is no longer any special `Xen python path'. xen-python-path is no longer needed. It is no longer called by anything in our tree. However since out-of-tree callers may still invoke it, we retain it. It now prints a fixed string referring to a directory which does not to exist; callers (who use it to augment their python path) will thus add a nonexistent directory to their python path which is harmless. * Remove various workarounds including use of setup.py --home (which is intended for something completely different). * Remove tests for the XEN_PYTHON_NATIVE_INSTALL build-time environment variable. The new behaviour is the behaviour which we should have had if this variable had been set. That is, it is now as if this variable was always set but also bugs in the resulting install have been fixed. This should be a proper fix for the bug addressed by c/s 19515. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Revert c/s 19504 -- uses an obsolete sysfs interface.Keir Fraser2009-04-061-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: Add device-path command to convert SBDF into device path.Keir Fraser2009-04-061-1/+1
| | | | | | | | | | | | | | 'SBDF' format is "[SEG#:]BUS#:DEV#.FUNC#" ex) 0000:0a:1f.3 Device path format is "HID[:UID]-DEV#.FUNC#[-DEV#.FUNC#[...]]" ex) PNP0A08:0-2.0-0.0 The command can be executed as follows. # device_path 0a:1f.3 PNP0A08:0-2.0-0.0 Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
* Add udev rules to deliver hw events to xendKeir Fraser2009-03-171-0/+2
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* Download external tarballs from xenbits.xensource.comKeir Fraser2009-01-051-1/+2
| | | | | | | | | | | | | | I have copied the tarballs that the xen-unstable build downloads to xenbits.xensource.com (which also hosts our hg and git). This patch changes the download URLs to use that location. That way the build will depend on only one external machine, under one administration, rather than many. Also it means that the build won't break if these sites become permanently unavailable or are rearranged and we don't run a risk of having to panic and beg if a file should go missing. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Fix direct use of 'make' -> $(MAKE)Keir Fraser2008-09-241-1/+1
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Avoid parallel invocation of git for ioemu-remote.Keir Fraser2008-09-151-2/+5
| | | | | | | | | | | | | | The stubdom and tools directories both run `make ioemu-dir-find' in tools. In a parallel build, both these invocations can run concurrently because we're doing recursive make. This change fixes this problem by adding a suitable dependencies in the top-level Makefile for the recursion into tools/ and stubdom/, ensuring that the git fetch happens once, first. The bug was introduced in 18472/18474. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* pv-grub: On x86_64, also build an x86_32 pv-grubKeir Fraser2008-08-141-0/+12
| | | | | | | This requires suffixing obj directories and having grub compiled outside sources. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Fix make help for stubdomKeir Fraser2008-08-041-1/+1
| | | | | | | This patch fixes "make help". "make stubdomain" does not work. Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
* stubdom: enable compilation/installation by defaultKeir Fraser2008-07-141-10/+2
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: Add root Makefile targets, disabled by default for nowKeir Fraser2008-07-091-1/+19
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Update tboot tarfile to latest version in Trusted Boot SourceForge siteKeir Fraser2008-07-031-1/+1
| | | | Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
* i386: Remove non-PAE hypervisor build target.Keir Fraser2008-05-081-4/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* src-tarball: Remove source control metadata.Keir Fraser2008-04-211-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Cache figlet output across builds, and provide src-tarball targetKeir Fraser2008-04-211-0/+7
| | | | | | | which creates figlet output and then deletes figlet itself (which is not licensed under GPL). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Changeset 16771 introduced a new file called tools/check/funcs.sh. ThisKeir Fraser2008-01-261-1/+1
| | | | | | file needs to be installed into distdir together with the check scripts. Signed-off-by: Frank Arnold <frank.arnold@amd.com>
* Apply PREFIX directly to LIBDIR.Keir Fraser2008-01-221-4/+4
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* tboot, xen: Update for Trusted Boot v20071128.Keir Fraser2007-12-041-1/+5
| | | | | | | | | | | | | | | This patch updates the Xen to work with the latest version (20071128) of Trusted Boot (tboot). This version of tboot now resides at 16MB (instead of the previous <1MB), in addition to several other enhancements. By residing at 16MB, this version of tboot will be protected from access by dom0. This patch allows Xen to correctly map the tboot shutdown code that it must trampoline into for a clean shutdown (without this patch Xen will fault on shutdown). This patch will also work with the previous version of tboot. Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
* Update README file for Xen 3.2, and add tboot makefile targets andKeir Fraser2007-10-301-1/+41
| | | | | readme decsription. Signed-off-by: Keir Fraser <keir@xensource.com>