Mercurial > hg > aboriginal
view host-tools.sh @ 99:fd6d26721acf
Minor tweak, move toybox build to the start.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 05 Feb 2007 01:26:34 -0500 |
parents | 137ba51ee993 |
children | b66d638a3844 |
line wrap: on
line source
#!/bin/sh # Get lots of predefined environment variables and shell functions. echo -e "\e[0m" echo "=== Building host tools" NO_ARCH=1 source include.sh rm -rf "${HOSTTOOLS}" mkdir -p "${HOSTTOOLS}" || dienow # Build toybox setupfor toybox && make defconfig && make && make instlist && make install_flat PREFIX="${HOSTTOOLS}" [ $? -ne 0 ] && dienow # Build squashfs setupfor squashfs cd squashfs-tools && make && cp mksquashfs unsquashfs "${HOSTTOOLS}" && cd .. && $CLEANUP squashfs* [ $? -ne 0 ] && dienow # Build qemu (if it's not already installed) TEMP="qemu-${QEMU_TEST}" [ -z "$QEMU_TEST" ] && TEMP=qemu if [ -z "$(which $TEMP)" ] then setupfor qemu && ./configure --disable-gcc-check --disable-gfx-check --prefix="${CROSS}" && make && make install && cd .. && $CLEANUP qemu-* [ $? -ne 0 ] && dienow fi echo -e "\e[32mHost tools build complete.\e[0m"