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-09-18 04:07:57 +00:00
|
|
|
PKG_VERSION:=0.174
|
2018-12-20 07:04:46 +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)
|
2018-09-18 04:07:57 +00:00
|
|
|
PKG_HASH:=cdf27e70076e10a29539d89e367101d516bc4aa11b0d7777fe52139e3fcad08a
|
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)
|
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
|
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))
|