scripts/randomtest: update to pass testsuite with Rob's toolchain

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-07-06 02:26:35 +02:00
parent ee1f19b942
commit 3e5fa43b2f

View File

@ -43,6 +43,10 @@ mv .config.new .config
echo '# CONFIG_DEBUG_PESSIMIZE is not set' >>.config
echo '# CONFIG_WERROR is not set' >>.config
echo "CONFIG_CROSS_COMPILER_PREFIX=\"${CROSS_COMPILER_PREFIX}\"" >>.config
echo '# CONFIG_SELINUX is not set' >>.config
echo '# CONFIG_EFENCE is not set' >>.config
echo '# CONFIG_DMALLOC is not set' >>.config
echo '# CONFIG_RFKILL is not set' >>.config
# If glibc, don't build static
if test x"$LIBC" = x"glibc"; then
@ -53,18 +57,21 @@ if test x"$LIBC" = x"glibc"; then
echo '# CONFIG_STATIC is not set' >>.config
fi
# If glibc, build static, and remove some things
# If uclibc, build static, and remove some things
# likely to not work on uclibc.
if test x"$LIBC" = x"uclibc"; then
cat .config \
| grep -v CONFIG_STATIC \
| grep -v CONFIG_BUILD_LIBBUSYBOX \
| grep -v CONFIG_TASKSET \
| grep -v CONFIG_UNICODE_SUPPORT \
| grep -v CONFIG_PIE \
\
| grep -v CONFIG_FEATURE_2_4_MODULES \
>.config.new
mv .config.new .config
echo 'CONFIG_STATIC=y' >>.config
echo '# CONFIG_BUILD_LIBBUSYBOX is not set' >>.config
echo '# CONFIG_PIE is not set' >>.config
echo '# CONFIG_FEATURE_2_4_MODULES is not set' >>.config
fi
# If STATIC, remove some things.
@ -75,6 +82,7 @@ if grep -q "^CONFIG_STATIC=y" .config; then
| grep -v CONFIG_PAM \
>.config.new
mv .config.new .config
echo '# CONFIG_PAM is not set' >>.config
fi
# Regenerate .config with default answers for yanked-off options