Brainstorming for enable Kconfig on compat-wireless
Step 1
Using the existing kernel's config, generate a Kconfig file that contains all the right symbols for that kernel: cat .config | genkconf.sh > kernel-kconfig where the script is this:
while read line ; do
case "${line:0:7}" in
"CONFIG_")
line="${line:7}"
cfg="${line%%=*}"
val="${line#*=}"
cfgtype="skip"
if [ "$val" = "m" ] ; then
cfgtype="tristate"
elif [ "$val" = "y" ] ; then
cfgtype="bool"
fi
if [ "$cfgtype" != "skip" ] ; then
echo "config $cfg"
echo " $cfgtype"
echo " default $val"
echo ""
fi
;;
"# CONFI")
cfg="${line:9}"
cfg="${cfg%% is not set}"
echo "config $cfg"
echo " bool"
echo " default n"
echo ""
;;
esac
done