Mercurial > hg > aboriginal
comparison sources/toys/miniconfig.sh @ 349:798cdf05aca2
The comment removal heuristic breaks on 2.6.25.4 arch/ppc/configs/luan_defconfig
and that's crazy, but here's a workaround.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 10 Jun 2008 22:04:26 -0500 |
parents | d1e73f644c62 |
children | 9db12e74a380 |
comparison
equal
deleted
inserted
replaced
348:d1e73f644c62 | 349:798cdf05aca2 |
---|---|
33 then | 33 then |
34 echo Sanity test failed, normalizing starting configuration... | 34 echo Sanity test failed, normalizing starting configuration... |
35 diff -u "$1" .config | 35 diff -u "$1" .config |
36 fi | 36 fi |
37 cp .config .big.config | 37 cp .config .big.config |
38 | |
39 # Speed heuristic: remove all blank/comment lines | |
38 grep -v '^[#$]' .config | grep -v '^$' > mini.config | 40 grep -v '^[#$]' .config | grep -v '^$' > mini.config |
41 # This should never fail, but kconfig is so broken it does sometimes. | |
42 make allnoconfig KCONFIG_ALLCONFIG=mini.config > /dev/null | |
43 if ! cmp .config "$1" | |
44 then | |
45 echo Insanity test failed: reversing blank line removal heuristic. | |
46 cp .big.config mini.config | |
47 fi | |
39 #cp .config mini.config | 48 #cp .config mini.config |
40 | 49 |
41 echo "Calculating mini.config..." | 50 echo "Calculating mini.config..." |
42 | 51 |
43 LENGTH=`cat mini.config | wc -l` | 52 LENGTH=`cat mini.config | wc -l` |