poco: moved to github
[packages.git] / utils / kmemtrace-user / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=kmemtrace-user
11 PKG_VERSION:=20100102
12 PKG_RELEASE:=1
13 PKG_REV:=92878e602489d6a6ffd6e50b94f425c3149c86bd
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=git://repo.or.cz/kmemtrace-user.git
17 PKG_SOURCE_SUBDIR:=kmemtrace-user-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_PROTO:=git
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/kmemtrace-user
26   SECTION:=utils
27   CATEGORY:=Utilities
28   TITLE:=trace slab allocator functions
29   URL:=http://repo.or.cz/w/kmemtrace-user.git
30   DEPENDS:=+libpthread
31   KCONFIG:= \
32         CONFIG_KMEMTRACE=y
33 endef
34
35 define Package/kmemtrace-user/description
36  kmemtrace provides tracing for slab allocator functions, such as
37  kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected
38  data is then fed to the userspace application in order to analyse
39  allocation hotspots, internal fragmentation and so on, making it
40  possible to see how well an allocator performs, as well as debug
41  and profile kernel code.
42 endef
43
44 define Build/Configure
45         (cd $(PKG_BUILD_DIR); ./autogen.sh; ./configure );
46         $(call Build/Configure/Default)
47 endef
48
49
50 define Package/kmemtrace-user/install
51         $(INSTALL_DIR) $(1)/usr/sbin
52         $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtrace-check $(1)/usr/sbin/
53         $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtrace-report $(1)/usr/sbin/
54         $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtrace-show $(1)/usr/sbin/
55         $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtraced $(1)/usr/sbin/
56 endef
57
58 $(eval $(call BuildPackage,kmemtrace-user))