diff options
author | Stefan Fröberg <stefan.froberg@petroprogram.com> | 2013-01-06 05:22:43 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-01-07 21:33:20 +0100 |
commit | 75bd7d13b2a772786df2b77be9af91ddda450174 (patch) | |
tree | b61f2991ad4bc83edf82d8b7fbe12c0e9af0db53 /package/elfutils | |
parent | b6009b94ca5721b0601b689fc350e1713f342239 (diff) | |
download | buildroot-novena-75bd7d13b2a772786df2b77be9af91ddda450174.tar.gz buildroot-novena-75bd7d13b2a772786df2b77be9af91ddda450174.zip |
elfutils: new package
This patch adds a a package for elfutils. For now, the package is
glibc specific, as adding uClibc support for this package is quite
tedious, and will therefore be done through followup patches.
Heavily based from work done by Stefan Fröberg, but with many further
modifications by Thomas Petazzoni.
Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/elfutils')
-rw-r--r-- | package/elfutils/Config.in | 15 | ||||
-rw-r--r-- | package/elfutils/elfutils.mk | 49 |
2 files changed, 64 insertions, 0 deletions
diff --git a/package/elfutils/Config.in b/package/elfutils/Config.in new file mode 100644 index 000000000..836ce4cbb --- /dev/null +++ b/package/elfutils/Config.in @@ -0,0 +1,15 @@ +comment "elfutils requires a glibc toolchain" + depends on !(BR2_TOOLCHAIN_EXTERNAL_GLIBC || \ + BR2_TOOLCHAIN_CTNG_glibc || \ + BR2_TOOLCHAIN_CTNG_eglibc) + +config BR2_PACKAGE_ELFUTILS + bool "elfutils" + depends on BR2_TOOLCHAIN_EXTERNAL_GLIBC || \ + BR2_TOOLCHAIN_CTNG_glibc || \ + BR2_TOOLCHAIN_CTNG_eglibc + help + Libraries/utilities to handle ELF objects (drop in + replacement for libelf). + + https://fedorahosted.org/elfutils diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk new file mode 100644 index 000000000..27500606b --- /dev/null +++ b/package/elfutils/elfutils.mk @@ -0,0 +1,49 @@ +############################################################# +# +# elfutils +# +############################################################# +ELFUTILS_VERSION = 0.155 +ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2 +ELFUTILS_SITE = https://fedorahosted.org/releases/e/l/elfutils/$(ELFUTILS_VERSION) +ELFUTILS_LICENSE = GPLv3 GPLv2 LGPLv3 +ELFUTILS_LICENSE_FILES = COPYING COPYING-GPLV2 COPYING-LGPLV3 + +# The tarball does not have a generated configure script +ELFUTILS_AUTORECONF = YES +ELFUTILS_CONF_OPT += --disable-werror +ELFUTILS_PATCH = \ + elfutils-portability.patch \ + elfutils-robustify.patch + +ELFUTILS_INSTALL_STAGING = YES + +ifeq ($(BR2_LARGEFILE),y) +# elfutils gets confused when lfs mode is forced, so don't +ELFUTILS_CONF_ENV += \ + CFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))" \ + CPPFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))" +endif + +ifeq ($(BR2_PACKAGE_ZLIB),y) + ELFUTILS_DEPENDENCIES += zlib + ELFUTILS_CONF_OPT += --with-zlib +else + ELFUTILS_CONF_OPT += --without-zlib +endif + +ifeq ($(BR2_PACKAGE_BZIP2),y) + ELFUTILS_DEPENDENCIES += bzip2 + ELFUTILS_CONF_OPT += --with-bzlib +else + ELFUTILS_CONF_OPT += --without-bzlib +endif + +ifeq ($(BR2_PACKAGE_XZ),y) + ELFUTILS_DEPENDENCIES += xz + ELFUTILS_CONF_OPT += --with-lzma +else + ELFUTILS_CONF_OPT += --without-lzma +endif + +$(eval $(autotools-package)) |