summaryrefslogtreecommitdiff
path: root/extra/scripts/randconfig.sh
blob: d0be318c8a7260db377bf49b972a35cedd84aaf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

test "x$ARCH" = "x" && ARCH=`uname -m`
KCONFIG_ALLCONFIG=.config.allconfig
(echo TARGET_$ARCH=y
 echo '# UCLIBC_PREGENERATED_LOCALE_DATA is not set'
 echo '# UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA is not set'
) > $KCONFIG_ALLCONFIG
export KCONFIG_ALLCONFIG

i=0
while test ! -f STOP
do
  make $* randconfig > /dev/null
  make $* silentoldconfig > /dev/null
  if (make $*) 2>&1 >& mk.log
  then
    :
  else
    i=`expr $i + 1`
    num=`printf "%.5d" $i`
    mv .config FAILED.$num.config
    mv mk.log FAILED.$num.log
  fi
  make distclean > /dev/null || true
done