summaryrefslogtreecommitdiffstats
path: root/rules/oprofile.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-05-06 08:11:13 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-05-06 08:11:13 +0000
commit5c9d1b063cb02a7dc970b90ef1f4c0e5ac8ddd89 (patch)
tree34b824923ac52ec53fefa1d0356845eaade06b30 /rules/oprofile.make
parent41831570680280268efaf41ba323e00c26760cf5 (diff)
downloadptxdist-5c9d1b063cb02a7dc970b90ef1f4c0e5ac8ddd89.tar.gz
ptxdist-5c9d1b063cb02a7dc970b90ef1f4c0e5ac8ddd89.tar.xz
* oprofile.make:
disable X support install all event and mask files git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8118 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/oprofile.make')
-rw-r--r--rules/oprofile.make43
1 files changed, 16 insertions, 27 deletions
diff --git a/rules/oprofile.make b/rules/oprofile.make
index 17b894977..967d1b41d 100644
--- a/rules/oprofile.make
+++ b/rules/oprofile.make
@@ -31,7 +31,7 @@ OPROFILE_DIR := $(BUILDDIR)/$(OPROFILE)
# ----------------------------------------------------------------------------
$(OPROFILE_SOURCE):
- @$(call targetinfo, $@)
+ @$(call targetinfo)
@$(call get, OPROFILE)
# ----------------------------------------------------------------------------
@@ -47,31 +47,22 @@ OPROFILE_ENV := $(CROSS_ENV)
OPROFILE_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
--target=$(PTXCONF_GNU_TARGET) \
-# --disable-sanity-checks
+ --without-x
$(STATEDIR)/oprofile.prepare:
- @$(call targetinfo, $@)
+ @$(call targetinfo)
@$(call clean, $(OPROFILE_DIR)/config.cache)
cd $(OPROFILE_DIR) && \
$(OPROFILE_PATH) $(OPROFILE_ENV) \
./configure $(OPROFILE_AUTOCONF) --with-linux=$(KERNEL_DIR)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Install
-# ----------------------------------------------------------------------------
-
-$(STATEDIR)/oprofile.install:
- @$(call targetinfo, $@)
- @$(call install, OPROFILE)
- @$(call touch, $@)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/oprofile.targetinstall:
- @$(call targetinfo, $@)
+ @$(call targetinfo)
@$(call install_init, oprofile)
@$(call install_fixup, oprofile,PACKAGE,oprofile)
@@ -102,19 +93,17 @@ $(STATEDIR)/oprofile.targetinstall:
/usr/bin/oprofiled \
)
- @$(call install_copy, oprofile, 0, 0, 0755, \
- $(OPROFILE_DIR)/events/arm/xscale2/events, \
- /usr/share/oprofile/arm/xscale2/events, 0 \
- )
-
- @$(call install_copy, oprofile, 0, 0, 0755, \
- $(OPROFILE_DIR)/events/arm/xscale2/unit_masks, \
- /usr/share/oprofile/arm/xscale2/unit_masks, 0 \
- )
-
- @$(call install_finish, oprofile)
-
- @$(call touch, $@)
+ @cd $(OPROFILE_DIR)/events && \
+ find . \
+ -name "events" -o -name "unit_masks" | \
+ while read file; do \
+ $(call install_copy, oprofile, 0, 0, 0755, \
+ $(OPROFILE_DIR)/events/$$file, \
+ /usr/share/oprofile/$$file, 0 \
+ ) \
+ done
+
+ @$(call touch)
# ----------------------------------------------------------------------------
# Clean