OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2011-2013 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 | include $(INCLUDE_DIR)/kernel.mk |
||
10 | |||
11 | PKG_NAME:=perf |
||
12 | PKG_VERSION:=$(LINUX_VERSION) |
||
13 | PKG_RELEASE:=2 |
||
14 | |||
15 | PKG_USE_MIPS16:=0 |
||
16 | PKG_BUILD_PARALLEL:=1 |
||
17 | PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name> |
||
18 | PKG_FLAGS:=nonshared |
||
19 | |||
20 | # Perf's makefile and headers are not relocatable and must be built from the |
||
21 | # Linux sources directory |
||
22 | PKG_BUILD_DIR:=$(LINUX_DIR)/tools/perf-$(TARGET_DIR_NAME) |
||
23 | |||
24 | include $(INCLUDE_DIR)/package.mk |
||
25 | |||
26 | define Package/perf |
||
27 | SECTION:=devel |
||
28 | CATEGORY:=Development |
||
3 | office | 29 | DEPENDS:= +libelf1 +libdw +(mips||mipsel||powerpc||i386||x86_64||arm||aarch64):libunwind +libpthread +librt +objdump @!LINUX_3_18 @!IN_SDK @!TARGET_arc770 @KERNEL_PERF_EVENTS |
1 | office | 30 | TITLE:=Linux performance monitoring tool |
31 | VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE) |
||
32 | URL:=http://www.kernel.org |
||
33 | endef |
||
34 | |||
35 | define Package/perf/description |
||
36 | perf is the Linux performance monitoring tool |
||
37 | endef |
||
38 | |||
39 | define Build/Prepare |
||
40 | $(CP) $(LINUX_DIR)/tools/perf/* $(PKG_BUILD_DIR)/ |
||
41 | endef |
||
42 | |||
43 | MAKE_FLAGS = \ |
||
44 | ARCH="$(LINUX_KARCH)" \ |
||
45 | NO_LIBPERL=1 \ |
||
46 | NO_LIBPYTHON=1 \ |
||
47 | NO_NEWT=1 \ |
||
48 | NO_LZMA=1 \ |
||
49 | NO_BACKTRACE=1 \ |
||
50 | NO_LIBNUMA=1 \ |
||
51 | NO_GTK2=1 \ |
||
52 | NO_LIBAUDIT=1 \ |
||
53 | NO_LIBCRYPTO=1 \ |
||
54 | NO_LIBUNWIND=1 \ |
||
55 | CROSS_COMPILE="$(TARGET_CROSS)" \ |
||
56 | CC="$(TARGET_CC)" \ |
||
57 | LD="$(TARGET_CROSS)ld" \ |
||
58 | CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ |
||
59 | LDFLAGS="$(TARGET_LDFLAGS)" \ |
||
60 | $(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \ |
||
61 | WERROR=0 \ |
||
62 | prefix=/usr |
||
63 | |||
3 | office | 64 | ifdef CONFIG_LINUX_4_4 |
65 | ifdef CONFIG_USE_MUSL |
||
66 | MAKE_FLAGS += EXTRA_CFLAGS="-I$(CURDIR)/musl-include -include $(CURDIR)/musl-compat.h -D__UCLIBC__" |
||
67 | endif |
||
68 | endif |
||
69 | |||
1 | office | 70 | define Build/Compile |
71 | +$(MAKE_FLAGS) $(MAKE) $(PKG_JOBS) \ |
||
72 | -C $(PKG_BUILD_DIR) \ |
||
73 | -f Makefile.perf \ |
||
74 | --no-print-directory |
||
75 | endef |
||
76 | |||
77 | define Package/perf/install |
||
78 | $(INSTALL_DIR) $(1)/usr/bin |
||
79 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/perf $(1)/usr/bin/ |
||
80 | endef |
||
81 | |||
82 | $(eval $(call BuildPackage,perf)) |