Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] svn commit: trunk/buildroot/package/libelf
@ 2007-04-06 12:51 aldot at uclibc.org
  0 siblings, 0 replies; 4+ messages in thread
From: aldot at uclibc.org @ 2007-04-06 12:51 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2007-04-06 05:51:42 -0700 (Fri, 06 Apr 2007)
New Revision: 18348

Log:
- bump version. memmove works so let configure know about this fact


Modified:
   trunk/buildroot/package/libelf/libelf.mk


Changeset:
Modified: trunk/buildroot/package/libelf/libelf.mk
===================================================================
--- trunk/buildroot/package/libelf/libelf.mk	2007-04-06 11:55:37 UTC (rev 18347)
+++ trunk/buildroot/package/libelf/libelf.mk	2007-04-06 12:51:42 UTC (rev 18348)
@@ -3,7 +3,7 @@
 # libelf
 #
 #############################################################
-LIBELF_VER=0.8.5
+LIBELF_VER=0.8.9
 LIBELF_SOURCE=libelf-$(LIBELF_VER).tar.gz
 LIBELF_SITE=http://www.mr511.de/software/
 LIBELF_DIR=$(BUILD_DIR)/libelf-$(LIBELF_VER)
@@ -16,16 +16,18 @@
 $(DL_DIR)/$(LIBELF_SOURCE):
 	$(WGET) -P $(DL_DIR) $(LIBELF_SITE)/$(LIBELF_SOURCE)
 
-$(LIBELF_DIR)/.source: $(DL_DIR)/$(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
-	touch $(LIBELF_DIR)/.source
+	$(CONFIG_UPDATE) $(LIBELF_DIR)
+	touch $@
 
-$(LIBELF_DIR)/.configured: $(LIBELF_DIR)/.source
+$(LIBELF_DIR)/.configured: $(LIBELF_DIR)/.unpacked
 	(cd $(LIBELF_DIR); \
 		$(TARGET_CONFIGURE_OPTS) \
 		CFLAGS="$(TARGET_CFLAGS)" \
 		LDFLAGS="$(TARGET_LDFLAGS)" \
+		libelf_cv_working_memmove=yes \
 		./configure \
 		--target=$(GNU_TARGET_NAME) \
 		--host=$(GNU_TARGET_NAME) \
@@ -35,13 +37,13 @@
 		$(DISABLE_NLS) \
 		--disable-shared \
 	);
-	touch $(LIBELF_DIR)/.configured;
+	touch $@
 
 $(LIBELF_DIR)/libelf.so.$(LIBELF_VER): $(LIBELF_DIR)/.configured
 	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LIBELF_DIR)
 
 $(STAGING_DIR)/usr/lib/libelf.a: $(LIBELF_DIR)/libelf.so.$(LIBELF_VER)
-	$(MAKE1) $(TARGET_CONFIGURE_OPTS) ${INSTALL}="install -D" \
+	$(MAKE1) $(TARGET_CONFIGURE_OPTS) \
 		instroot=$(STAGING_DIR) -C $(LIBELF_DIR) install
 
 $(TARGET_DIR)/usr/lib/libelf.so.$(LIBELF_VER): $(STAGING_DIR)/usr/lib/libelf.a

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/package/libelf
@ 2007-04-06 14:21 aldot at uclibc.org
  0 siblings, 0 replies; 4+ messages in thread
From: aldot at uclibc.org @ 2007-04-06 14:21 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2007-04-06 07:21:00 -0700 (Fri, 06 Apr 2007)
New Revision: 18349

Log:
- someone disabled shared lib support without fixing the libelf rule leading to
  useless rebuilds. Add option to install the lib to the target and not only to
  the staging_dir.


Modified:
   trunk/buildroot/package/libelf/Config.in
   trunk/buildroot/package/libelf/libelf.mk


Changeset:
Modified: trunk/buildroot/package/libelf/Config.in
===================================================================
--- trunk/buildroot/package/libelf/Config.in	2007-04-06 12:51:42 UTC (rev 18348)
+++ trunk/buildroot/package/libelf/Config.in	2007-04-06 14:21:00 UTC (rev 18349)
@@ -7,3 +7,11 @@
 	  library.
 
 	  http://www.stud.uni-hannover.de/~michael/software/
+
+config BR2_PACKAGE_LIBELF_HEADERS
+	bool "headers on the target"
+	default n
+	depends on BR2_PACKAGE_LIBELF
+	help
+	  Whether to copy the lib and the headers to the
+	  target system.

