aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
Commit message (Collapse)AuthorAgeFilesLines
* Add stubdomain support. See stubdom/README for usage details.Keir Fraser2008-02-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move PAGE_SIZE and STACK_SIZE into __PAGE_SIZE and __STACK_SIZE in arch_limits.h so as to permit getting them from there without pulling all the internal Mini-OS defines. - Setup a xen-elf cross-compilation environment in stubdom/cross-root - Add a POSIX layer on top of Mini-OS by linking against the newlib C library and lwIP, and implementing the Unixish part in mini-os/lib/sys.c - Cross-compile zlib and libpci too. - Add an xs.h-compatible layer on top of Mini-OS' xenbus. - Cross-compile libxc with an additional xc_minios.c and a few things disabled. - Cross-compile ioemu with an additional block-vbd, but without sound, tpm and other details. A few hacks are needed: - Align ide and scsi buffers at least on sector size to permit direct transmission to the block backend. While we are at it, just page-align it to possibly save a segment. Also, limit the scsi buffer size because of limitations of the block paravirtualization protocol. - Allocate big tables dynamically rather that letting them go to bss: when Mini-OS gets installed in memory, bss is not lazily allocated, and doing so during Mini-OS is unnecessarily trick while we can simply use malloc. - Had to change the Mini-OS compilation somehow, so as to export Mini-OS compilation flags to the Makefiles of libxc and ioemu. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* build: Make PREFIX work by fixing LIBDIRKeir Fraser2008-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | In the current tree, setting PREFIX does not work very well. This is because of confusion about the meaning of LIBDIR. In some places it is the pathname tail of directories containing libraries (lib, lib64 or lib/amd64). But in other places it is a destination pathname (implicitly, including any PREFIX). This can result in PREFIX or /usr being added the wrong number of times. This patch splits LIBDIR into two variables, LIBLEAFDIR and LIBDIR. LIBDIR is the directory into which Xen libraries and other similar code is to be placed, and includes any PREFIX. LIBLEAFDIR is just the library tail and can be appended to various different prefixes; for example, to construct the X11 library directory for -L. Neither variable contains the value of DESTDIR, which is of course used only to redirect the results of `make install' when desired. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Remove machine setting from HOSTCFLAGS.Keir Fraser2008-01-271-3/+0
| | | | | | | The host compiler must know how to produce runnable binaries without special settings. Signed-off-by: Bastian Blank <waldi@debian.org>
* tools: disable lomount and miniterm by defaultKeir Fraser2008-01-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lomount is a tool which reads and parses a partition table in a disk image block device and then uses mount -o ...offset=... to mount it. This is not an ideal approach. For example, if the intended filesystem has corrupted metadata the kernel's filesystem driver may start to write outside of the intended region. This might even be exploitable in some perverse circumstances. Nowadays people wanting to do this should use kpartx, which uses devmapper to create appropriate range mappings. So lomount should be disabled. miniterm may well be useful but it is a clone-and-hack of an upstream project and is currently built but not installed by default, partly because it doesn't make sense to install on the dom0 which it might be trying to debug. It is probably useful to retain these two programs in the source tree but IMO they should no longer be built by default. The attached patch does these things: * CONFIG_LOMOUNT and CONFIG_MINITERM in Config.mk can enable and disable these programs * They are disabled by default * If CONFIG_MINITERM=y it is still built but not installed. make -C tools/misc/miniterm install will install it. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* -DNDEBUG for hypervisor onlyKeir Fraser2008-01-151-3/+1
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Revert 16560:822d4ec5cfb1.Keir Fraser2007-12-081-3/+0
| | | | | | | | | | | | | Preference seems to be to update library versions only when the ABI changes. Only libxenctrl/libxenguest have their version number changed to 3.2.0, as a reminder that they change on pretty much every major release. libfsimage/libxenstore/libblktap have not changed substantially recently, hence the ABI has not changed, and version number stays the same as in Xen 3.1 (and before). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: Rationalise library soname versions.Keir Fraser2007-12-071-0/+3
| | | | | | | | | | | | | | | | * Arrange for the sonames of libxenstore, libxc, libfsimage and libblktap to be set from a single place in Config.mk. * Bumps the soname major version number to 3.2 in preparation for 3.2 rc1 after which we do not expect to have ABI changes. I have not done anything about libaio and libflask. The former is imported from elsewhere and if we're lucky will have sane versioning upstream. libflask has a very small interface and I'm hoping that the XSM authors have been keeping some ABI discipline. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* pv-qemu: Remove standalone xenfb codeKeir Fraser2007-10-251-1/+0
| | | | | | | | | | | This patch removes all trace of the standalone paravirt framebuffer daemon. With this there is no longer any requirement for LibVNCServer. Everything is handled by the QEMU device model. The xenfb.c and xenfb.h files are now moved (without code change) into tools/ioemu/hw/ & the temporary Makefile hack from the previous patch is removed. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix x86/64 build for *BSD.Keir Fraser2007-10-191-1/+2
| | | | | | | - Config.mk: uname -m prints "amd64". Deal with this. - do not assume python is always in /usr/bin - get-fields.sh: make it portable and non-bash specific Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Cleanups after XSM checkin.kfraser@localhost.localdomain2007-08-311-11/+1
| | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com> --HG-- rename : xen/include/public/acm.h => xen/include/public/xsm/acm.h rename : xen/include/public/acm_ops.h => xen/include/public/xsm/acm_ops.h rename : xen/include/acm/acm_core.h => xen/include/xsm/acm/acm_core.h rename : xen/include/acm/acm_endian.h => xen/include/xsm/acm/acm_endian.h rename : xen/include/acm/acm_hooks.h => xen/include/xsm/acm/acm_hooks.h
* Xen Security Modules: FLASKkfraser@localhost.localdomain2007-08-311-0/+8
| | | | Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
* Xen Security Modules: XSMkfraser@localhost.localdomain2007-08-311-2/+4
| | | | Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
* Tack -m32/-m64 on HOSTCFLAGS when COMPILE_ARCH is x86.kfraser@localhost.localdomain2007-08-161-0/+3
| | | | | Should fix building in Solaris environments. Signed-off-by: Keir Fraser <keir@xensource.com>
* [Build] Remove ACM option for NULL and STE+CHWALL policykfraser@localhost.localdomain2007-07-131-8/+0
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Specify -fno-strict-aliasing in root build config file.Keir Fraser2007-07-071-2/+5
| | | | | | | | 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>
* acm: Changes to XML schema of the policykfraser@localhost.localdomain2007-04-251-2/+0
| | | | | | | | | | | This patch changes the XML schema of the ACM policy to require a version and that every conflict set have a name. Every VM label must have one Chinese Wall Type and every resource label one Simple Type Enforcement Type. As a consequence of this some example policies needed to be changed. Also not offering that many configuration options for compiling xen anymore to make things simpler. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* In order to allow building as non-root with a non-default CC (whichkfraser@localhost.localdomain2007-03-271-2/+12
| | | | | | | | | root may not have access to through its $PATH), defer the generation of an error until CC is actually needed. Original patch by Jan Beulich <jbeulich@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Xen and tools now require gcc 3.4+ on x86.Keir Fraser2007-03-171-0/+6
| | | | | | | | | | | | | | | - gcc-3.2 cannot handle some multi-line assertions in the Xen sources. Noone noticed. - gcc-3.3 has problems with alignment constraints inside typedefs. gcc 3.4.0 is now three years old so I hope that everyone has an up-to-date compiler, or can obtain a more up-to-date package for their distribution. If not we may need to fall back to supporting gcc-3.3.x as well. Also clean up the way we do version checks, using the power of awk. Signed-off-by: Keir Fraser <keir@xensource.com>
* Make Python tools (i.e., xend and pygrub) conditionally compiled.kfraser@localhost.localdomain2007-03-061-3/+4
| | | | | | Config option is PYTHON_TOOLS, default is 'y'. Signed-off-by: Ben Thomas <ben@virtualiron.com>
* Build PAE by default on x86_32.kfraser@localhost.localdomain2007-01-181-1/+4
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Handle the creation of startup info for compatibility mode guests. ThisEmmanuel Ackaouy2007-01-051-0/+2
| | | | | | | includes a script to auto-generate checking or translation code between native and compatibility mode hypercall argument structures. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Make the xenfb tools an optional part of the build, as they introduce newEwan Mellor2006-12-021-1/+1
| | | | | | | dependencies (libvncserver and libsdl devel packages). Enable them with XENFB_TOOLS=y. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Add libxen to overall xen build via a config option in Config.mk.jfehlig@jfehlig2.provo.novell.com2006-11-221-0/+1
| | | | Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* Replace test-gcc-flag with Linux-style cc-option.kfraser@localhost.localdomain2006-10-181-3/+6
| | | | | | | Improve on Linux implementation by looking for any output on stdout/stderr. This indicates badness. Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Can be built -std=gnu99 (except for .S files).kfraser@localhost.localdomain2006-10-181-0/+2
| | | | | | | | | Need to be careful with static initialisers: 1. *_LOCK_UNLOCKED, CPU_MASK_* no longer include a cast 2. Dynamic uses of the above are replaced by appropriate function invocations. Signed-off-by: Keir Fraser <keir@xensource.com>
* Avoid need for GREP variable by avoiding GNUisms. Thekfraser@localhost.localdomain2006-10-181-1/+1
| | | | | | | | | | only one we appear to have is use of '-q'. Replace it with redirection to /dev/null. Also avoid use of 'tail' by replacing with 'head' or 'grep' as appropriate. Signed-off-by: Keir Fraser <keir@xensource.com>
* [SOLARIS] Don't build ptrace code on Solaris.kfraser@localhost.localdomain2006-10-171-0/+2
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [SOLARIS] Use GNU grep on Solaris.kfraser@localhost.localdomain2006-10-171-1/+1
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Introduce Makefile config fragments for OS-specific differences.kfraser@localhost.localdomain2006-10-171-30/+9
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Don't use -Wunused-value. It's too aggressive with GCC4.kfraser@localhost.localdomain2006-10-171-0/+4
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Build Xen with at least -O1 to avoid very large stack frames.kfraser@localhost.localdomain2006-07-271-0/+2
| | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [powerpc] add PowerPC support to Makefileskaf24@firebug.cl.cam.ac.uk2006-07-141-2/+2
| | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* Use a global build configuration file, and rework libxc Makefile for PPC.kfraser@dhcp93.uk.xensource.com2006-05-311-13/+1
| | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* build: Make sure that DESTDIR is setkaf24@firebug.cl.cam.ac.uk2006-04-101-0/+1
| | | | | | | | | | | | | | | | In the case where XEN_PYTHON_NATIVE_INSTALL is in effect, if DESTDIR is not set then the install will go into a relative directory rather than under the default prefix (usually /usr). An alternate solution would be to update the fragments that do the python install to use $(DESTDIR)/ instead of $(DESTDIR). This is not an incredible burden as there are only two such fragments in the tree. However, it seems prone to error as new makefiles are created in the future. Signed-Off-By: Horms <horms@verge.net.au>
* More build config changes:kaf24@firebug.cl.cam.ac.uk2006-03-101-9/+17
| | | | | | | | | | - Build -O2 rather than -O3 - Build with -Wstrict-prototypes - Move target-specific generic compiler switches to Config.mk Signed-off-by: Keir Fraser <keir@xensource.com>
* Move 'debug' build option into the outermost Config.mk file.kaf24@firebug.cl.cam.ac.uk2006-03-091-0/+11
| | | | | | 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-0/+2
| | | | | | | | like to control the base compilation flags from a central place. Signed-off-by: Charles Coffing <ccoffing@novell.com>
* HOSTCC should be used to set HOSTCFLAGS instead of CC.emellor@leeni.uk.xensource.com2005-12-141-3/+3
| | | | | | | | | There is a case where HOSTCC doesn't accept -Wdeclaration-after-statement, while CC does. It results in a compilation error. This patch fixes it Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Add -Wdeclaration-after-statement to CFLAGS only if thekaf24@firebug.cl.cam.ac.uk2005-11-231-2/+4
| | | | | | | | | | compiler supports it. Move test-gcc-flag function to Config.mk where it can be used by any component of the build. Signed-off-by: Keir Fraser <keir@xensource.com>
* Add -Wdeclaration-after-statement to Xen and tools build.kaf24@firebug.cl.cam.ac.uk2005-11-221-0/+3
| | | | | | | | Fix the compile errors that result from this. Signed-off-by: Keir Fraser <keir@xensource.com>
* Enable the Xen hypervisor ACM security policy to be determined at bootkaf24@firebug.cl.cam.ac.uk2005-11-191-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | time (instead of at compile time). Allows a single xen.gz binary to run under different security policy types, which simplifies distributions considerably. To this end, we replace the current single compile switch in Config.mk with the following two: 1. ACM_SECURITY (y/n) if "n", then the ACM is not compiled and no security policies can be configured at boot time. If "y", then the ACM is compiled and can be configured into any of the available policy types (null, chwall, ste, chwall_ste) by specifying a valid boot policy .bin file in the grub boot configuration. 2. ACM_DEFAULT_SECURITY_POLICY (null / chwall / ste / chwall_ste) specifies the policy into which Xen defaults in the case that security is enabled but no boot policy file is specified, or the specified policy file is invalid (wrong version, magic, corrupted, ...) While the type of the enabled policy (null, ste, ...) is decided once during boot for the whole boot cycle, the policy instantiation can be changed during operation as usual with the security tools. Signed-off by: Tomas Lendacky <toml@us.ibm.com> Signed-off by: Reiner Sailer <sailer@us.ibm.com>
* Clean up DESTDIR handling. Default install is to rootkaf24@firebug.cl.cam.ac.uk2005-10-051-3/+1
| | | | | | | | | | directory (/). This is only overridden automatically for the 'make dist' targets and their legacy aliases (make {xen,tools,kernels,docs}). Signed-off-by: Keir Fraser <keir@xensource.com>
* Move setting of configuration variables to Config.mk.kaf24@firebug.cl.cam.ac.uk2005-10-051-0/+11
| | | | | | | | | Allows for partial-tree builds to be invoked from a sub-directory. Allow for users to include a ".config" with additional custom settings. Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
* VTPM is off by default.kaf24@firebug.cl.cam.ac.uk2005-09-011-0/+1
|
* Merge libxenstat and xentop.cl349@firebug.cl.cam.ac.uk2005-08-221-0/+5
|\
| * Rename vm-top to xentop. Make "xm top" invoke xentop. Make libxenstat a ↵josht@us.ibm.com2005-08-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | static library, and do not install it. # HG changeset patch # User josht@us.ibm.com # Node ID ea025493dfe39540075ee9e4e75b2146f25bdbd3 # Parent ce557cc4fdc764ac2ce07b8d4bcae77ecf847c29 Rename vm-top to xentop. Make "xm top" invoke xentop. Make libxenstat a static library, and do not install it.
| * Make vm-top and the xenstat perl and python bindings conditional based on ↵josht@us.ibm.com2005-08-131-0/+5
| | | | | | | | configuration variables from Config.mk, rather than disabling them if the needed headers are not found.
* | no pae by defaultkaf24@firebug.cl.cam.ac.uk2005-08-221-1/+1
| |
* | We cannot allow nested C functions. They create a stackkaf24@firebug.cl.cam.ac.uk2005-08-221-1/+1
| | | | | | | | | | | | | | | | | | trampoline when their address is taken, which causes a fault if the system implements NX/XD. Signed-off-by: Keir Fraser <keir@xensource.com>
* | This patch:kaf24@firebug.cl.cam.ac.uk2005-08-191-0/+8
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | * adds a C-based security policy translation tool to Xen (secpol_xml2bin) and removes the current Java security policy translator (Java dependencies). The C-based tool integrates into the Xen source tree build and install (using gnome libxml2 for XML parsing). See install.txt. * introduces security labels and related tools. Users can now use semantic-rich label names to put security-tags on domains. See example.txt, policy.txt. * moves the security configuration (currently ACM_USE_SECURITY_POLICY) from xen/Rules.mk into a separate top-level Security.mk file (it is needed by the tools/security and xen/acm). Both xen/acm and tools/security are built during the Xen build process only if ACM_USE_SECURITY_POLICY is not ACM_NULL_POLICY (which is the default setting). Signed-off-by Reiner Sailer <sailer@us.ibm.com> Signed-off by Stefan Berger <stefanb@us.ibm.com> Signed-off by Ray Valdez <rvaldez@us.ibm.com>