all: dist
-include config/Toplevel.mk
-SUBSYSTEMS?=xen tools stubdom docs
+SUBSYSTEMS?=xen tools docs
TARGS_DIST=$(patsubst %, dist-%, $(SUBSYSTEMS))
TARGS_INSTALL=$(patsubst %, install-%, $(SUBSYSTEMS))
TARGS_BUILD=$(patsubst %, build-%, $(SUBSYSTEMS))
export XEN_ROOT=$(CURDIR)
include Config.mk
-.PHONY: mini-os-dir
-mini-os-dir:
- if [ ! -d $(XEN_ROOT)/extras/mini-os ]; then \
- GIT=$(GIT) $(XEN_ROOT)/scripts/git-checkout.sh \
- $(MINIOS_UPSTREAM_URL) \
- $(MINIOS_UPSTREAM_REVISION) \
- $(XEN_ROOT)/extras/mini-os ; \
- fi
-
-.PHONY: mini-os-dir-force-update
-mini-os-dir-force-update: mini-os-dir
- set -ex; \
- if [ "$(MINIOS_UPSTREAM_REVISION)" ]; then \
- cd extras/mini-os-remote; \
- $(GIT) fetch origin; \
- $(GIT) reset --hard $(MINIOS_UPSTREAM_REVISION); \
- fi
-
export XEN_TARGET_ARCH
export DESTDIR
build-tools:
$(MAKE) -C tools build
-.PHONY: build-stubdom
-build-stubdom: mini-os-dir
- $(MAKE) -C stubdom build
-ifeq (x86_64,$(XEN_TARGET_ARCH))
- XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom pv-grub
-endif
-
.PHONY: build-docs
build-docs:
$(MAKE) -C docs build
@: # do nothing
# Legacy dist targets
-.PHONY: xen tools stubdom docs
+.PHONY: xen tools docs
xen: dist-xen
tools: dist-tools
-stubdom: dist-stubdom
docs: dist-docs
.PHONY: install-xen
install-tools:
$(MAKE) -C tools install
-.PHONY: install-stubdom
-install-stubdom: install-tools mini-os-dir
- $(MAKE) -C stubdom install
-ifeq (x86_64,$(XEN_TARGET_ARCH))
- XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom install-grub
-endif
-
.PHONY: tools/firmware/seabios-dir-force-update
tools/firmware/seabios-dir-force-update:
$(MAKE) -C tools/firmware seabios-dir-force-update
clean-tools:
$(MAKE) -C tools clean
-.PHONY: clean-stubdom
-clean-stubdom:
- $(MAKE) -C stubdom crossclean
-ifeq (x86_64,$(XEN_TARGET_ARCH))
- XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom crossclean
-endif
-
.PHONY: clean-docs
clean-docs:
$(MAKE) -C docs clean
distclean-tools:
$(MAKE) -C tools distclean
-.PHONY: distclean-stubdom
-distclean-stubdom:
- $(MAKE) -C stubdom distclean
-ifeq (x86_64,$(XEN_TARGET_ARCH))
- XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom distclean
-endif
- rm -rf extras/mini-os extras/mini-os-remote
-
.PHONY: distclean-docs
distclean-docs:
$(MAKE) -C docs distclean
@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-stubdom - build and install the stubdomain images'
@echo ' install-docs - build and install user documentation'
@echo ''
@echo 'Local dist targets:'
@echo ' world - clean everything then make dist'
@echo ' dist-xen - build Xen hypervisor and install into local dist'
@echo ' dist-tools - build the tools and install into local dist'
- @echo ' dist-stubdom - build the stubdomain images and install into local dist'
@echo ' dist-docs - build user documentation and install into local dist'
@echo ''
@echo 'Building targets:'
@echo ' build - build everything'
@echo ' build-xen - build Xen hypervisor'
@echo ' build-tools - build the tools'
- @echo ' build-stubdom - build the stubdomain images'
@echo ' build-docs - build user documentation'
@echo ''
@echo 'Cleaning targets:'
autoconf -f
autoheader
)
-( cd stubdom
- autoconf -f
-)
( cd docs
autoconf -f
)
+++ /dev/null
--include $(XEN_ROOT)/config/Paths.mk
-
-# Path Programs
-CMAKE := @CMAKE@
-FETCHER := @FETCHER@
-
-# A debug build of stubdom? //FIXME: Someone make this do something
-debug := @debug@
-
-STUBDOM_TARGETS := @STUBDOM_TARGETS@
-STUBDOM_BUILD := @STUBDOM_BUILD@
-STUBDOM_INSTALL := @STUBDOM_INSTALL@
-
-ZLIB_VERSION := @ZLIB_VERSION@
-ZLIB_URL := @ZLIB_URL@
-
-LIBPCI_VERSION := @LIBPCI_VERSION@
-LIBPCI_URL := @LIBPCI_URL@
-
-NEWLIB_VERSION := @NEWLIB_VERSION@
-NEWLIB_URL := @NEWLIB_URL@
-
-LWIP_VERSION := @LWIP_VERSION@
-LWIP_URL := @LWIP_URL@
-
-GRUB_VERSION := @GRUB_VERSION@
-GRUB_URL := @GRUB_URL@
-
-OCAML_VERSION := @OCAML_VERSION@
-OCAML_URL := @OCAML_URL@
-
-GMP_VERSION := @GMP_VERSION@
-GMP_URL := @GMP_URL@
-
-POLARSSL_VERSION := @POLARSSL_VERSION@
-POLARSSL_URL := @POLARSSL_URL@
-
-TPMEMU_VERSION := @TPMEMU_VERSION@
-TPMEMU_URL := @TPMEMU_URL@
LIBOBJS
SUBSYSTEMS
docs
-stubdom
tools
xen
subdirs
with_xen_dumpdir
enable_xen
enable_tools
-enable_stubdom
enable_docs
'
ac_precious_vars='build_alias
target_alias'
ac_subdirs_all='xen
tools
-stubdom
docs'
# Initialize some variables set by options.
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-xen Disable build and install of xen
--disable-tools Disable build and install of tools
- --enable-stubdom Enable build and install of stubdom
--disable-docs Disable build and install of docs
Optional Packages:
-case "$host_cpu" in
- i[3456]86|x86_64)
- arch_enable_stubdom=y
- ;;
- *)
- arch_enable_stubdom=n
- ;;
-esac
-
-case "$host_os" in
- freebsd*)
- arch_enable_stubdom=n
- ;;
-esac
-
-# Check whether --enable-stubdom was given.
-if test "${enable_stubdom+set}" = set; then :
- enableval=$enable_stubdom;
-
-if test "x$enableval" = "xyes"; then :
-
-
-stubdom=y
-SUBSYSTEMS="$SUBSYSTEMS stubdom"
-
-
-else
-
-if test "x$enableval" = "xno"; then :
-
-
-stubdom=n
-
-
-fi
-
-fi
-
-
-else
-
-if test "x$arch_enable_stubdom" = "xy"; then :
-
-
-stubdom=y
-SUBSYSTEMS="$SUBSYSTEMS stubdom"
-
-
-else
-
-
-stubdom=n
-
-
-fi
-
-fi
-
-
-if test -e "stubdom/configure"; then :
-
-if test "x$stubdom" = "xy" || test "x$stubdom" = "x" ; then
- subdirs="$subdirs stubdom"
-
-fi
-
-fi
-
-
-
-
# Check whether --enable-docs was given.
if test "${enable_docs+set}" = set; then :
enableval=$enable_docs;
AX_XEN_EXPAND_CONFIG()
-dnl mini-os is only ported to certain platforms
-case "$host_cpu" in
- i[[3456]]86|x86_64)
- arch_enable_stubdom=y
- ;;
- *)
- arch_enable_stubdom=n
- ;;
-esac
-
-dnl Stubdomains need some work in order to compile on FreeBSD
-case "$host_os" in
- freebsd*)
- arch_enable_stubdom=n
- ;;
-esac
-
AX_SUBSYSTEM_DEFAULT_ENABLE([xen])
AX_SUBSYSTEM_DEFAULT_ENABLE([tools])
-AX_SUBSYSTEM_CONDITIONAL([stubdom], $arch_enable_stubdom)
AX_SUBSYSTEM_DEFAULT_ENABLE([docs])
AX_SUBSYSTEM_FINISH
+++ /dev/null
-AC_DEFUN([AX_STUBDOM_DEFAULT_ENABLE], [
-AC_ARG_ENABLE([$1],
-AS_HELP_STRING([--disable-$1], [Build and install $1 (default is ENABLED)]),[
-AX_STUBDOM_INTERNAL([$1], [$2])
-],[
-AX_ENABLE_STUBDOM([$1], [$2])
-])
-AC_SUBST([$2])
-])
-
-AC_DEFUN([AX_STUBDOM_DEFAULT_DISABLE], [
-AC_ARG_ENABLE([$1],
-AS_HELP_STRING([--enable-$1], [Build and install $1 (default is DISABLED)]),[
-AX_STUBDOM_INTERNAL([$1], [$2])
-],[
-AX_DISABLE_STUBDOM([$1], [$2])
-])
-AC_SUBST([$2])
-])
-
-AC_DEFUN([AX_STUBDOM_CONDITIONAL], [
-AC_ARG_ENABLE([$1],
-AS_HELP_STRING([--enable-$1], [Build and install $1]),[
-AX_STUBDOM_INTERNAL([$1], [$2])
-])
-])
-
-AC_DEFUN([AX_STUBDOM_CONDITIONAL_FINISH], [
-AS_IF([test "x$$2" = "xy" || test "x$$2" = "x"], [
-AX_ENABLE_STUBDOM([$1],[$2])
-],[
-AX_DISABLE_STUBDOM([$1],[$2])
-])
-AC_SUBST([$2])
-])
-
-AC_DEFUN([AX_STUBDOM_AUTO_DEPENDS], [
-AS_IF([test "x$$1" = "x" && test "x$$2" = "xn"], [
-$1="n"
-])
-])
-
-
-AC_DEFUN([AX_ENABLE_STUBDOM], [
-$2=y
-STUBDOM_TARGETS="$STUBDOM_TARGETS $2"
-STUBDOM_BUILD="$STUBDOM_BUILD $1"
-STUBDOM_INSTALL="$STUBDOM_INSTALL install-$2"
-])
-
-AC_DEFUN([AX_DISABLE_STUBDOM], [
-$2=n
-])
-
-dnl Don't call this outside of this file
-AC_DEFUN([AX_STUBDOM_INTERNAL], [
-AS_IF([test "x$enableval" = "xyes"], [
-AX_ENABLE_STUBDOM([$1], [$2])
-],[
-AS_IF([test "x$enableval" = "xno"],[
-AX_DISABLE_STUBDOM([$1], [$2])
-])
-])
-])
-
-AC_DEFUN([AX_STUBDOM_FINISH], [
-AC_SUBST(STUBDOM_TARGETS)
-AC_SUBST(STUBDOM_BUILD)
-AC_SUBST(STUBDOM_INSTALL)
-echo "Will build the following stub domains:"
-for x in $STUBDOM_BUILD; do
- echo " $x"
-done
-])
-
-AC_DEFUN([AX_STUBDOM_LIB], [
-AC_ARG_VAR([$1_URL], [Download url for $2])
-AS_IF([test "x$$1_URL" = "x"], [
- AS_IF([test "x$extfiles" = "xy"],
- [$1_URL=\@S|@\@{:@XEN_EXTFILES_URL\@:}@],
- [$1_URL="$4"])
- ])
-$1_VERSION="$3"
-AC_SUBST($1_URL)
-AC_SUBST($1_VERSION)
-])
-
-AC_DEFUN([AX_STUBDOM_LIB_NOEXT], [
-AC_ARG_VAR([$1_URL], [Download url for $2])
-AS_IF([test "x$$1_URL" = "x"], [
- $1_URL="$4"
- ])
-$1_VERSION="$3"
-AC_SUBST($1_URL)
-AC_SUBST($1_VERSION)
-])