Modified: trunk/buildroot/package/libelf/libelf.mk
===================================================================
--- trunk/buildroot/package/libelf/libelf.mk	2007-04-06 12:51:42 UTC (rev 18348)
+++ trunk/buildroot/package/libelf/libelf.mk	2007-04-06 14:21:00 UTC (rev 18349)
@@ -28,6 +28,7 @@
 		CFLAGS="$(TARGET_CFLAGS)" \
 		LDFLAGS="$(TARGET_LDFLAGS)" \
 		libelf_cv_working_memmove=yes \
+		mr_cv_target_elf=yes \
 		./configure \
 		--target=$(GNU_TARGET_NAME) \
 		--host=$(GNU_TARGET_NAME) \
@@ -35,25 +36,32 @@
 		--prefix=/usr \
 		--sysconfdir=/etc \
 		$(DISABLE_NLS) \
-		--disable-shared \
+		--enable-shared \
 	);
 	touch $@
 
-$(LIBELF_DIR)/libelf.so.$(LIBELF_VER): $(LIBELF_DIR)/.configured
+$(LIBELF_DIR)/lib/libelf.so.$(LIBELF_VER): $(LIBELF_DIR)/.configured
 	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LIBELF_DIR)
 
-$(STAGING_DIR)/usr/lib/libelf.a: $(LIBELF_DIR)/libelf.so.$(LIBELF_VER)
+$(STAGING_DIR)/usr/lib/libelf.a: $(LIBELF_DIR)/lib/libelf.so.$(LIBELF_VER)
 	$(MAKE1) $(TARGET_CONFIGURE_OPTS) \
 		instroot=$(STAGING_DIR) -C $(LIBELF_DIR) install
 
+ifeq ($(BR2_PACKAGE_LIBELF_HEADERS),y)
 $(TARGET_DIR)/usr/lib/libelf.so.$(LIBELF_VER): $(STAGING_DIR)/usr/lib/libelf.a
+	$(INSTALL) $(STAGING_DIR)/usr/lib/libelf* $(@D)
+	cp -dpR $(STAGING_DIR)/usr/include/{gelf.h,libelf*} $(TARGET_DIR)/usr/include/
+	$(STRIP) $@
 
 libelf: uclibc $(TARGET_DIR)/usr/lib/libelf.so.$(LIBELF_VER)
-
+else
+libelf: uclibc $(STAGING_DIR)/usr/lib/libelf.so.$(LIBELF_VER)
+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:

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/package/libelf
@ 2007-09-24  7:34 aldot at uclibc.org
  0 siblings, 0 replies; 4+ messages in thread
From: aldot at uclibc.org @ 2007-09-24  7:34 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2007-09-24 00:34:02 -0700 (Mon, 24 Sep 2007)
New Revision: 19983

Log:
- bump version and make it compile also if 64bit is unavailable


Added:
   trunk/buildroot/package/libelf/libelf-0.8.10-Elf64-fixups.patch

Modified:
   trunk/buildroot/package/libelf/libelf.mk


Changeset:

Sorry, the patch is too large to include (12435 lines).
Please use ViewCVS to see it!

http://uclibc.org/cgi-bin/viewcvs.cgi?view=rev&root=svn&rev=19983

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/package/libelf
@ 2007-10-02 15:38 aldot at uclibc.org
  0 siblings, 0 replies; 4+ messages in thread
From: aldot at uclibc.org @ 2007-10-02 15:38 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2007-10-02 08:38:27 -0700 (Tue, 02 Oct 2007)
New Revision: 20174

Log:
- make sure that the target's usr/include dir exists when installing the headers
  It would make sense to provide a $(PREREQ_TARGETDIR_USR_INCLUDE) prerequisite that expands to $(TARGET_DIR)/usr/include
  if installing any headers was requested to fix this in a generic manner..


Modified:
   trunk/buildroot/package/libelf/libelf.mk


Changeset:
Modified: trunk/buildroot/package/libelf/libelf.mk
===================================================================
--- trunk/buildroot/package/libelf/libelf.mk	2007-10-02 11:25:37 UTC (rev 20173)
+++ trunk/buildroot/package/libelf/libelf.mk	2007-10-02 15:38:27 UTC (rev 20174)
@@ -57,7 +57,9 @@
 
 ifeq ($(BR2_PACKAGE_LIBELF_HEADERS),y)
 $(TARGET_DIR)/usr/lib/libelf.so.$(LIBELF_VERSION): $(STAGING_DIR)/usr/lib/libelf.a
-	$(INSTALL) $(STAGING_DIR)/usr/lib/libelf* $(@D)
+	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) $@
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-02 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02 15:38 [Buildroot] svn commit: trunk/buildroot/package/libelf aldot at uclibc.org
  -- strict thread matches above, loose matches on Subject: below --
2007-09-24  7:34 aldot at uclibc.org
2007-04-06 14:21 aldot at uclibc.org
2007-04-06 12:51 aldot at uclibc.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox