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
|
2018-06-17 09:08:51 +00:00
|
|
|
PKG_VERSION:=0.173
|
2015-06-14 17:43:40 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
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)
|
2018-06-17 09:08:51 +00:00
|
|
|
PKG_HASH:=b76d8c133f68dad46250f5c223482c8299d454a69430d9aa5c19123345a000ff
|
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/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libasm
|
|
|
|
$(call Package/elfutils/Default)
|
|
|
|
TITLE+= (libasm)
|
2016-10-14 00:02:47 +00:00
|
|
|
DEPENDS:=libelf1 +libdw
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdw
|
|
|
|
$(call Package/elfutils/Default)
|
2016-01-20 13:54:13 +00:00
|
|
|
DEPENDS:=libelf1 +libbz2
|
2015-06-14 17:43:40 +00:00
|
|
|
TITLE+= (libdw)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libelf1
|
|
|
|
$(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)
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BUILD_NLS),y)
|
|
|
|
TARGET_LDFLAGS += "-lintl"
|
|
|
|
endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2018-06-17 09:08:51 +00:00
|
|
|
--program-prefix=eu- \
|
|
|
|
--disable-nls \
|
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/
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libasm/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2018-07-24 18:32:20 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libasm*.so* $(1)/usr/lib/
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdw/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2018-07-24 18:32:20 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdw*.so* $(1)/usr/lib/
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libelf1/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2018-07-24 18:32:20 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf*.so* $(1)/usr/lib/
|
2015-06-14 17:43:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libasm))
|
|
|
|
$(eval $(call BuildPackage,libdw))
|
|
|
|
$(eval $(call BuildPackage,libelf1))
|