libelf: convert to Makefile.autotools.in and get rid of LIBELF_HEADERS option
We have the generic BR2_HAVE_DEVFILES now. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
da25e92b08
commit
a305c33209
6
CHANGES
6
CHANGES
|
@ -6,9 +6,9 @@
|
||||||
Updated/fixed packages: autoconf, busybox, directfb, dnsmasq,
|
Updated/fixed packages: autoconf, busybox, directfb, dnsmasq,
|
||||||
e2fsprogs, festival, gstreamer, gst-plugins-bad, gst-plugins-base,
|
e2fsprogs, festival, gstreamer, gst-plugins-bad, gst-plugins-base,
|
||||||
gst-plugins-good, imagemagick, iptables, kernel-headers, kismet,
|
gst-plugins-good, imagemagick, iptables, kernel-headers, kismet,
|
||||||
libevent, libglib2, liblockfile, libmad, libnl, libupnp, libuuid,
|
libelf, libevent, libglib2, liblockfile, libmad, libnl, libupnp,
|
||||||
ltrace, lua, mdadm, ncftp, ncurses, netkittelnet, netsnmp, ntfs-3g,
|
libuuid, ltrace, lua, mdadm, ncftp, ncurses, netkittelnet, netsnmp,
|
||||||
openssl, php, python, quagga, radvd, rsync, samba, sawman,
|
ntfs-3g, openssl, php, python, quagga, radvd, rsync, samba, sawman,
|
||||||
shared-mime-info, speech-tools, sqlite, squashfs, syslinux, u-boot,
|
shared-mime-info, speech-tools, sqlite, squashfs, syslinux, u-boot,
|
||||||
util-linux, valgrind, vsftpd, wipe, wpa-supplicant,
|
util-linux, valgrind, vsftpd, wipe, wpa-supplicant,
|
||||||
xdata_xcursor-themes, zlib
|
xdata_xcursor-themes, zlib
|
||||||
|
|
|
@ -1,15 +1,7 @@
|
||||||
config BR2_PACKAGE_LIBELF
|
config BR2_PACKAGE_LIBELF
|
||||||
bool "libelf"
|
bool "libelf"
|
||||||
help
|
help
|
||||||
This is the public release of libelf-0.8.5, a free ELF object
|
The elf library provides routines to access, and manipulate,
|
||||||
file access library. This build does not generate a shared
|
Elf object files.
|
||||||
library.
|
|
||||||
|
|
||||||
http://www.stud.uni-hannover.de/~michael/software/
|
http://www.mr511.de/software/
|
||||||
|
|
||||||
config BR2_PACKAGE_LIBELF_HEADERS
|
|
||||||
bool "headers on the target"
|
|
||||||
depends on BR2_PACKAGE_LIBELF
|
|
||||||
help
|
|
||||||
Whether to copy the lib and the headers to the
|
|
||||||
target system.
|
|
||||||
|
|
|
@ -6,82 +6,16 @@
|
||||||
LIBELF_VERSION=0.8.10
|
LIBELF_VERSION=0.8.10
|
||||||
LIBELF_SOURCE=libelf-$(LIBELF_VERSION).tar.gz
|
LIBELF_SOURCE=libelf-$(LIBELF_VERSION).tar.gz
|
||||||
LIBELF_SITE=http://www.mr511.de/software/
|
LIBELF_SITE=http://www.mr511.de/software/
|
||||||
LIBELF_DIR=$(BUILD_DIR)/libelf-$(LIBELF_VERSION)
|
LIBELF_INSTALL_STAGING = YES
|
||||||
|
LIBELF_INSTALL_STAGING_OPT = instroot=$(STAGING_DIR) install
|
||||||
|
LIBELF_INSTALL_TARGET_OPT = instroot=$(TARGET_DIR) install
|
||||||
|
|
||||||
LIBELF_ARCH:=$(ARCH)
|
LIBELD_CONF_ENV = libelf_cv_working_memmove=yes \
|
||||||
ifeq ("$(strip $(ARCH))","armeb")
|
|
||||||
LIBELF_ARCH:=arm
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_LARGEFILE),y)
|
|
||||||
LIBELF_CONFIG:=--enable-elf64
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(DL_DIR)/$(LIBELF_SOURCE):
|
|
||||||
$(call DOWNLOAD,$(LIBELF_SITE),$(LIBELF_SOURCE))
|
|
||||||
|
|
||||||
$(LIBELF_DIR)/.unpacked: $(DL_DIR)/$(LIBELF_SOURCE)
|
|
||||||
$(ZCAT) $(DL_DIR)/$(LIBELF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
||||||
toolchain/patch-kernel.sh $(LIBELF_DIR) package/libelf libelf\*.patch
|
|
||||||
$(CONFIG_UPDATE) $(LIBELF_DIR)
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(LIBELF_DIR)/.configured: $(LIBELF_DIR)/.unpacked
|
|
||||||
(cd $(LIBELF_DIR); rm -f config.cache; \
|
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
|
||||||
$(TARGET_CONFIGURE_ARGS) \
|
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
|
||||||
libelf_cv_working_memmove=yes \
|
|
||||||
mr_cv_target_elf=yes \
|
mr_cv_target_elf=yes \
|
||||||
libelf_64bit=yes \
|
libelf_64bit=yes
|
||||||
./configure $(QUIET) \
|
|
||||||
--target=$(GNU_TARGET_NAME) \
|
|
||||||
--host=$(GNU_TARGET_NAME) \
|
|
||||||
--build=$(GNU_HOST_NAME) \
|
|
||||||
--prefix=/usr \
|
|
||||||
--sysconfdir=/etc \
|
|
||||||
--enable-shared \
|
|
||||||
--disable-debug \
|
|
||||||
--disable-sanity-checks \
|
|
||||||
$(LIBELF_CONFIG) \
|
|
||||||
$(DISABLE_NLS) \
|
|
||||||
)
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(LIBELF_DIR)/lib/libelf.so.$(LIBELF_VERSION): $(LIBELF_DIR)/.configured
|
LIBELF_CONF_OPT = --enable-shared --disable-sanity-checks \
|
||||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LIBELF_DIR)
|
$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug) \
|
||||||
|
$(if $(BR2_LARGEFILE),--enable-elf64)
|
||||||
|
|
||||||
$(STAGING_DIR)/usr/lib/libelf.a $(STAGING_DIR)/usr/lib/libelf.so.$(LIBELF_VERSION): $(LIBELF_DIR)/lib/libelf.so.$(LIBELF_VERSION)
|
$(eval $(call AUTOTARGETS,package,libelf))
|
||||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
||||||
instroot=$(STAGING_DIR) -C $(LIBELF_DIR) install
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBELF_HEADERS),y)
|
|
||||||
$(TARGET_DIR)/usr/lib/libelf.so.$(LIBELF_VERSION): $(STAGING_DIR)/usr/lib/libelf.a
|
|
||||||
mkdir -p $(@D)
|
|
||||||
cp -dpf $(STAGING_DIR)/usr/lib/libelf* $(@D)
|
|
||||||
mkdir -p $(TARGET_DIR)/usr/include
|
|
||||||
cp -dpR $(STAGING_DIR)/usr/include/{gelf.h,libelf*} $(TARGET_DIR)/usr/include/
|
|
||||||
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@
|
|
||||||
|
|
||||||
libelf: $(TARGET_DIR)/usr/lib/libelf.so.$(LIBELF_VERSION)
|
|
||||||
else
|
|
||||||
libelf: $(STAGING_DIR)/usr/lib/libelf.so.$(LIBELF_VERSION)
|
|
||||||
endif
|
|
||||||
libelf-source: $(DL_DIR)/$(LIBELF_SOURCE)
|
|
||||||
|
|
||||||
libelf-clean:
|
|
||||||
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBELF_DIR) uninstall
|
|
||||||
$(MAKE) instroot=$(STAGING_DIR) -C $(LIBELF_DIR) uninstall
|
|
||||||
-$(MAKE) -C $(LIBELF_DIR) clean
|
|
||||||
|
|
||||||
libelf-dirclean:
|
|
||||||
rm -rf $(LIBELF_DIR)
|
|
||||||
|
|
||||||
#############################################################
|
|
||||||
#
|
|
||||||
# Toplevel Makefile options
|
|
||||||
#
|
|
||||||
#############################################################
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBELF),y)
|
|
||||||
TARGETS+=libelf
|
|
||||||
endif
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ comment "ltrace has no inherent support for AVR32"
|
||||||
config BR2_PACKAGE_LTRACE
|
config BR2_PACKAGE_LTRACE
|
||||||
bool "ltrace"
|
bool "ltrace"
|
||||||
#depends on BR2_LARGEFILE
|
#depends on BR2_LARGEFILE
|
||||||
select BR2_PACKAGE_LIBELF_HEADERS
|
select BR2_PACKAGE_LIBELF
|
||||||
help
|
help
|
||||||
Debugging program which runs a specified command until it exits.
|
Debugging program which runs a specified command until it exits.
|
||||||
While the command is executing, ltrace intercepts and records
|
While the command is executing, ltrace intercepts and records
|
||||||
|
|
Loading…
Reference in New Issue
Block a user