2020-11-24 22:15:09 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=dwarves
|
2024-02-28 23:04:57 +00:00
|
|
|
PKG_VERSION:=1.26
|
2023-04-12 19:50:29 +00:00
|
|
|
PKG_RELEASE:=1
|
2022-10-21 21:24:29 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=https://fedorapeople.org/~acme/dwarves/
|
2024-02-28 23:04:57 +00:00
|
|
|
PKG_HASH:=ad4c08339850e404609e2808012580b7e98366d2b91054bb93fe6dca94651fb4
|
2020-11-24 22:15:09 +00:00
|
|
|
|
|
|
|
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))
|