comparison sources/toys/miniconfig.sh @ 348:d1e73f644c62

Work around the kernel's allnoconfig trying to go nuts while shrinking arch/blackfin/configs/BF548-EZKIT_defconfig in 2.6.25.4.
author Rob Landley <rob@landley.net>
date Tue, 10 Jun 2008 20:10:07 -0500
parents e6a201119439
children 798cdf05aca2
comparison
equal deleted inserted replaced
347:cede0879d885 348:d1e73f644c62
50 then 50 then
51 break 51 break
52 fi 52 fi
53 sed -n "${I}!p" mini.config > .config.test 53 sed -n "${I}!p" mini.config > .config.test
54 # Do a config with this file 54 # Do a config with this file
55 make allnoconfig KCONFIG_ALLCONFIG=.config.test > /dev/null 55 rm .config
56 56 make allnoconfig KCONFIG_ALLCONFIG=.config.test | head -n 1000000 > /dev/null
57 # Compare. Because we normalized at the start, the files should be identical. 57 # Compare. Because we normalized at the start, the files should be identical.
58 if cmp -s .config .big.config 58 if cmp -s .config .big.config
59 then 59 then
60 mv .config.test mini.config 60 mv .config.test mini.config
61 LENGTH=$[$LENGTH-1] 61 LENGTH=$[$LENGTH-1]