Author: waldi Date: Thu Apr 28 11:12:59 2011 New Revision: 883 Log: debian/rules.real: Add conditional qemu build. Modified: trunk/xen/debian/rules.real Modified: trunk/xen/debian/rules.real =============================================================================--- trunk/xen/debian/rules.real Thu Apr 28 08:58:25 2011 (r882) +++ trunk/xen/debian/rules.real Thu Apr 28 11:12:59 2011 (r883) @@ -15,6 +15,9 @@ binary-arch-arch: install-lib-dev_$(ARCH) binary-arch-arch: install-libxenstore_$(ARCH) +ifneq ($(wildcard qemu),) + binary-arch-arch: install-qemu_$(ARCH) +endif binary-arch-arch: install-utils_$(ARCH) binary-arch-arch: install-xenstore-utils_$(ARCH) binary-arch-flavour: install-hypervisor_$(ARCH)_$(FLAVOUR) @@ -86,6 +89,13 @@ #strip --remove-section=.comment --remove-section=.note $(INSTALL_DIR)/usr/lib/xen*/boot/* touch $@ +$(STAMPS_DIR)/install-qemu_$(ARCH): DIR = $(BUILD_DIR)/build-utils_$(ARCH) +$(STAMPS_DIR)/install-qemu_$(ARCH): INSTALL_DIR = $(BUILD_DIR)/install-qemu_$(ARCH) +$(STAMPS_DIR)/install-qemu_$(ARCH): $(STAMPS_DIR)/build-utils_$(ARCH) + @rm -rf $(INSTALL_DIR) + +$(MAKE_CLEAN) -C $(DIR)/tools install-ioemu-dir DESTDIR=$(CURDIR)/$(INSTALL_DIR) XEN_VERSION=$(VERSION) + touch $@ + install-base: dh_installchangelogs -XChangelog dh_installdocs @@ -163,6 +173,22 @@ dh_shlibdeps +$(MAKE_SELF) install-base +install-qemu_$(ARCH): DIR = $(BUILD_DIR)/install-qemu_$(ARCH) +install-qemu_$(ARCH): PACKAGE_NAME = xen-qemu-dm-$(VERSION) +install-qemu_$(ARCH): PACKAGE_DIR = debian/$(PACKAGE_NAME) +install-qemu_$(ARCH): DH_OPTIONS = -p$(PACKAGE_NAME) +install-qemu_$(ARCH): $(STAMPS_DIR)/install-qemu_$(ARCH) install-libxenstore_$(ARCH) + dh_testdir + dh_testroot + dh_prep + # XXX: No good idea + dh_install --sourcedir=$(DIR) etc/xen + dh_install --sourcedir=$(DIR) usr/lib/xen-$(VERSION) + dh_strip + dh_makeshlibs -V + dh_shlibdeps + +$(MAKE_SELF) install-base + install-xenstore-utils_$(ARCH): DIR = $(BUILD_DIR)/install-utils_$(ARCH) install-xenstore-utils_$(ARCH): PACKAGE_NAME = xenstore-utils install-xenstore-utils_$(ARCH): DH_OPTIONS = -p$(PACKAGE_NAME)