projects
/
openwrt
/
staging
/
mkresin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf: Depend on KERNEL_PERF_EVENTS
[openwrt/staging/mkresin.git]
/
package
/
devel
/
perf
/
Makefile
diff --git
a/package/devel/perf/Makefile
b/package/devel/perf/Makefile
index d6db053173bbb4b6f1ba563386a3dac8c3b2731d..5bfcaa69947c7191eee09381225199983dd086f7 100644
(file)
--- a/
package/devel/perf/Makefile
+++ b/
package/devel/perf/Makefile
@@
-14,6
+14,8
@@
PKG_RELEASE:=2
PKG_USE_MIPS16:=0
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
PKG_BUILD_PARALLEL:=1
+PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
+PKG_FLAGS:=nonshared
# Perf's makefile and headers are not relocatable and must be built from the
# Linux sources directory
# Perf's makefile and headers are not relocatable and must be built from the
# Linux sources directory
@@
-24,7
+26,7
@@
include $(INCLUDE_DIR)/package.mk
define Package/perf
SECTION:=devel
CATEGORY:=Development
define Package/perf
SECTION:=devel
CATEGORY:=Development
- DEPENDS:=
@USE_GLIBC +libelf1 +libdw +libpthread +librt +binutils
+ DEPENDS:=
+libelf1 +libdw +libpthread +librt +objdump @!LINUX_3_18 @!IN_SDK @!TARGET_arc770 @KERNEL_PERF_EVENTS
TITLE:=Linux performance monitoring tool
VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
URL:=http://www.kernel.org
TITLE:=Linux performance monitoring tool
VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
URL:=http://www.kernel.org
@@
-48,6
+50,8
@@
MAKE_FLAGS = \
NO_LIBNUMA=1 \
NO_GTK2=1 \
NO_LIBAUDIT=1 \
NO_LIBNUMA=1 \
NO_GTK2=1 \
NO_LIBAUDIT=1 \
+ NO_LIBCRYPTO=1 \
+ NO_LIBUNWIND=1 \
CROSS_COMPILE="$(TARGET_CROSS)" \
CC="$(TARGET_CC)" \
LD="$(TARGET_CROSS)ld" \
CROSS_COMPILE="$(TARGET_CROSS)" \
CC="$(TARGET_CC)" \
LD="$(TARGET_CROSS)ld" \
@@
-57,6
+61,12
@@
MAKE_FLAGS = \
WERROR=0 \
prefix=/usr
WERROR=0 \
prefix=/usr
+ifdef CONFIG_LINUX_4_4
+ifdef CONFIG_USE_MUSL
+ MAKE_FLAGS += EXTRA_CFLAGS="-I$(CURDIR)/musl-include -include $(CURDIR)/musl-compat.h -D__UCLIBC__"
+endif
+endif
+
define Build/Compile
+$(MAKE_FLAGS) $(MAKE) $(PKG_JOBS) \
-C $(PKG_BUILD_DIR) \
define Build/Compile
+$(MAKE_FLAGS) $(MAKE) $(PKG_JOBS) \
-C $(PKG_BUILD_DIR) \