comparison mini-native.sh @ 183:d2a27709d3b6

Fixup the -j stuff to actually work. (typo in gcc, and uClibc can't use it.)
author Rob Landley <rob@landley.net>
date Tue, 26 Jun 2007 21:32:19 -0400
parents fc827ab6166f
children a0a17e78c07d
comparison
equal deleted inserted replaced
182:fc827ab6166f 183:d2a27709d3b6
33 # Build and install uClibc. (We could just copy the one from the compiler 33 # Build and install uClibc. (We could just copy the one from the compiler
34 # toolchain, but this is cleaner.) 34 # toolchain, but this is cleaner.)
35 35
36 setupfor uClibc 36 setupfor uClibc
37 make allnoconfig KCONFIG_ALLCONFIG="${WORK}/miniconfig-uClibc" && 37 make allnoconfig KCONFIG_ALLCONFIG="${WORK}/miniconfig-uClibc" &&
38 # Can't use -j here, build is unstable.
38 make CROSS="${ARCH}-" KERNEL_HEADERS="${TOOLS}/include" PREFIX="${TOOLS}/" \ 39 make CROSS="${ARCH}-" KERNEL_HEADERS="${TOOLS}/include" PREFIX="${TOOLS}/" \
39 RUNTIME_PREFIX=/ DEVEL_PREFIX=/ UCLIBC_LDSO_NAME=ld-uClibc \ 40 RUNTIME_PREFIX=/ DEVEL_PREFIX=/ UCLIBC_LDSO_NAME=ld-uClibc \
40 -j $CPUS all install_runtime install_dev utils && 41 all install_runtime install_dev utils &&
41 # utils_install wants to put stuff in usr/bin instead of bin. 42 # utils_install wants to put stuff in usr/bin instead of bin.
42 install -m 755 utils/{readelf,ldd,ldconfig} "${TOOLS}/bin" && 43 install -m 755 utils/{readelf,ldd,ldconfig} "${TOOLS}/bin" &&
43 cd .. && 44 cd .. &&
44 $CLEANUP uClibc* 45 $CLEANUP uClibc*
45 46
146 bash_cv_getenv_redef=no 147 bash_cv_getenv_redef=no
147 EOF 148 EOF
148 CC="${ARCH}-gcc" RANLIB="${ARCH}-ranlib" ./configure --prefix="${TOOLS}" \ 149 CC="${ARCH}-gcc" RANLIB="${ARCH}-ranlib" ./configure --prefix="${TOOLS}" \
149 --build="${CROSS_HOST}" --host="${CROSS_TARGET}" --cache-file=config.cache \ 150 --build="${CROSS_HOST}" --host="${CROSS_TARGET}" --cache-file=config.cache \
150 --without-bash-malloc --disable-readline && 151 --without-bash-malloc --disable-readline &&
151 make -j $CPUS && 152 # note: doesn't work with -j
153 make &&
152 make install && 154 make install &&
153 # Make bash the default shell. 155 # Make bash the default shell.
154 ln -s bash "${TOOLS}/bin/sh" && 156 ln -s bash "${TOOLS}/bin/sh" &&
155 cd .. && 157 cd .. &&
156 $CLEANUP bash-* 158 $CLEANUP bash-*