summaryrefslogtreecommitdiff
path: root/scripts/kconfig/convert-all
authorkergoth <kergoth>2002-10-31 17:11:35 (UTC)
committer kergoth <kergoth>2002-10-31 17:11:35 (UTC)
commitd955226c2197578f69c510282a4e9ad1ea8fe771 (patch) (side-by-side diff)
tree0d8f210dd012559df4e3432ccc8ce96e9bd15853 /scripts/kconfig/convert-all
parent16fcb285f9ba7c514fc3f2695768a82feeb7182b (diff)
downloadopie-d955226c2197578f69c510282a4e9ad1ea8fe771.zip
opie-d955226c2197578f69c510282a4e9ad1ea8fe771.tar.gz
opie-d955226c2197578f69c510282a4e9ad1ea8fe771.tar.bz2
Initial bits to start work on revamping the buildsystem
Diffstat (limited to 'scripts/kconfig/convert-all') (more/less context) (ignore whitespace changes)
-rw-r--r--scripts/kconfig/convert-all41
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 @@
+set -x
+#find \( -name "[Cc]onfig" -o -name "[Cc]onfig_*" \) -a ! -name "[Cc]onfig*.in" -a -type f -exec rm {} \;
+find -name "Kconfig*" -exec rm {} \;
+for a in alpha arm cris i386 ia64 m68k mips mips64 parisc ppc ppc64 s390 s390x sh sparc sparc64 um x86_64; do
+ $LKCSRC/lkcc $a >& log.$a
+ find -name "*.lkc" -exec mv {} {}-$a \;
+done
+set +x
+if false; then
+ #check differences between generated configs for archs
+ for c in `find -name "[cC]onfig.in"`; do
+ cn=`echo $c | sed 's,\(.*\)[cC]onfig\.in,\1Build.conf,'`
+ c1=''
+ for ca in $cn-*; do
+ if [ "$c1" = "" ]; then
+ echo "skip $ca"
+ c1=$ca
+ else
+ echo $ca
+ diff -u $c1 $ca
+ fi
+ done
+ done
+ exit 0
+fi
+rm *.lkc-*
+for a in alpha arm cris i386 ia64 m68k mips mips64 parisc ppc ppc64 s390 s390x sh sparc sparc64 um x86_64; do
+ for c in `find arch/$a -name "*.lkc-$a"`; do
+ cn=`echo $c | sed 's,\(.*\)\.lkc-.*,\1,'`
+ mv -v $c $cn
+ done
+done
+for c in `find -name "*.lkc-i386"`; do
+ cn=`echo $c | sed 's,\(.*\)\.lkc-.*,\1,'`
+ mv -v $c $cn
+ rm $cn.lkc-*
+done
+for c in `find -name "*.lkc-*"`; do
+ cn=`echo $c | sed 's,\(.*\)\.lkc-.*,\1,'`
+ mv -v $c $cn
+done