From 36f02e194290bb7b634baf610be479dd9d628e35 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Wed, 20 Jun 2012 13:15:33 -0400 Subject: [PATCH] Makefile: Provide event files for oprofile Signed-off-by: Konrad Rzeszutek Wilk --- root_image/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/root_image/Makefile b/root_image/Makefile index aa5501e..d837fe3 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 directfb-install irqbalance-install pm-utils-install cpufrequtils-install kexec-tools-install oprofile-install perf-install power-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 rm -rf userspace/man rm -rf userspace/usr/share/man @@ -834,9 +834,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 -- 2.39.5