Hi Jow,

yes thats correct, thanks. Fixed patch is attached.

Bye
  Sven


On 04/29/2011 04:48 PM, Jo-Philipp Wich wrote:
> Hi,
> 
> why not just change "ld-*.so" to "ld-*.so*" ?
> 
> ~ Jow
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

>From 29d79dae8d5e301deae0d1489b5ee42bb9c5427f Mon Sep 17 00:00:00 2001
From: Sven Bachmann <d...@mcbachmann.de>
Date: Wed, 4 May 2011 13:36:50 +0200
Subject: [PATCH] base-files: copy uClibc files from ext. toolchain

When using an external toolchain with uClibc the Makefile of base-files
only selects libc* files for copying to the firmware /lib dir but not
the libuClibc-*.so and the ld-uClibc.so.0-Symlink.

This prevents the final firmware from booting, because busybox (and
others) rely on these files and you'll get a broken firmware (without
noticing, because the kernel only tells you that /etc/preinit can't be
started).

To fix this I added the uClibc-files to the libc-install target when
CONFIG_USE_UCLIBC is set.

This should fix bug #9157.

Signed-off-by: Sven Bachmann <d...@mcbachmann.de>
---
 package/base-files/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 95ab5a7..5dd1970 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -187,7 +187,8 @@ define Package/libc/config
 		string
 		prompt "libc shared library files (use wildcards)"
 		depends EXTERNAL_TOOLCHAIN && PACKAGE_libc
-		default "./lib/ld{-*.so,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*}"
+		default "./lib/ld{-*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*}" if !USE_UCLIBC
+		default "./lib/ld{-*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util,uClibc}{-*.so,.so.*}" if USE_UCLIBC
 
 	endmenu
 endef
-- 
1.7.4.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to