mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-12 11:21:55 +00:00
Add back updated dwarves packages and disable parallel build
This commit is contained in:
parent
19bb53d02e
commit
1e362acdee
2 changed files with 50 additions and 0 deletions
38
common/tools/dwarves/Makefile
Normal file
38
common/tools/dwarves/Makefile
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=dwarves
|
||||||
|
PKG_VERSION:=1.28
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_BUILD_PARALLEL:=0
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
|
PKG_SOURCE_URL:=https://fedorapeople.org/~acme/dwarves/
|
||||||
|
PKG_HASH:=826efc0fc9237d3c1e9c01553ea387a8cb46e8dc119ff863889043f4ed54b2ae
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Tony Ambardar <itugrok@yahoo.com>
|
||||||
|
PKG_LICENSE:=GPL-2.0-only
|
||||||
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
|
||||||
|
CMAKE_HOST_OPTIONS += \
|
||||||
|
-D__LIB=lib \
|
||||||
|
-DCMAKE_INSTALL_RPATH="$(STAGING_DIR_HOST)/lib" \
|
||||||
|
-DCMAKE_SKIP_RPATH=FALSE
|
||||||
|
|
||||||
|
define Host/Clean
|
||||||
|
$(RM) $(STAGING_DIR_HOST)/bin/{codiff,ctracer,dtagnames,pahole,pdwtags}
|
||||||
|
$(RM) $(STAGING_DIR_HOST)/bin/{pfunct,pglobal,prefcnt,scncopy,syscse}
|
||||||
|
$(RM) $(STAGING_DIR_HOST)/bin/{ostra-cg,btfdiff,fullcircle}
|
||||||
|
$(RM) $(STAGING_DIR_HOST)/lib/libdwarves*.so*
|
||||||
|
$(RM) $(STAGING_DIR_HOST)/share/man/man1/pahole.1
|
||||||
|
rm -rf $(STAGING_DIR_HOST)/include/dwarves
|
||||||
|
rm -rf $(STAGING_DIR_HOST)/share/dwarves
|
||||||
|
$(call Host/Clean/Default)
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call HostBuild))
|
12
common/tools/dwarves/patches/100-reproducible-builds.patch
Normal file
12
common/tools/dwarves/patches/100-reproducible-builds.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
--- a/pahole.c
|
||||||
|
+++ b/pahole.c
|
||||||
|
@@ -3681,6 +3681,9 @@ int main(int argc, char *argv[])
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (getenv("SOURCE_DATE_EPOCH") || getenv("KBUILD_BUILD_TIMESTAMP"))
|
||||||
|
+ conf_load.reproducible_build = true;
|
||||||
|
+
|
||||||
|
if (dwarves__init()) {
|
||||||
|
fputs("pahole: insufficient memory\n", stderr);
|
||||||
|
goto out;
|
Loading…
Reference in a new issue