2015-06-14 17:43:40 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010-2014 OpenWrt.org
|
2017-05-05 23:05:56 +00:00
|
|
|
# Copyright (C) 2016-2017 Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
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
|
2019-04-24 04:17:29 +00:00
|
|
|
PKG_VERSION:=0.176
|
2019-05-01 17:05:20 +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)
|
2019-04-24 04:17:29 +00:00
|
|
|
PKG_HASH:=eb5747c371b0af0f71e86215a5ebb88728533c3a104a43d4231963f308cd1023
|
2015-06-14 17:43:40 +00:00
|
|
|
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
|
|
|
PKG_LICENSE:=GPL-3.0+
|
|
|
|
PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:elfutils_project:elfutils
|
2018-06-17 09:08:51 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2015-06-14 17:43:40 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_USE_MIPS16:=0
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
|
|
|
|
|
|
|
|
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- \
|
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
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libasm))
|
|
|
|
$(eval $(call BuildPackage,libdw))
|
2019-01-24 11:52:23 +00:00
|
|
|
$(eval $(call BuildPackage,libelf))
|