Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/scripts/randomtest

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 28  cat .config \ Line 28  cat .config \
28  | grep -v CONFIG_WERROR \  | grep -v CONFIG_WERROR \
29  | cat >.config.new  | cat >.config.new
30  mv .config.new .config  mv .config.new .config
31  echo CONFIG_WERROR=y >>.config  #echo CONFIG_WERROR=y >>.config
32    echo '# CONFIG_WERROR is not set' >>.config
33    
34  test "$libc" = glibc && {  test "$libc" = glibc && {
35  cat .config \  cat .config \
36  | grep -v ^CONFIG_SELINUX= \  | grep -v CONFIG_STATIC \
37  | grep -v ^CONFIG_EFENCE= \  | grep -v CONFIG_SELINUX \
38  | grep -v ^CONFIG_DMALLOC= \  | grep -v CONFIG_EFENCE \
39    | grep -v CONFIG_DMALLOC \
40  | cat >.config.new  | cat >.config.new
41  mv .config.new .config  mv .config.new .config
42    echo '# CONFIG_STATIC is not set' >>.config
43  }  }
44    
45  test "$libc" = uclibc && {  test "$libc" = uclibc && {
# Line 57  echo 'CONFIG_CROSS_COMPILER_PREFIX="'"$u Line 60  echo 'CONFIG_CROSS_COMPILER_PREFIX="'"$u
60  echo 'CONFIG_STATIC=y' >>.config  echo 'CONFIG_STATIC=y' >>.config
61  }  }
62    
 # If NOMMU, remove some things  
 grep -q ^CONFIG_NOMMU= .config && {  
 cat .config \  
 | grep -v ^CONFIG_ASH= \  
 | grep -v ^CONFIG_FEATURE_SH_IS_ASH= \  
 | cat >.config.new  
 mv .config.new .config  
 }  
   
63  # If STATIC, remove some things  # If STATIC, remove some things
64  # PAM with static linking is probably pointless  # PAM with static linking is probably pointless
65  # (but I need to try - now I don't have libpam.a on my system, only libpam.so)  # (but I need to try - now I don't have libpam.a on my system, only libpam.so)
# Line 76  cat .config \ Line 70  cat .config \
70  mv .config.new .config  mv .config.new .config
71  }  }
72    
 # CONFIG_NOMMU + CONFIG_HUSH + CONFIG_WERROR don't mix  
 # (produces warning)  
 grep -q ^CONFIG_NOMMU= .config && \  
 grep -q ^CONFIG_HUSH= .config && \  
 {  
 cat .config \  
 | grep -v ^CONFIG_WERROR= \  
 | cat >.config.new  
 mv .config.new .config  
 }  
   
73  # Regenerate .config with default answers for yanked-off options  # Regenerate .config with default answers for yanked-off options
74  { yes "" | make oldconfig >/dev/null; } || exit 1  { yes "" | make oldconfig >/dev/null; } || exit 1
75    
76  nice -n 10 make  nice -n 10 make $MAKEOPTS 2>&1 | tee -a make.log
77    
78  test -x busybox && {  test -x busybox && {
79      cd ..      cd ..
# Line 99  test -x busybox && { Line 82  test -x busybox && {
82  }  }
83    
84  cd ..  cd ..
85  mv "$dir" failed."$dir"  mv "$dir" "failed.$dir"
86  exit 1  exit 1

Legend:
Removed from v.983  
changed lines
  Added in v.984