Files
foc/l4/mk/redo_defconfigs
2013-01-11 17:00:47 +01:00

23 lines
335 B
Bash
Executable File

#! /bin/sh
set -x
TMPDIR=$(mktemp -d)
exithandler()
{
rm -r $TMPDIR
}
trap exithandler EXIT
cd ..
for i in mk/defconfig/config.*; do
cp $i $TMPDIR/.kconfig
make O=$TMPDIR oldconfig
diff -u $i $TMPDIR/.kconfig
grep -v '^CONFIG_DROPS_' $TMPDIR/.kconfig > $i
rm $TMPDIR/.kconfig $TMPDIR/.config.all $TMPDIR/.config
done