aboutsummaryrefslogtreecommitdiffstats
path: root/stubdom/Makefile
Commit message (Collapse)AuthorAgeFilesLines
...
* stubdom: Fix compilation after libelf header changesKeir Fraser2009-01-091-0/+1
| | | | | | | | | | | Changeset 19011:7df072566b8c moved some of the libelf headers. However, no changes were made to stubdom/Makefile. stubdom/Makefile unfortunately contains embedded in it knowledge about the header directory structures, and must therefore typically be updated if new header directories are created. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Download external tarballs from xenbits.xensource.comKeir Fraser2009-01-051-5/+15
| | | | | | | | | | | | | | 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>
* Remove internal tools/ioemu tree.Keir Fraser2008-09-181-16/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* stubdom/ioemu link farm creation fixesKeir Fraser2008-09-161-17/+20
| | | | | | | | | | | | | | | | | | | | | | | | | Replace the stubdom/ioemu link farm creation in stubdom/Makefile, with code which arranges that: * No symlinks are made for output files - in particular, any symlinks for .d files would be written through by the compiler and cause damage to the original tree and other strange behaviours * All subdirectories are made as local subdirectories rather than links * Any interrupted or half-completed creation of the link farm leaves the directory in a state where the link farming will be restarted * We use make's inherent ability to test for the existence of files rather than using [ -f ... ] at the start of the rule's commands * The list of files to be excluded from the link farm can be easily updated etc. This should fix some problems particularly with parallel builds, or by-hand builds where directories are entered in other than the usual order. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* $(XEN_ROOT) absolutification fixes for ioemu-remote (incl stubdom)Keir Fraser2008-09-121-2/+3
| | | | | | | | | | | | | | | | * Move code for generating an absolute version of XEN_ROOT into a common make variable set in Config.mk * Use this common code when invoking make -C ioemu-dir clean from tools/, which avoids a problem where `make clean' fails because qemu's (ioemu-remote's) build system wants to run `make clean' in `tests' but XEN_ROOT is a confection involving ../'s. * Use this common code in stubdom/Makefile, instead of $(abspath...) as the latter is a relatively new feature in GNU make and is not available in all the places that we want to be able to build (cf c/s 17997:3f23e01d31985899dbd1660b166f229f1ee74292) Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* stubdom: compile stubdom with qemu-remoteKeir Fraser2008-09-121-7/+8
| | | | | | Remove the CONFIG_QEMU override; fixing lwip isystem path. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* cross-install: Only apply in tools directory, and automatically wrap $INSTALL.Keir Fraser2008-08-301-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* stubdom: Absolute path for XEN_ROOT.Keir Fraser2008-08-301-1/+1
| | | | | | | It may be used in subdirectories indirectly (e.g., as path component of $(INSTALL)). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* stubdom: add LANG=C for 'gcc -print-search-dirs'Keir Fraser2008-08-281-1/+1
| | | | | | Prevents unwanted localisation of pretty-printing. Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
* ioemu-stubdom: drop --disable-gfx-check option, already added by qemu-xen treeKeir Fraser2008-08-271-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* pv-grub: On x86_64, also build an x86_32 pv-grubKeir Fraser2008-08-141-46/+52
| | | | | | | This requires suffixing obj directories and having grub compiled outside sources. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* install more documentation to /usr/share/doc/xen and /etc/xenKeir Fraser2008-08-061-1/+5
| | | | | | Also resync xmexample3 with xmexample1 and 2. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: add *_URL variables to permit to use e.g. local mirrors.Keir Fraser2008-08-061-5/+10
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: install stubdom kernels as dataKeir Fraser2008-08-041-2/+2
| | | | | | since they do not need to be directly executed Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: Fix the Makefile to avoid brace expansionKeir Fraser2008-08-041-1/+1
| | | | | | | | | | | | While building stubdom, I saw an error. install: cannot stat `lib/{config,header,pci,types}.h': No such file or directory It seems brace expansion is not available in some environments, so we had better avoid using it. Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* Fix stubdom makefile mistake.Keir Fraser2008-08-011-2/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* stubdom: fix clean target after distcleanKeir Fraser2008-08-011-2/+2
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix make clean ; makeKeir Fraser2008-07-311-1/+3
| | | | | | | | make should not have to regenerate the libxc and ioemu directories since that is part of the mk-headers target. Use the subdirectory clean targets instead to clean just the object files. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: avoid re-making mk-headers and thus newlib etc.Keir Fraser2008-07-251-1/+2
| | | | | | | Using a stamp file for mk-headers permits to avoid to re-run newlib configuration etc. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: make sure to use old tree for nowKeir Fraser2008-07-241-2/+2
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix build dependenciesKeir Fraser2008-07-181-3/+3
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix build dependencyKeir Fraser2008-07-181-6/+6
| | | | | | newlib now depends on mini-os header links Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: use lwip 1.3.0 release + patch instead of checking out from cvsKeir Fraser2008-07-171-16/+23
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* PV-GRUB: use the 0.97 snapshot + patch instead of checking out from cvsKeir Fraser2008-07-171-8/+12
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: do not use realpath, new in make 3.81Keir Fraser2008-07-111-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fixes to compile with qemu-xenKeir Fraser2008-07-101-8/+36
| | | | | | | | | | This adds fixes to the stub domain build into compiling Ian Jackson's qemu-xen. The most notable change is that mini-os headers now #include each other through a mini-os/ prefix, so that we can turn all -I into -isystem and still be sure that we include Mini-OS headers (and not qemu's console.h or blktaplib's list.h for instance...). Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: make compilation independent of tools/ by building our own copy of ↵Keir Fraser2008-07-091-8/+15
| | | | | | the includes Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: use a newlib snapshot instead of the slow cvs checkout.Keir Fraser2008-07-081-13/+31
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: do not build tapdisk as it it not supposed to build and we don't ↵Keir Fraser2008-07-081-1/+1
| | | | | | need it Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix parallel buildKeir Fraser2008-07-051-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: use host's gccKeir Fraser2008-07-041-67/+34
| | | | | | | | This makes stubdom use the host's gcc instead of downloading/compiling binutils+gcc. That requires a bunch of changes and even uncovered a few bugs, but saves a lot of time. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: PCI passthrough support via PV-PCIKeir Fraser2008-07-021-3/+7
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Add PV-GRUBKeir Fraser2008-06-181-7/+34
| | | | | | | | | | | This fetches GRUB1 sources, applies the {graphical, print function, save default, and ext3_256byte} patches from debian, and applies a patch to make it work on x86_64 and port it to Mini-OS. By using libxc, PV-GRUB can then "kexec" the loaded kernel from inside the domain itself, hence permitting to avoid the security-concerned pygrub. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios,stubdom: Add OBJ_DIR parameter to compile outside sources,Keir Fraser2008-06-171-29/+37
| | | | | | | which permits to easily compile mini-os in various flavors. Also clean some parts of stubdom build. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: prevent newlib from emiting cli/sti in longjmpKeir Fraser2008-06-091-4/+9
| | | | | | Also fix build dependencies and cleanup. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: upgrade lwip to newer upstream version since it provides bugfixesKeir Fraser2008-06-051-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: make the build more generic by moving as many stubdom partsKeir Fraser2008-05-281-14/+17
| | | | | | | into stubdom/ as possible. That also permits to build all of ioemu, c and caml stubdoms at the same time. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: add C example targetKeir Fraser2008-03-191-1/+13
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: missing two renames (avoids always re-compiling newlib)Keir Fraser2008-02-121-2/+2
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: Rename stubdom/*.build into stubdom/*-build, newlib intoKeir Fraser2008-02-121-19/+20
| | | | | | | newlib-cvs, lwip into lwip-cvs. Fix .hgignore to ignore only them and not the patches. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Make stubdom/Makefile override XEN_OS to MiniOS, and addKeir Fraser2008-02-121-0/+2
| | | | | | | config/MiniOS.mk. Add PTHREAD_LIBS to configs (usually holding -lpthread). Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Add stubdomain support. See stubdom/README for usage details.Keir Fraser2008-02-121-0/+256
- 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>