# -*-makefile-*- # # Copyright (C) 2003 by Benedikt Spranger # 2003 by Auerswald GmbH & Co. KG, Schandelah, Germany # 2003-2009 by Pengutronix e.K., Hildesheim, Germany # 2010 by Marc Kleine-Budde # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # PACKAGES-$(PTXCONF_OPROFILE) += oprofile # # Paths and names # OPROFILE_VERSION := 0.9.6 OPROFILE := oprofile-$(OPROFILE_VERSION) OPROFILE_SUFFIX := tar.gz OPROFILE_URL := $(PTXCONF_SETUP_SFMIRROR)/oprofile/$(OPROFILE).$(OPROFILE_SUFFIX) OPROFILE_SOURCE := $(SRCDIR)/$(OPROFILE).$(OPROFILE_SUFFIX) OPROFILE_DIR := $(BUILDDIR)/$(OPROFILE) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- $(OPROFILE_SOURCE): @$(call targetinfo) @$(call get, OPROFILE) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- OPROFILE_AUTOCONF := \ $(CROSS_AUTOCONF_USR) \ --target=$(PTXCONF_GNU_TARGET) \ --with-kernel-support \ --without-x # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/oprofile.targetinstall: @$(call targetinfo) @$(call install_init, oprofile) @$(call install_fixup, oprofile,PACKAGE,oprofile) @$(call install_fixup, oprofile,PRIORITY,optional) @$(call install_fixup, oprofile,VERSION,$(OPROFILE_VERSION)) @$(call install_fixup, oprofile,SECTION,base) @$(call install_fixup, oprofile,AUTHOR,"Robert Schwebel ") @$(call install_fixup, oprofile,DEPENDS,) @$(call install_fixup, oprofile,DESCRIPTION,missing) @$(call install_copy, oprofile, 0, 0, 0755, -, \ /usr/bin/opcontrol) @$(call install_copy, oprofile, 0, 0, 0755, -, \ /usr/bin/ophelp) @$(call install_copy, oprofile, 0, 0, 0755, -, \ /usr/bin/opreport) @$(call install_copy, oprofile, 0, 0, 0755, -, \ /usr/bin/oprofiled) @cd $(OPROFILE_PKGIDR) && \ find usr/share/oprofile -type f | while read file; do \ $(call install_copy, oprofile, 0, 0, 0644, -, /$${file}) \ done @$(call install_finish, oprofile) @$(call touch) # vim: syntax=make