ofs | hex dump | ascii |
---|
0000 | 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 02 00 03 00 01 00 00 00 70 86 04 08 34 00 00 00 | .ELF....................p...4... |
0020 | bc 73 00 00 00 00 00 00 34 00 20 00 06 00 28 00 22 00 1f 00 06 00 00 00 34 00 00 00 34 80 04 08 | .s......4.....(.".......4...4... |
0040 | 34 80 04 08 c0 00 00 00 c0 00 00 00 05 00 00 00 04 00 00 00 03 00 00 00 f4 00 00 00 f4 80 04 08 | 4............................... |
0060 | f4 80 04 08 13 00 00 00 13 00 00 00 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 80 04 08 | ................................ |
0080 | 00 80 04 08 30 0f 00 00 30 0f 00 00 05 00 00 00 00 10 00 00 01 00 00 00 00 10 00 00 00 90 04 08 | ....0...0....................... |
00a0 | 00 90 04 08 48 01 00 00 54 01 00 00 06 00 00 00 00 10 00 00 02 00 00 00 10 10 00 00 10 90 04 08 | ....H...T....................... |
00c0 | 10 90 04 08 c8 00 00 00 c8 00 00 00 06 00 00 00 04 00 00 00 04 00 00 00 08 01 00 00 08 81 04 08 | ................................ |
00e0 | 08 81 04 08 20 00 00 00 20 00 00 00 04 00 00 00 04 00 00 00 2f 6c 69 62 2f 6c 64 2d 6c 69 6e 75 | ..................../lib/ld-linu |
0100 | 78 2e 73 6f 2e 32 00 00 04 00 00 00 10 00 00 00 01 00 00 00 47 4e 55 00 00 00 00 00 02 00 00 00 | x.so.2..............GNU......... |
0120 | 02 00 00 00 05 00 00 00 11 00 00 00 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 | ................................ |
0140 | 07 00 00 00 11 00 00 00 0b 00 00 00 15 00 00 00 00 00 00 00 04 00 00 00 13 00 00 00 00 00 00 00 | ................................ |
0160 | 17 00 00 00 12 00 00 00 14 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0180 | 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
01a0 | 00 00 00 00 06 00 00 00 0c 00 00 00 01 00 00 00 00 00 00 00 0e 00 00 00 00 00 00 00 10 00 00 00 | ................................ |
01c0 | 0d 00 00 00 09 00 00 00 0a 00 00 00 08 00 00 00 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
01e0 | 00 00 00 00 98 00 00 00 40 85 04 08 67 01 00 00 12 00 00 00 2c 00 00 00 50 85 04 08 7c 00 00 00 | ........@...g.......,...P...|... |
0200 | 12 00 00 00 9f 00 00 00 60 85 04 08 71 00 00 00 12 00 00 00 12 00 00 00 70 85 04 08 3a 02 00 00 | ........`...q...........p...:... |
0220 | 12 00 00 00 19 00 00 00 80 85 04 08 79 01 00 00 12 00 00 00 1e 00 00 00 90 85 04 08 b4 01 00 00 | ............y................... |
0240 | 12 00 00 00 65 00 00 00 a0 85 04 08 26 03 00 00 12 00 00 00 4c 00 00 00 b0 85 04 08 40 00 00 00 | ....e.......&.......L.......@... |
0260 | 12 00 00 00 3e 00 00 00 c0 85 04 08 4c 00 00 00 12 00 00 00 81 00 00 00 d0 85 04 08 fb 00 00 00 | ....>.......L................... |
0280 | 12 00 00 00 59 00 00 00 e0 85 04 08 35 00 00 00 12 00 00 00 52 00 00 00 f0 85 04 08 39 00 00 00 | ....Y.......5.......R.......9... |
02a0 | 12 00 00 00 93 00 00 00 00 86 04 08 7c 00 00 00 12 00 00 00 6d 00 00 00 10 86 04 08 d9 00 00 00 | ............|.......m........... |
02c0 | 12 00 00 00 a5 00 00 00 20 86 04 08 b9 00 00 00 12 00 00 00 45 00 00 00 30 86 04 08 43 00 00 00 | ....................E...0...C... |
02e0 | 12 00 00 00 25 00 00 00 48 91 04 08 04 00 00 00 11 00 16 00 72 00 00 00 84 8c 04 08 04 00 00 00 | ....%...H...........r........... |
0300 | 11 00 0e 00 51 00 00 00 40 86 04 08 34 00 00 00 12 00 00 00 32 00 00 00 4c 91 04 08 04 00 00 00 | ....Q...@...4.......2...L....... |
0320 | 11 00 16 00 39 00 00 00 50 86 04 08 7c 00 00 00 12 00 00 00 aa 00 00 00 00 00 00 00 00 00 00 #
# Grand Unified Makefile for Xen.
#
# Default target must appear before any include lines
.PHONY: all
all: dist
export XEN_ROOT=$(CURDIR)
include Config.mk
SUBARCH := $(subst x86_32,i386,$(XEN_TARGET_ARCH))
export XEN_TARGET_ARCH SUBARCH XEN_SYSTYPE
include buildconfigs/Rules.mk
ifeq ($(XEN_TARGET_X86_PAE),y)
export pae=y
endif
# build and install everything into the standard system directories
.PHONY: install
install: install-xen install-kernels install-tools install-docs
.PHONY: build
build: kernels
$(MAKE) -C xen build
$(MAKE) -C tools build
$(MAKE) -C docs build
# The test target is for unit tests that can run without an installation. Of
# course, many tests require a machine running Xen itself, and these are
# handled elsewhere.
.PHONY: test
test:
$(MAKE) -C tools/python test
# build and install everything into local dist directory
.PHONY: dist
dist: DESTDIR=$(DISTDIR)/install
dist: dist-xen dist-kernels dist-tools dist-docs
$(INSTALL_DIR) $(DISTDIR)/check
$(INSTALL_DATA) ./COPYING $(DISTDIR)
$(INSTALL_DATA) ./README $(DISTDIR)
$(INSTALL_PROG) ./install.sh $(DISTDIR)
$(INSTALL_PROG) tools/check/chk tools/check/check_* $(DISTDIR)/check
dist-%: DESTDIR=$(DISTDIR)/install
dist-%: install-%
@: # do nothing
# Legacy dist targets
.PHONY: xen tools kernels docs
xen: dist-xen
tools: dist-tools
kernels: dist-kernels
docs: dist-docs
.PHONY: prep-kernels
prep-kernels:
for i in $(XKERNELS) ; do $(MAKE) $$i-prep || exit 1; done
.PHONY: install-xen
install-xen:
$(MAKE) -C xen install
.PHONY: install-tools
install-tools:
$(MAKE) -C tools install
.PHONY: install-kernels
install-kernels:
for i in $(XKERNELS) ; do $(MAKE) $$i-install || exit 1; done
.PHONY: install-docs
install-docs:
sh ./docs/check_pkgs && $(MAKE) -C docs install || true
.PHONY: dev-docs
dev-docs:
$(MAKE) -C docs dev-docs
# Build all the various kernels and modules
.PHONY: kbuild
kbuild: kernels
# Delete the kernel build trees entirely
.PHONY: kdelete
kdelete:
for i in $(XKERNELS) ; do $(MAKE) $$i-delete ; done
# Clean the kernel build trees
.PHONY: kclean
kclean:
for i in $(XKERNELS) ; do $(MAKE) $$i-clean ; done
# build xen, the tools, and a domain 0 plus unprivileged linux-xen images,
# and place them in the install directory. 'make install' should then
# copy them to the normal system directories
.PHONY: world
world:
$(MAKE) clean
$(MAKE) kdelete
$(MAKE) dist
# clean doesn't do a kclean
.PHONY: clean
clean::
$(MAKE) -C xen clean
$(MAKE) -C tools clean
$(MAKE) -C docs clean
# clean, but blow away kernel build tree plus tarballs
.PHONY: distclean
distclean:
$(MAKE) -C xen distclean
$(MAKE) -C tools distclean
$(MAKE) -C docs distclean
rm -rf dist patches/tmp
for i in $(ALLKERNELS) ; do $(MAKE) $$i-delete ; done
rm -rf patches/*/.makedep
# Linux name for GNU distclean
.PHONY: mrproper
mrproper: distclean
.PHONY: help
help:
@echo 'Installation targets:'
@echo ' install - build and install everything'
@echo ' install-xen - build and install the Xen hypervisor'
@echo ' install-tools - build and install the control tools'
@echo ' install-kernels - build and install guest kernels'
@echo ' install-docs - build and install user documentation'
@echo ''
@echo 'Building targets:'
@echo ' dist - build and install everything into local dist directory'
@echo ' world - clean everything, delete guest kernel build'
@echo ' trees then make dist'
@echo ' xen - build and install Xen hypervisor'
@echo ' tools - build and install tools'
@echo ' kernels - build and install guest kernels'
@echo ' kbuild - synonym for make kernels'
@echo ' docs - build and install user documentation'
@echo ' dev-docs - build developer-only documentation'
@echo ''
@echo 'Cleaning targets:'
@echo ' clean - clean the Xen, tools and docs (but not guest kernel trees)'
@echo ' distclean - clean plus delete kernel build trees and'
@echo ' local downloaded files'
@echo ' kdelete - delete guest kernel build trees'
@echo ' kclean - clean guest kernel build trees'
@echo ''
@echo 'Miscellaneous targets:'
@echo ' prep-kernels - prepares kernel directories, does not build'
@echo ' uninstall - attempt to remove installed Xen tools'
@echo ' (use with extreme care!)'
@echo
@echo 'Environment:'
@echo ' XEN_PYTHON_NATIVE_INSTALL=y'
@echo ' - native python install or dist'
@echo ' install into prefix/lib/python<VERSION>'
@echo ' instead of <PREFIX>/lib/python'
@echo ' true if set to non-empty value, false otherwise'
# Use this target with extreme care!
.PHONY: uninstall
uninstall: D=$(DESTDIR)
uninstall:
[ -d $(D)/etc/xen ] && mv -f $(D)/etc/xen $(D)/etc/xen.old-`date +%s` || true
rm -rf $(D)/etc/init.d/xend*
rm -rf $(D)/etc/hotplug/xen-backend.agent
rm -f $(D)/etc/udev/rules.d/xen-backend.rules
rm -f $(D)/etc/udev/xen-backend.rules
rm -f $(D)/etc/sysconfig/xendomains
rm -rf $(D)/var/run/xen* $(D)/var/lib/xen*
rm -rf $(D)/boot/*xen*
rm -rf $(D)/lib/modules/*xen*
rm -rf $(D)/usr/bin/xen* $(D)/usr/bin/lomount
rm -rf $(D)/usr/bin/cpuperf-perfcntr $(D)/usr/bin/cpuperf-xen
rm -rf $(D)/usr/bin/xc_shadow
rm -rf $(D)/usr/bin/pygrub
rm -rf $(D)/usr/bin/setsize $(D)/usr/bin/tbctl
rm -rf $(D)/usr/bin/xsls
rm -rf $(D)/usr/include/xenctrl.h $(D)/usr/include/xenguest.h
rm -rf $(D)/usr/include/xs_lib.h $(D)/usr/include/xs.h
rm -rf $(D)/usr/include/xen
rm -rf $(D)/usr/$(LIBDIR)/libxenctrl* $(D)/usr/$(LIBDIR)/libxenguest*
rm -rf $(D)/usr/$(LIBDIR)/libxenstore*
rm -rf $(D)/usr/$(LIBDIR)/python/xen $(D)/usr/$(LIBDIR)/python/grub
rm -rf $(D)/usr/$(LIBDIR)/xen/
rm -rf $(D)/usr/lib/xen/
rm -rf $(D)/usr/local/sbin/setmask $(D)/usr/local/sbin/xen*
rm -rf $(D)/usr/sbin/xen* $(D)/usr/sbin/netfix $(D)/usr/sbin/xm
rm -rf $(D)/usr/share/doc/xen
rm -rf $(D)/usr/share/xen
rm -rf $(D)/usr/share/man/man1/xen*
rm -rf $(D)/usr/share/man/man8/xen*
# Legacy targets for compatibility
.PHONY: linux26
linux26:
$(MAKE) 'KERNELS=linux-2.6*' kernels
|