#! /bin/sh if [ -z "$1" ]; then echo "usage: $0 " exit 1 fi KVER=$1 BASEDIR=/home/chris/prog/C/kconfig DIR=/home/chris/work/scratch/ssd01/kernels/linux-$KVER/scripts/kconfig if [ ! -e "$DIR" ]; then echo "$DIR does not exist" exit 1 fi if [ -e "$DIR" -a ! -d "$DIR" ]; then echo "$DIR exists but is not a directory" exit 1 fi if [ ! -e "$BASEDIR" ]; then echo "basedir '$BASEDIR' does not exist" exit 1 fi if [ -e "$BASEDIR" -a ! -d "$DIR" ]; then echo "basedir '$BASEDIR' exists but is not a directory" exit 1 fi cd $BASEDIR # ln -s jo/printconf.c-5a ./printconf.c cp printconf.c $DIR cp patches/lkc.h.diff $DIR #cp data/Kconfig* $DIR cd $DIR #flex --outfile zconf.lex.c zconf.l #gperf zconf.gperf --output-file zconf.hash.c #bison zconf.y cp zconf.hash.c_shipped zconf.hash.c cp zconf.lex.c_shipped zconf.lex.c cp zconf.tab.c_shipped zconf.tab.c patch < lkc.h.diff make () { gcc -Wp,-MD,.conf.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncursesw -DCURSES_LOC="" -DLOCALE -c -o printconf.o printconf.c gcc -Wp,-MD,.zconf.tab.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncursesw -DCURSES_LOC="" -DLOCALE -I. -c -o zconf.tab.o zconf.tab.c gcc -o printconf printconf.o zconf.tab.o } make cd ../.. SRCARCH=x86 ARCH=x86 KERNELVERSION=$KVER scripts/kconfig/printconf Kconfig > Kconfig.xml cp -ax Kconfig.xml ../kconfig-$KVER.xml