2015-06-14 17:43:40 +00:00
|
|
|
#
|
2019-08-19 03:09:05 +00:00
|
|
|
# Copyright (C) 2010-2019 OpenWrt.org
|
2015-06-14 17:43:40 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=elfutils
|
2020-07-11 18:26:14 +00:00
|
|
|
PKG_VERSION:=0.180
|
2021-02-24 16:52:22 +00:00
|
|
|
PKG_RELEASE:=2
|
2015-06-14 17:43:40 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2016-12-29 03:53:45 +00:00
|
|
|
PKG_SOURCE_URL:=https://sourceware.org/$(PKG_NAME)/ftp/$(PKG_VERSION)
|
2020-07-11 18:26:14 +00:00
|
|
|
PKG_HASH:=b827b6e35c59d188ba97d7cf148fa8dc6f5c68eb6c5981888dfdbb758c0b569d
|
2019-09-05 23:57:39 +00:00
|
|
|
|
2015-06-14 17:43:40 +00:00
|
|
|
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
2019-09-05 23:57:39 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2015-06-14 17:43:40 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:elfutils_project:elfutils
|
2015-06-14 17:43:40 +00:00
|
|
|
|
2019-09-05 23:57:39 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2015-06-14 17:43:40 +00:00
|
|
|
PKG_INSTALL:=1
|
2021-02-24 16:52:22 +00:00
|
|
|
PKG_USE_MIPS16:=1
|
2019-09-05 23:57:39 +00:00
|
|
|
PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
|
2015-06-14 17:43:40 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
|
|
|
|
define Package/elfutils/Default
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=ELF manipulation libraries
|
|
|
|
URL:=https://fedorahosted.org/elfutils/
|
2019-01-22 18:17:32 +00:00
|
|
|
ABI_VERSION:=1
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libasm
|
|
|
|
$(call Package/elfutils/Default)
|
|
|
|
TITLE+= (libasm)
|
2019-02-10 13:45:32 +00:00
|
|
|
DEPENDS:=+libelf +libdw
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdw
|
|
|
|
$(call Package/elfutils/Default)
|
2019-02-10 13:45:32 +00:00
|
|
|
DEPENDS:=+libelf +libbz2
|
2015-06-14 17:43:40 +00:00
|
|
|
TITLE+= (libdw)
|
|
|
|
endef
|
|
|
|
|
2019-01-24 11:52:23 +00:00
|
|
|
define Package/libelf
|
2015-06-14 17:43:40 +00:00
|
|
|
$(call Package/elfutils/Default)
|
2016-01-20 13:54:13 +00:00
|
|
|
DEPENDS:=$(INTL_DEPENDS) +zlib
|
2015-06-14 17:43:40 +00:00
|
|
|
TITLE+= (libelf)
|
2019-01-24 11:52:23 +00:00
|
|
|
PROVIDES:=libelf1
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BUILD_NLS),y)
|
2018-12-20 07:04:46 +00:00
|
|
|
TARGET_LDFLAGS += -lintl
|
|
|
|
else
|
|
|
|
CONFIGURE_ARGS += --disable-nls
|
2015-06-14 17:43:40 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2018-06-17 09:08:51 +00:00
|
|
|
--program-prefix=eu- \
|
2020-04-06 02:02:38 +00:00
|
|
|
--disable-debuginfod \
|
2015-06-14 17:43:40 +00:00
|
|
|
--without-lzma
|
|
|
|
|
2017-08-04 11:09:12 +00:00
|
|
|
TARGET_CFLAGS += -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral
|
2016-12-29 03:53:45 +00:00
|
|
|
|
2015-06-14 17:43:40 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2018-07-24 18:32:20 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libasm*.{a,so*} $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdw*.{a,so*} $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf*.{a,so*} $(1)/usr/lib/
|
2018-11-24 00:40:24 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libelf.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libdw.pc $(1)/usr/lib/pkgconfig/
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libasm/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-02-26 13:05:07 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libasm{-*.so,*.so.*} $(1)/usr/lib/
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdw/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-02-26 13:05:07 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdw{-*.so,*.so.*} $(1)/usr/lib/
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
2019-01-24 11:52:23 +00:00
|
|
|
define Package/libelf/install
|
2015-06-14 17:43:40 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-01-25 17:57:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf{-*.so,*.so.*} $(1)/usr/lib/
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-15 23:03:28 +00:00
|
|
|
# these lines need to be ordered by dependency because of ABI versioning
|
2019-01-24 11:52:23 +00:00
|
|
|
$(eval $(call BuildPackage,libelf))
|
2021-02-15 23:03:28 +00:00
|
|
|
$(eval $(call BuildPackage,libdw))
|
|
|
|
$(eval $(call BuildPackage,libasm))
|