Mercurial > hg > aboriginal
view sources/sections/uClibc.sh @ 872:a5d7e6ad7aa4
Mike Frysinger decided that the readelf Erik Anderson wrote was too hard for him to understand, so he removed it from uClibc-git. So we allow the utils rename to fail if components aren't there, and perhaps I'll fork my own copy of readelf and maintain it myself.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 02 Nov 2009 14:23:56 -0600 |
parents | b274eb556b50 |
children | 5e0cbc73da55 |
line wrap: on
line source
# Install Linux kernel headers. setupfor linux # Install Linux kernel headers (for use by uClibc). make -j $CPUS headers_install ARCH="${KARCH}" INSTALL_HDR_PATH="$STAGE_DIR" && # This makes some very old package builds happy. ln -s ../sys/user.h "$STAGE_DIR/include/asm/page.h" cleanup # 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 || dienow } setupfor uClibc if unstable uClibc && [ -e "$CONFIG_DIR/$ARCH/miniconfig-alt-uClibc" ] then cp "$CONFIG_DIR/$ARCH/miniconfig-alt-uClibc" "$WORK/mini.conf" || dienow echo using miniconfig-alt-uClibc else cp "$SOURCES/baseconfig-uClibc" "$WORK/mini.conf" && echo "$UCLIBC_CONFIG" >> "$WORK/mini.conf" || dienow echo Creating miniconfig for uClibc fi make KCONFIG_ALLCONFIG="$WORK/mini.conf" allnoconfig && cp .config "$WORK/config-uClibc" || dienow make_uClibc install # Do we need host or target versions of ldd and such? if [ ! -z "$HOST_UTILS" ] then make_uClibc hostutils for i in $(cd utils; ls *.host | sed 's/\.host//') do cp utils/"$i".host "$STAGE_DIR/bin/$ARCH-$i" || dienow done else make_uClibc install_utils # There's no way to specify a prefix for the uClibc utils; rename by hand. if [ ! -z "$PROGRAM_PREFIX" ] then mv "${STAGE_DIR}"/{sbin,bin}/ldconfig || dienow for i in ldd readelf ldconfig do mv "$STAGE_DIR/bin/"{"$i","${PROGRAM_PREFIX}$i"} done fi fi cleanup