mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

* dwarves: bump to 1.25 * tools: update elf.h OpenWrt contains a 2012 copy of glibc's elf.h, which predates the introduction of some newer architectures like Arm64 and RISC-V. Linux 5.13 introduced the "gen-hyprel" tool into the kernel compile (when virtualization/KVM is enabled) which requires EM_AARCH64 to be defined. arch/arm64/kvm/hyp/nvhe/gen-hyprel.c: In function 'init_elf': arch/arm64/kvm/hyp/nvhe/gen-hyprel.c:289:43: error: 'EM_AARCH64' undeclared (first use in this function); did you mean 'EM_IA_64'? 289 | assert_eq(elf16toh(elf.ehdr->e_machine), EM_AARCH64, "%u"); | ^~~~~~~~~~ Update the copy of elf.h from the latest glibc to fix this. Compile-tested: ath79, armvirt, mpc85xx, x86 Run-tested: armvirt Signed-off-by: Mathew McBride <matt@traverse.com.au> --------- Signed-off-by: Mathew McBride <matt@traverse.com.au> Co-authored-by: Mathew McBride <matt@traverse.com.au>
36 lines
1021 B
Makefile
36 lines
1021 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=dwarves
|
|
PKG_VERSION:=1.25
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=https://fedorapeople.org/~acme/dwarves/
|
|
PKG_HASH:=e7d45955f6f4eca25a4c8c3bd6611059b35dc217e45976681d7db170fccdec4a
|
|
|
|
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))
|