From 2c333655f154cfd1bc5e983d3c56a10c1a105771 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 24 Feb 2015 12:46:57 +0100 Subject: port elfutils package This is a drop-in replacement for libelf, containing the binutils binaries. TODO: move toolchain over to elfutils, split this package up into library and binaries. --- package/elfutils/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/elfutils/Makefile (limited to 'package/elfutils') diff --git a/package/elfutils/Makefile b/package/elfutils/Makefile new file mode 100644 index 000000000..9e864b808 --- /dev/null +++ b/package/elfutils/Makefile @@ -0,0 +1,33 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= elfutils +PKG_VERSION:= 0.161 +PKG_RELEASE:= 1 +PKG_HASH:= 570c91a1783fa5386aaa2dfdd08dda1de777c2b63bf3b9c1437d635ffdd7a070 +PKG_DESCR:= Libraries/utilities to handle ELF objects (drop in replacement for libelf) +PKG_SECTION:= base/libs +PKG_URL:= https://fedorahosted.org/elfutils/ +PKG_SITES:= https://fedorahosted.org/releases/e/l/elfutils/${PKG_VERSION}/ +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,ELFUTILS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +# not only because we pass -DNDEBUG, this package won't build with -Werror +TARGET_CFLAGS+= -Wno-error + +post-install: + $(INSTALL_DIR) $(IDIR_ELFUTILS)/usr/lib/elfutils + ${CP} ${WRKINST}/usr/lib/lib{asm,dw,elf}*.so* \ + ${IDIR_ELFUTILS}/usr/lib + ${CP} ${WRKINST}/usr/lib/elfutils/libebl*.so \ + ${IDIR_ELFUTILS}/usr/lib/elfutils + ${INSTALL_DIR} ${IDIR_ELFUTILS}/usr/bin + ${INSTALL_BIN} ${WRKINST}/usr/bin/* \ + ${IDIR_ELFUTILS}/usr/bin + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk -- cgit v1.2.3 From 3b7e950a2a226d1344e78da8fb10e3cdb92f37a0 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 28 Feb 2015 10:11:11 +0100 Subject: cleanup phil's submissions - use () instead of {} in make variables for now - use PKG_HASH instead of PKG_MD5SUM - update to latest upstream versions - use a newline between PKG_* variables and DISTFILES - use -install instead of post-install - use lowercase description texts only - fix some missing PKG_BUILDDEP - elfutils needs argp, which is not available in uClibc-ng, yet - PKG_HASH is not required for git sources --- package/elfutils/Makefile | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'package/elfutils') diff --git a/package/elfutils/Makefile b/package/elfutils/Makefile index 9e864b808..825ab10eb 100644 --- a/package/elfutils/Makefile +++ b/package/elfutils/Makefile @@ -7,27 +7,31 @@ PKG_NAME:= elfutils PKG_VERSION:= 0.161 PKG_RELEASE:= 1 PKG_HASH:= 570c91a1783fa5386aaa2dfdd08dda1de777c2b63bf3b9c1437d635ffdd7a070 -PKG_DESCR:= Libraries/utilities to handle ELF objects (drop in replacement for libelf) +PKG_DESCR:= libraries/utilities to handle elf objects (drop in replacement for libelf) PKG_SECTION:= base/libs PKG_URL:= https://fedorahosted.org/elfutils/ -PKG_SITES:= https://fedorahosted.org/releases/e/l/elfutils/${PKG_VERSION}/ -DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 +PKG_SITES:= https://fedorahosted.org/releases/e/l/elfutils/$(PKG_VERSION)/ + +# require argp() +PKG_LIBC_DEPENDS:= glibc + +DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2 include $(ADK_TOPDIR)/mk/package.mk -$(eval $(call PKG_template,ELFUTILS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,ELFUTILS,elfutils,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION))) # not only because we pass -DNDEBUG, this package won't build with -Werror TARGET_CFLAGS+= -Wno-error -post-install: +elfutils-install: $(INSTALL_DIR) $(IDIR_ELFUTILS)/usr/lib/elfutils - ${CP} ${WRKINST}/usr/lib/lib{asm,dw,elf}*.so* \ - ${IDIR_ELFUTILS}/usr/lib - ${CP} ${WRKINST}/usr/lib/elfutils/libebl*.so \ - ${IDIR_ELFUTILS}/usr/lib/elfutils - ${INSTALL_DIR} ${IDIR_ELFUTILS}/usr/bin - ${INSTALL_BIN} ${WRKINST}/usr/bin/* \ - ${IDIR_ELFUTILS}/usr/bin - -include ${ADK_TOPDIR}/mk/pkg-bottom.mk + $(CP) $(WRKINST)/usr/lib/lib{asm,dw,elf}*.so* \ + $(IDIR_ELFUTILS)/usr/lib + $(CP) $(WRKINST)/usr/lib/elfutils/libebl*.so \ + $(IDIR_ELFUTILS)/usr/lib/elfutils + $(INSTALL_DIR) $(IDIR_ELFUTILS)/usr/bin + $(INSTALL_BIN) $(WRKINST)/usr/bin/* \ + $(IDIR_ELFUTILS)/usr/bin + +include $(ADK_TOPDIR)/mk/pkg-bottom.mk -- cgit v1.2.3