From 21afb1adfbee1665dc4bd6b040e2a61d7d666ab0 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Wed, 8 May 2013 10:23:18 -0400 Subject: [PATCH] Add xenalyze to the build system. Signed-off-by: Konrad Rzeszutek Wilk --- root_image/Makefile | 8 +++++++- sources.mk | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/root_image/Makefile b/root_image/Makefile index b53f5fe..ed7c410 100644 --- a/root_image/Makefile +++ b/root_image/Makefile @@ -188,7 +188,7 @@ distdir: # This target includes all userspace tools and images # It does not include the Linux drivers/modules found in the modulespace target .PHONY: root_image-userspace-install -root_image-userspace-install: $(USERSPACE_INSTALL) add-libs add-bins add-debug-bins tools-install wget-install vim-install rsync-install openssh-install xtt-tools-install netperf-install lvm2-install plymouth-install pciutils-install iscsi-install bridge-utils-install xend-install nfs-install fio-install irqbalance-install pm-utils-install cpufrequtils-install perf-install oprofile-install +root_image-userspace-install: $(USERSPACE_INSTALL) add-libs add-bins add-debug-bins tools-install wget-install vim-install rsync-install openssh-install xtt-tools-install netperf-install lvm2-install plymouth-install pciutils-install iscsi-install bridge-utils-install xend-install nfs-install fio-install irqbalance-install pm-utils-install cpufrequtils-install oprofile-install xenalyze-install rm -rf userspace/man rm -rf userspace/usr/share/man @@ -844,6 +844,12 @@ ifeq ($(RPM_ARCH), x86_64) (cd userspace/usr$(LIBSDIR); ln -fs ../lib/libcpupower.so.0) endif +.PHONY: xenalyze-install +xenalyze-install: + $(MAKE) -j$$(($(NCPUS) * 2)) -C xenalyze + $(INSTALL_PROG) xenalyze/xenalyze userspace/usr/bin/ + $(INSTALL_PROG) xenalyze/dump-raw userspace/usr/bin/ + .PHONY: oprofile-install oprofile-install: if ! [ -e oprofile/config.h ]; then (cd oprofile; ./autogen.sh;./configure --prefix=/usr --with-kernel-support --with-linux=$(LINUX_DST) --enable-gui=no); fi diff --git a/sources.mk b/sources.mk index b82bec2..6a13c16 100644 --- a/sources.mk +++ b/sources.mk @@ -1,6 +1,6 @@ -REPOS = syslinux root_image/busybox root_image/netperf root_image/pciutils root_image/fio root_image/RPMs root_image/pm-utils root_image/kexec-tools xen linux +REPOS = syslinux root_image/busybox root_image/netperf root_image/pciutils root_image/fio root_image/RPMs root_image/pm-utils root_image/kexec-tools xen linux root_image/xenalyze include $(TOP)/scm.mk @@ -40,3 +40,6 @@ $(eval $(call GIT_REPO,xen.git,linux)) GIT_URL=git://git.kernel.org/pub/scm/utils/kernel/kexec/ $(eval $(call GIT_REPO,kexec-tools.git,root_image/kexec-tools)) + +HG_URL=http://xenbits.xen.org/ +$(eval $(call HG_REPO,ext/xenalyze,root_image/xenalyze)) -- 2.39.5