2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/oprofile
/
17 PKG_MD5SUM
:=82b059379895cf125261d7d773465915
19 PKG_BUILD_DEPENDS
:=libbfd
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/kernel.mk
24 define KernelPackage
/oprofile
25 SUBMENU
:=Other modules
26 TITLE
:=OProfile profiling support
27 KCONFIG
:=CONFIG_OPROFILE
28 FILES
:=$(LINUX_DIR
)/arch
/$(LINUX_KARCH
)/oprofile
/oprofile.
$(LINUX_KMOD_SUFFIX
)
29 DEPENDS
:=@KERNEL_PROFILING
32 define KernelPackage
/oprofile
/description
33 Kernel module for support for oprofile system profiling.
36 define Package
/oprofile
39 TITLE
:=OProfile System Profiler
40 URL
:=http
://oprofile.sourceforge.net
41 DEPENDS
:=+libpopt
+kmod-oprofile
+libstdcpp
44 define Package
/oprofile
/description
45 A transparent low-overhead system-wide profiler.
48 define Build
/Configure
49 $(call Build
/Configure
/Default
, \
50 --with-kernel-support \
55 define Package
/oprofile
/install
56 $(INSTALL_DIR
) $(1)/usr
/bin
58 $(PKG_INSTALL_DIR
)/usr
/bin
/* \
61 $(INSTALL_DIR
) $(1)/usr
/lib
/oprofile
63 $(PKG_INSTALL_DIR
)/usr
/lib
/oprofile
/*.so
* \
64 $(1)/usr
/lib
/oprofile
/
66 $(INSTALL_DIR
) $(1)/usr
/share
/oprofile
68 $(PKG_INSTALL_DIR
)/usr
/share
/oprofile
/* \
69 $(1)/usr
/share
/oprofile
/
72 $(eval
$(call BuildPackage
,oprofile
))
73 $(eval
$(call KernelPackage
,oprofile
))