--- Hey guys, I'm pretty sure some of you have such package already written, but I couldn't find it, so started writing it by myself.
Unfrotunately it doesn't work for me, because of: Package perf is missing dependencies for the following libraries: libc.so.6 libcrypt.so.1 libdl.so.2 libm.so.6 libperl.so libpython2.7.so.1.0 librt.so.1 libutil.so.1 Could someone help me with that, please? > grep PACKAGE_libc= .config CONFIG_PACKAGE_libc=y > find ./ -name libc.so* ./staging_dir/target-mipsel_uClibc-0.9.33.2/root-brcm47xx/lib/libc.so.0 ./staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/lib/libc.so.0 ./staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/lib/libc.so ./build_dir/target-mipsel_uClibc-0.9.33.2/toolchain/ipkg-brcm47xx/libc/lib/libc.so.0 ./build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2/lib/libc.so.0 ./build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2/lib/libc.so --- ...1-perf-be-less-restrictive-when-compiling.patch | 25 +++++++++++++++ package/devel/perf/Makefile | 33 ++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 package/devel/perf/0001-perf-be-less-restrictive-when-compiling.patch create mode 100644 package/devel/perf/Makefile diff --git a/package/devel/perf/0001-perf-be-less-restrictive-when-compiling.patch b/package/devel/perf/0001-perf-be-less-restrictive-when-compiling.patch new file mode 100644 index 0000000..c1e54fe --- /dev/null +++ b/package/devel/perf/0001-perf-be-less-restrictive-when-compiling.patch @@ -0,0 +1,25 @@ +From 441c9f80a5a14ceb812f959367101c82c79f783b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]> +Date: Thu, 15 Aug 2013 00:09:22 +0200 +Subject: [PATCH] perf: be less restrictive when compiling + +--- + tools/perf/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/perf/Makefile b/tools/perf/Makefile +index b0f164b..1696f2a 100644 +--- a/tools/perf/Makefile ++++ b/tools/perf/Makefile +@@ -110,7 +110,7 @@ ifdef NO_NEWT + NO_SLANG=1 + endif + +-CFLAGS = -fno-omit-frame-pointer -ggdb3 -funwind-tables -Wall -Wextra -std=gnu99 $(CFLAGS_WERROR) $(CFLAGS_OPTIMIZE) $(EXTRA_WARNINGS) $(EXTRA_CFLAGS) $(PARSER_DEBUG_CFLAGS) ++CFLAGS = -fno-omit-frame-pointer -ggdb3 -funwind-tables -Wall -Wextra -std=gnu99 $(CFLAGS_OPTIMIZE) $(EXTRA_CFLAGS) $(PARSER_DEBUG_CFLAGS) + EXTLIBS = -lpthread -lrt -lelf -lm + ALL_CFLAGS = $(CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE + ALL_LDFLAGS = $(LDFLAGS) +-- +1.7.10.4 + diff --git a/package/devel/perf/Makefile b/package/devel/perf/Makefile new file mode 100644 index 0000000..f3eaeea --- /dev/null +++ b/package/devel/perf/Makefile @@ -0,0 +1,33 @@ +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk + +PKG_NAME:=perf +PKG_RELEASE:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/perf + SECTION:=devel + CATEGORY:=Development + TITLE:=Perf tool + DEPENDS:=+libc +librt +endef + +define Package/perf/description + This package contains a nas utility for... +endef + +define Build/Compile + $(MAKE) -C $(LINUX_DIR)/tools \ + perf +endef + +define Build/InstallDev +endef + +define Package/perf/install + $(INSTALL_DIR) $(1)/sbin + $(INSTALL_BIN) $(LINUX_DIR)/tools/perf/perf $(1)/sbin +endef + +$(eval $(call BuildPackage,perf)) -- 1.7.10.4 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
