Hi, I'm resending this to get this into trunk, because uClibc libs are currently not copied over when using an external toolchain.
Bye Sven -- Patch follows -- Hi, 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 and is based on patch: "[PATCH] base-files: return success on lib-copying with external toolchain". Signed-off-by: Sven Bachmann --- 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 a4a62d2..63b506d 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,-linux*.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,-linux*.so.*,-uClibc.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.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel