From: Konrad Rzeszutek Wilk Date: Wed, 20 Jun 2012 17:15:33 +0000 (-0400) Subject: Makefile: Provide event files for oprofile X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=96e2c2b1edc36d35ab426b1bd3f887db29b32e98;p=xentesttools%2Fbootstrap.git Makefile: Provide event files for oprofile Signed-off-by: Konrad Rzeszutek Wilk Conflicts: root_image/Makefile --- diff --git a/root_image/Makefile b/root_image/Makefile index db494e6..5ab51de 100644 --- a/root_image/Makefile +++ b/root_image/Makefile @@ -188,9 +188,9 @@ 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 directfb-install irqbalance-install pm-utils-install cpufrequtils-install kexec-tools-install oprofile-install perf-install power-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 directfb-install irqbalance-install pm-utils-install cpufrequtils-install kexec-tools-install perf-install oprofile-install -root_image-userspace-install: $(USERSPACE_INSTALL) add-libs add-bins tools-install netperf-install +root_image-userspace-install: $(USERSPACE_INSTALL) add-libs add-bins tools-install netperf-install perf-install rm -rf userspace/man rm -rf userspace/usr/share/man rm -rf userspace/usr/share/doc @@ -836,9 +836,12 @@ endif .PHONY: oprofile-install oprofile-install: - if ! [ -e oprofile/config.h ]; then (cd oprofile; ./autogen.sh;./configure --prefix=/usr); fi + if ! [ -e oprofile/config.h ]; then (cd oprofile; ./autogen.sh;./configure --prefix=/usr --with-kenrel-support); fi $(MAKE) $(MFLAGS) -j$$(($(NCPUS) * 2)) -C oprofile $(MAKE) $(MFLAGS) -j$$(($(NCPUS) * 2)) -C oprofile prefix=$(CURDIR)/userspace install + mkdir -p $(CURDIR)/userspace/usr/share/oprofile + cp -rdf oprofile/events/i386 $(CURDIR)/userspace/usr/share/oprofile + cp -rdf oprofile/events/x86-64 $(CURDIR)/userspace/usr/share/oprofile XEN_SRC = $(dir $(CURDIR))xen XEN_DISTDIR = $(dir $(CURDIR))xen/dist/install