#!/bin/sh KERNEL_TOOLCHAIN_VERSION=r8342 KERNEL_TOOLCHAIN_FILENAME_SUFFIX=freetz-${KERNEL_TOOLCHAIN_VERSION}-shared-glibc TARGET_TOOLCHAIN_VERSION=r8342 TARGET_TOOLCHAIN_FILENAME_SUFFIX=freetz-${TARGET_TOOLCHAIN_VERSION}-shared-glibc TOOL_CONF=tools/config/conf DOT_CONFIG=.config miniconfig() { local i for i in "$@"; do echo "$i=y"; done cat << EOF FREETZ_SHOW_ADVANCED=y FREETZ_BUILD_TOOLCHAIN=y FREETZ_TARGET_COMPILER_GCC_4_5=y FREETZ_TOOLCHAIN_32BIT=y FREETZ_TARGET_UCLIBC_REDUCED_LOCALE_SET=y # FREETZ_TARGET_TOOLCHAIN is not set # FREETZ_TOOLCHAIN_CCACHE is not set EOF } # kernel target # FREETZ_TYPE_FON_WLAN mipsel-gcc3.x mipsel-gcc4.x-uClibc0.9.28 # FREETZ_TYPE_FON_WLAN_7270_V1+IPv6 mipsel-gcc3.x mipsel-gcc4.x-uClibc0.9.29 # FREETZ_TYPE_FON_WLAN_7270_V3 mipsel-gcc4.x mipsel-gcc4.x-uClibc0.9.31.1 # FREETZ_TYPE_FON_WLAN_7390 mips-gcc4.x mips-gcc4.x-uClibc0.9.31.1 # FREETZ_TYPE_FON_WLAN_7320 mips-gcc4.x mips-gcc4.x-uClibc0.9.30.3 # for options in \ FREETZ_TYPE_FON_WLAN \ "FREETZ_TYPE_FON_WLAN_7270_V1 FREETZ_TARGET_IPV6_SUPPORT" \ FREETZ_TYPE_FON_WLAN_7270_V3 \ FREETZ_TYPE_FON_WLAN_7390 \ FREETZ_TYPE_FON_WLAN_7320 \ ; do optionsCommaSep=$(echo $options | sed -e 's| |,|g') optionsUnderscoreSep=$(echo $options | sed -e 's| |_|g') echo "Building toolchains for $optionsCommaSep" make distclean ln -s ../dl make $TOOL_CONF miniconfig $options > $DOT_CONFIG $TOOL_CONF --oldnoconfig Config.in cp -a $DOT_CONFIG $DOT_CONFIG.$optionsUnderscoreSep make KTV=${KERNEL_TOOLCHAIN_FILENAME_SUFFIX} TTV=${TARGET_TOOLCHAIN_FILENAME_SUFFIX} toolchain done