mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00

* package: sync with upstream Removed: package/libs/libselinux/bcm27xx-userland (Already in package/utils/bcm27xx-userland) Signed-off-by: Linhui Liu <liulinhui36@gmail.com> * uclibc++: remove No package here depends on it. Furthermore, uClibc++ is a fairly buggy C++ library and seems to be relatively inactive upstream. It also lacks proper support for modern C++11 features. The main benefit of it is size: 66.6 KB vs 287.3 KB on mips24kc. Static linking and LTO can help bring the size down of packages that need it. Added warning message to uclibc++.mk Signed-off-by: Rosen Penev <rosenp@gmail.com> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> * target: sync with upstream Signed-off-by: Linhui Liu <liulinhui36@gmail.com> * toolchain: gcc: Remove gcc 10.x support This compiler is old and was never used by default in OpenWrt. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * ucode: update to latest Git HEAD 46d93c9 tests: fixup testcases 4c654df types: adjust double printing format eac2add compiler: fix bytecode for logical assignments of properties 3903b18 fs: add `realpath()` function 8366102 math: add isnan() function eef83d3 tests: relax sleep() test 394e901 lib: uc_json(): accept trailing whitespace when parsing strings 1867c8b uloop: terminate parent uloop in task child processes d2cc003 uci: auto-load package in `ctx.foreach()` and `ctx.get_first()` 6c5ee53 compiler: ensure that arrow functions with block bodies return no value fdc9b6a compiler: fix `??=`, `||=` and `&&=` logical assignment semantics 88dcca7 add cmake to install requires for debian Signed-off-by: Jo-Philipp Wich <jo@mein.io> * firewall4: update to latest Git HEAD 700a925 fw4: prevent null access when no ipsets are defined 6443ec7 config: drop input traffic by default 119ee1a ruleset: drop ctstate invalid traffic for masq-enabled zones Signed-off-by: Jo-Philipp Wich <jo@mein.io> * ustream-ssl: update to Git version 2022-12-07 9217ab4 ustream-openssl: Disable renegotiation in TLSv1.2 and earlier 2ce1d48 ci: fix building with i.MX6 SDK 584f1f6 ustream-openssl: wolfSSL: provide detailed information in debug builds aa8c48e cmake: add a possibility to set library version Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * tools/mpfr: import patch fixing macro bug Co-authored-by: Nick Hainke <vincent@systemli.org> Signed-off-by: Linhui Liu <liulinhui36@gmail.com> Signed-off-by: Linhui Liu <liulinhui36@gmail.com> Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Jo-Philipp Wich <jo@mein.io> Co-authored-by: Rosen Penev <rosenp@gmail.com> Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de> Co-authored-by: Jo-Philipp Wich <jo@mein.io> Co-authored-by: Nick Hainke <vincent@systemli.org>
204 lines
6.2 KiB
Makefile
204 lines
6.2 KiB
Makefile
#
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=valgrind
|
|
PKG_VERSION:=3.20.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=https://sourceware.org/pub/valgrind/
|
|
PKG_HASH:=8536c031dbe078d342f121fa881a9ecd205cb5a78e639005ad570011bdb9f3c6
|
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
PKG_LICENSE:=GPL-2.0+
|
|
PKG_CPE_ID:=cpe:/a:valgrind:valgrind
|
|
|
|
PKG_FIXUP = autoreconf
|
|
PKG_INSTALL := 1
|
|
PKG_BUILD_PARALLEL := 1
|
|
PKG_USE_MIPS16:=0
|
|
PKG_SSP:=0
|
|
|
|
STRIP:=:
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
define Package/valgrind
|
|
SECTION:=devel
|
|
CATEGORY:=Development
|
|
DEPENDS:=@mips||mipsel||mips64||mips64el||i386||x86_64||powerpc||arm_v7||aarch64 +libpthread +librt
|
|
TITLE:=debugging and profiling tools for Linux
|
|
URL:=http://www.valgrind.org
|
|
endef
|
|
|
|
define Package/valgrind/default
|
|
$(Package/valgrind)
|
|
DEPENDS := valgrind
|
|
endef
|
|
|
|
define Package/valgrind-cachegrind
|
|
$(Package/valgrind/default)
|
|
TITLE += (cache profiling)
|
|
endef
|
|
|
|
define Package/valgrind-callgrind
|
|
$(Package/valgrind/default)
|
|
TITLE += (callgraph profiling)
|
|
endef
|
|
|
|
define Package/valgrind-drd
|
|
$(Package/valgrind/default)
|
|
TITLE += (thread error detection)
|
|
endef
|
|
|
|
define Package/valgrind-massif
|
|
$(Package/valgrind/default)
|
|
TITLE += (heap profiling)
|
|
endef
|
|
|
|
define Package/valgrind-helgrind
|
|
$(Package/valgrind/default)
|
|
TITLE += (thread debugging)
|
|
endef
|
|
|
|
define Package/valgrind-vgdb
|
|
$(Package/valgrind/default)
|
|
TITLE += (GDB interface)
|
|
endef
|
|
|
|
define Package/valgrind/description
|
|
Valgrind is an award-winning suite of tools for debugging and
|
|
profiling Linux programs. With the tools that come with Valgrind,
|
|
you can automatically detect many memory management and threading
|
|
bugs, avoiding hours of frustrating bug-hunting, making your
|
|
programs more stable. You can also perform detailed profiling,
|
|
to speed up and reduce memory use of your programs.
|
|
endef
|
|
|
|
CPU := $(patsubst x86_64,amd64,$(patsubst x86,i386,$(patsubst um,$(ARCH),$(LINUX_KARCH))))
|
|
|
|
CONFIGURE_VARS += \
|
|
UNAME_R=$(LINUX_VERSION)
|
|
|
|
ifeq ($(CONFIG_ARCH_64BIT),y)
|
|
CONFIGURE_ARGS += \
|
|
--enable-only64bit
|
|
BITS := 64bit
|
|
else
|
|
CONFIGURE_ARGS += \
|
|
--enable-only32bit
|
|
BITS := 32bit
|
|
endif
|
|
|
|
CONFIGURE_ARGS += \
|
|
--enable-lto \
|
|
--enable-tls \
|
|
--without-x \
|
|
--without-mpicc \
|
|
--without-uiout \
|
|
--disable-valgrindmi \
|
|
--disable-tui \
|
|
--disable-valgrindtk \
|
|
--without-included-gettext \
|
|
--with-pagesize=4 \
|
|
|
|
define Package/valgrind/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/valgrind* $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/usr/lib/valgrind
|
|
$(CP) \
|
|
./files/default.supp \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/none-* \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_core*.so \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/$(BITS)-core*.xml \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/$(BITS)-linux*.xml \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/memcheck-* \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_memcheck*.so \
|
|
$(1)/usr/lib/valgrind/
|
|
|
|
ifneq ($(ARCH),aarch64)
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/$(CPU)-*.xml \
|
|
$(1)/usr/lib/valgrind/
|
|
endif
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/bin
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip -g",$(RSTRIP)) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/none-* \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/memcheck-*
|
|
endef
|
|
|
|
define Package/valgrind-cachegrind/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cg_* $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/usr/lib/valgrind
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/cachegrind-* \
|
|
$(1)/usr/lib/valgrind/
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/bin
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip -g",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/lib/valgrind/cachegrind-*
|
|
endef
|
|
|
|
define Package/valgrind-callgrind/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/callgrind* $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/usr/lib/valgrind
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/callgrind-* \
|
|
$(1)/usr/lib/valgrind/
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/bin
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip -g",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/lib/valgrind/callgrind-*
|
|
endef
|
|
|
|
define Package/valgrind-drd/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/valgrind
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/drd-* \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_drd*.so \
|
|
$(1)/usr/lib/valgrind/
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/bin
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip -g",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/lib/valgrind/drd-*
|
|
endef
|
|
|
|
define Package/valgrind-massif/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ms_print $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/usr/lib/valgrind
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/massif-* \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_massif*.so \
|
|
$(1)/usr/lib/valgrind/
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/bin
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip -g",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/lib/valgrind/massif-*
|
|
endef
|
|
|
|
define Package/valgrind-helgrind/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/valgrind
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/helgrind-* \
|
|
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_helgrind*.so \
|
|
$(1)/usr/lib/valgrind/
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/bin
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip -g",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/lib/valgrind/helgrind-*
|
|
endef
|
|
|
|
define Package/valgrind-vgdb/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vgdb $(1)/usr/bin/
|
|
$(patsubst STRIP=%,STRIP="$(TARGET_CROSS)strip",$(RSTRIP)) $(PKG_INSTALL_DIR)/usr/bin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,valgrind))
|
|
$(eval $(call BuildPackage,valgrind-cachegrind))
|
|
$(eval $(call BuildPackage,valgrind-callgrind))
|
|
$(eval $(call BuildPackage,valgrind-drd))
|
|
$(eval $(call BuildPackage,valgrind-massif))
|
|
$(eval $(call BuildPackage,valgrind-helgrind))
|
|
$(eval $(call BuildPackage,valgrind-vgdb))
|