perf: simplify the build process
Redirect the build output to PKG_BUILD_DIR instead of copying over complete source code. Build tested on following targets: x86/64 ar7/generic ipq40xx/generic imx6/generic ar71xx/generic ramips/mt7621 ramips/mt7620 sunxi/cortexa7 Run tested on imx6/apalis. Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
parent
57d096e2a9
commit
16ac5c4fbd
@ -36,10 +36,6 @@ define Package/perf/description
|
|||||||
perf is the Linux performance monitoring tool
|
perf is the Linux performance monitoring tool
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
|
||||||
$(CP) $(LINUX_DIR)/tools/perf/* $(PKG_BUILD_DIR)/
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKE_FLAGS = \
|
MAKE_FLAGS = \
|
||||||
ARCH="$(LINUX_KARCH)" \
|
ARCH="$(LINUX_KARCH)" \
|
||||||
NO_LIBPERL=1 \
|
NO_LIBPERL=1 \
|
||||||
@ -59,13 +55,13 @@ MAKE_FLAGS = \
|
|||||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \
|
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \
|
||||||
WERROR=0 \
|
WERROR=0 \
|
||||||
|
O=$(PKG_BUILD_DIR) \
|
||||||
prefix=/usr
|
prefix=/usr
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
+$(MAKE_FLAGS) $(MAKE) $(PKG_JOBS) \
|
+$(MAKE_FLAGS) $(MAKE) $(PKG_JOBS) \
|
||||||
-C $(PKG_BUILD_DIR) \
|
--no-print-directory \
|
||||||
-f Makefile.perf \
|
-C $(LINUX_DIR)/tools/perf
|
||||||
--no-print-directory
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/perf/install
|
define Package/perf/install
|
||||||
|
Loading…
Reference in New Issue
Block a user