Mercurial > hg > aboriginal
view sources/sections/uClibc.build @ 1265:918501f802d1
Update squashfs and kernel to current versions.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 21 Oct 2010 19:09:51 -0500 |
parents | 4021fb1183d7 |
children | 5e22b534839a |
line wrap: on
line source
# Build and install uClibc make_uClibc() { make -j $CPUS $VERBOSITY CROSS="${ARCH}-" \ UCLIBC_LDSO_NAME=ld-uClibc KERNEL_HEADERS="$STAGE_DIR/include" \ PREFIX="$STAGE_DIR/" RUNTIME_PREFIX=/ DEVEL_PREFIX=/ $1 } # Configure getconfig uClibc > "$WORK/mini.conf" || dienow # Build and install make KCONFIG_ALLCONFIG="$WORK/mini.conf" allnoconfig && mkdir -p "$STAGE_DIR/src" && cp .config "$STAGE_DIR/src/config-uClibc" && make_uClibc install || dienow # Old versions of uClibc couldn't be told not to hardwire absolute paths # into their linker scripts. This isn't needed for current versions, and # is allowed to fail if HAVE_SHARED=n sed -i 's@/lib/@@g' "$STAGE_DIR/lib/libc.so" 2>/dev/null # Build ldd and friends if [ ! -z "$HOST_ARCH" ] then # The uClibc utils/Makefile.in is crazy. There's no way to specify a prefix, # or to pass in --static via CFLAGS. Just build 'em by hand. "$ARCH-cc" utils/ldd.c -o "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}ldd" --static \ -I ldso/include -DBUILDING_LINKAGE && "$ARCH-cc" utils/ldconfig.c utils/chroot_realpath.c \ -o "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}ldconfig" --static -I ldso/include \ -DUCLIBC_RUNTIME_PREFIX='"/"' -DBUILDING_LINKAGE || dienow fi