firmware
changeset 66:57f77c25b39d
Hit uClibc build with a large rock so it stops inserting hardwired paths in
libc.so linker script. Add strace to download list because it's likely to
come in handy soon.
libc.so linker script. Add strace to download list because it's likely to
come in handy soon.
| author | Rob Landley <rob@landley.net> |
|---|---|
| date | Wed Dec 27 22:32:40 2006 -0500 (3 years ago) |
| parents | 79295919b775 |
| children | 8c075bf475df |
| files | cross-compiler.sh download.sh mini-native.sh sources/patches/uClibc-install.patch |
line diff
1.1 --- a/cross-compiler.sh Tue Dec 26 01:20:11 2006 -0500 1.2 +++ b/cross-compiler.sh Wed Dec 27 22:32:40 2006 -0500 1.3 @@ -69,9 +69,8 @@ 1.4 setupfor uClibc 1.5 cp "${WORK}"/config-uClibc .config && 1.6 (yes "" | make CROSS="${ARCH}-" oldconfig) > /dev/null && 1.7 -make CROSS="${ARCH}-" KERNEL_HEADERS="${CROSS}/include" \ 1.8 - RUNTIME_PREFIX="${CROSS}/" DEVEL_PREFIX="${CROSS}/" \ 1.9 - all install_runtime install_dev && 1.10 +make CROSS="${ARCH}-" KERNEL_HEADERS="${CROSS}/include" PREFIX="${CROSS}/" \ 1.11 + RUNTIME_PREFIX=/ DEVEL_PREFIX=/ all install_runtime install_dev && 1.12 # This needs to be built with the native compiler. Since uClibc uses $CROSS 1.13 # internally, we have to blank it to avoid confusing them. 1.14 #CROSS= make KERNEL_HEADERS="${CROSS}/include" \
2.1 --- a/download.sh Tue Dec 26 01:20:11 2006 -0500 2.2 +++ b/download.sh Wed Dec 27 22:32:40 2006 -0500 2.3 @@ -56,6 +56,11 @@ 2.4 SHA1=b3e158877f94e66ec1c8ef604e994851ee388b09 \ 2.5 download && 2.6 2.7 +URL=http://superb-east.dl.sourceforge.net/sourceforge/strace/strace-4.5.14.tar.bz2 \ 2.8 +SHA1= \ 2.9 +download && 2.10 + 2.11 + 2.12 echo === Got all source. && 2.13 2.14 cleanup_oldfiles
3.1 --- a/mini-native.sh Tue Dec 26 01:20:11 2006 -0500 3.2 +++ b/mini-native.sh Wed Dec 27 22:32:40 2006 -0500 3.3 @@ -8,6 +8,7 @@ 3.4 3.5 # Tell the wrapper script where to find the dynamic linker. 3.6 export UCLIBC_DYNAMIC_LINKER=/tools/lib/ld-uClibc.so.0 3.7 +export UCLIBC_RPATH=/tools/lib 3.8 3.9 # Purple. And why not? 3.10 echo -e "\e[35m" 3.11 @@ -33,8 +34,8 @@ 3.12 setupfor uClibc 3.13 cp "${WORK}"/config-uClibc .config && 3.14 (yes "" | make CROSS="${ARCH}-" oldconfig) > /dev/null && 3.15 -make CROSS="${ARCH}-" KERNEL_HEADERS="${TOOLS}/include" \ 3.16 - RUNTIME_PREFIX="${TOOLS}/" DEVEL_PREFIX="${TOOLS}/" \ 3.17 +make CROSS="${ARCH}-" KERNEL_HEADERS="${TOOLS}/include" PREFIX="${NATIVE}/" \ 3.18 + RUNTIME_PREFIX=/tools/ DEVEL_PREFIX=/tools/ \ 3.19 all install_runtime install_dev install_utils && 3.20 cd .. && 3.21 $CLEANUP uClibc* 3.22 @@ -139,6 +140,7 @@ 3.23 ac_cv_func_setvbuf_reversed=no 3.24 bash_cv_sys_named_pipes=yes 3.25 bash_cv_have_mbstate_t=yes 3.26 +bash_cv_getenv_redef=no 3.27 EOF 3.28 CC="${ARCH}-gcc" ./configure --prefix="${TOOLS}" --build="${CROSS_HOST}" \ 3.29 --host="${CROSS_TARGET}" --cache-file=config.cache \
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/sources/patches/uClibc-install.patch Wed Dec 27 22:32:40 2006 -0500 4.3 @@ -0,0 +1,26 @@ 4.4 +--- uClibc/Makefile.in 2006-12-14 21:13:04.000000000 -0500 4.5 ++++ uClibc-new/Makefile.in 2006-12-27 19:20:35.000000000 -0500 4.6 +@@ -207,23 +207,6 @@ 4.7 + $(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)$$i.$(MAJOR_VERSION) \ 4.8 + $(PREFIX)$(DEVEL_PREFIX)lib/$$i; \ 4.9 + done 4.10 +- if [ -f $(top_builddir)lib/libc.so -a -f $(PREFIX)$(RUNTIME_PREFIX)lib/$(SHARED_MAJORNAME) ] ; then \ 4.11 +- $(RM) $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \ 4.12 +- sed -e 's:$(NONSHARED_LIBNAME):$(DEVEL_PREFIX)lib/$(NONSHARED_LIBNAME):' \ 4.13 +- -e 's:$(SHARED_MAJORNAME):$(RUNTIME_PREFIX)lib/$(SHARED_MAJORNAME):' \ 4.14 +- -e 's:$(UCLIBC_LDSO):$(RUNTIME_PREFIX)lib/$(UCLIBC_LDSO):' \ 4.15 +- $(top_builddir)lib/libc.so > $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \ 4.16 +- fi 4.17 +-ifeq ($(UCLIBC_HAS_THREADS),y) 4.18 +-ifneq ($(LINUXTHREADS_OLD),y) 4.19 +- if [ -f $(top_builddir)lib/libpthread.so -a -f $(PREFIX)$(RUNTIME_PREFIX)lib/libpthread.so.$(MAJOR_VERSION) ] ; then \ 4.20 +- $(RM) $(PREFIX)$(DEVEL_PREFIX)lib/libpthread.so; \ 4.21 +- cp $(top_srcdir)extra/scripts/format.lds $(PREFIX)$(DEVEL_PREFIX)lib/libpthread.so; \ 4.22 +- echo "GROUP ( $(RUNTIME_PREFIX)lib/libpthread.so.$(MAJOR_VERSION) $(DEVEL_PREFIX)lib/libpthread_nonshared.a )" \ 4.23 +- >> $(PREFIX)$(DEVEL_PREFIX)lib/libpthread.so; \ 4.24 +- fi 4.25 +-endif 4.26 +-endif 4.27 + ifeq ($(PTHREADS_DEBUG_SUPPORT),y) 4.28 + $(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)libthread_db.so.1 \ 4.29 + $(PREFIX)$(DEVEL_PREFIX)lib/libthread_db.so
