perf: fix parallel build support, explicitly disable more library dependencies

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48066
This commit is contained in:
Felix Fietkau 2016-01-02 14:47:48 +00:00
parent 636a22cae2
commit d3e233f02c
1 changed files with 13 additions and 1 deletions

View File

@ -13,6 +13,7 @@ PKG_VERSION:=$(LINUX_VERSION)
PKG_RELEASE:=2 PKG_RELEASE:=2
PKG_USE_MIPS16:=0 PKG_USE_MIPS16:=0
PKG_BUILD_PARALLEL:=1
# Perf's makefile and headers are not relocatable and must be built from the # Perf's makefile and headers are not relocatable and must be built from the
# Linux sources directory # Linux sources directory
@ -43,15 +44,26 @@ MAKE_FLAGS = \
NO_LIBPYTHON=1 \ NO_LIBPYTHON=1 \
NO_NEWT=1 \ NO_NEWT=1 \
NO_LZMA=1 \ NO_LZMA=1 \
NO_BACKTRACE=1 \
NO_LIBNUMA=1 \
NO_GTK2=1 \
NO_LIBAUDIT=1 \
CROSS_COMPILE="$(TARGET_CROSS)" \ CROSS_COMPILE="$(TARGET_CROSS)" \
CC="$(TARGET_CC)" \ CC="$(TARGET_CC)" \
LD="$(TARGET_CROSS)ld" \ LD="$(TARGET_CROSS)ld" \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \
WERROR=0 \ WERROR=0 \
V=1 \
prefix=/usr prefix=/usr
define Build/Compile
+$(MAKE_FLAGS) $(MAKE) $(PKG_JOBS) \
-C $(PKG_BUILD_DIR) \
-f Makefile.perf \
--no-print-directory
endef
define Package/perf/install define Package/perf/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/perf $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/perf $(1)/usr/bin/