author | kergoth <kergoth> | 2002-10-31 17:11:35 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-10-31 17:11:35 (UTC) |
commit | d955226c2197578f69c510282a4e9ad1ea8fe771 (patch) (unidiff) | |
tree | 0d8f210dd012559df4e3432ccc8ce96e9bd15853 /scripts/kconfig/convert-all | |
parent | 16fcb285f9ba7c514fc3f2695768a82feeb7182b (diff) | |
download | opie-d955226c2197578f69c510282a4e9ad1ea8fe771.zip opie-d955226c2197578f69c510282a4e9ad1ea8fe771.tar.gz opie-d955226c2197578f69c510282a4e9ad1ea8fe771.tar.bz2 |
Initial bits to start work on revamping the buildsystem
-rw-r--r-- | scripts/kconfig/convert-all | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/scripts/kconfig/convert-all b/scripts/kconfig/convert-all new file mode 100644 index 0000000..53e52c5 --- a/dev/null +++ b/scripts/kconfig/convert-all | |||
@@ -0,0 +1,41 @@ | |||
1 | set -x | ||
2 | #find \( -name "[Cc]onfig" -o -name "[Cc]onfig_*" \) -a ! -name "[Cc]onfig*.in" -a -type f -exec rm {} \; | ||
3 | find -name "Kconfig*" -exec rm {} \; | ||
4 | for a in alpha arm cris i386 ia64 m68k mips mips64 parisc ppc ppc64 s390 s390x sh sparc sparc64 um x86_64; do | ||
5 | $LKCSRC/lkcc $a >& log.$a | ||
6 | find -name "*.lkc" -exec mv {} {}-$a \; | ||
7 | done | ||
8 | set +x | ||
9 | if false; then | ||
10 | #check differences between generated configs for archs | ||
11 | for c in `find -name "[cC]onfig.in"`; do | ||
12 | cn=`echo $c | sed 's,\(.*\)[cC]onfig\.in,\1Build.conf,'` | ||
13 | c1='' | ||
14 | for ca in $cn-*; do | ||
15 | if [ "$c1" = "" ]; then | ||
16 | echo "skip $ca" | ||
17 | c1=$ca | ||
18 | else | ||
19 | echo $ca | ||
20 | diff -u $c1 $ca | ||
21 | fi | ||
22 | done | ||
23 | done | ||
24 | exit 0 | ||
25 | fi | ||
26 | rm *.lkc-* | ||
27 | for a in alpha arm cris i386 ia64 m68k mips mips64 parisc ppc ppc64 s390 s390x sh sparc sparc64 um x86_64; do | ||
28 | for c in `find arch/$a -name "*.lkc-$a"`; do | ||
29 | cn=`echo $c | sed 's,\(.*\)\.lkc-.*,\1,'` | ||
30 | mv -v $c $cn | ||
31 | done | ||
32 | done | ||
33 | for c in `find -name "*.lkc-i386"`; do | ||
34 | cn=`echo $c | sed 's,\(.*\)\.lkc-.*,\1,'` | ||
35 | mv -v $c $cn | ||
36 | rm $cn.lkc-* | ||
37 | done | ||
38 | for c in `find -name "*.lkc-*"`; do | ||
39 | cn=`echo $c | sed 's,\(.*\)\.lkc-.*,\1,'` | ||
40 | mv -v $c $cn | ||
41 | done | ||