|
From: Heiko Z. <he...@zu...> - 2004-07-22 15:56:20
|
>> The script currently doesn't support 'int' at all.
>> The idea would be to add this functionality and just writing the default
>> value into the config file (i.e. CONFIG_SCx200_I2C_SCL=12 )
>
> You mean something like this?
>
>
> +++ functions 22 Jul 2004 15:20:59 -0000
> @@ -492,6 +492,9 @@
> for CFG in $( grep -s bool $FILE | cut -d "'" -f 3 | cut -d "
> " -f 2 ); do
> set_kernel_option $CFG y
> done
> + for CFG in $( grep -s "^ *int " $FILE | cut -d "'" -f 3 |
> cut -d " " -f 2,3 | sed 's/ /#/' ); do
> + set_kernel_option ${CFG%%#*} ${CFG##*#}
> + done
> done
> fi
> fi
>
>
> It seems to work for this file, but I don't know if it'll screw up any
> other scripts (other than lm_sensors) without a full mrproper compile.
>
>
> root:/data/build# FILE=tmp/linux-2.4.26/drivers/i2c/Config.in
> root:/data/build# for CFG in $( grep -s "^ *int " $FILE | cut -d "'" -f
> 3 | cut -d " " -f 2,3 | sed 's/ /#/' ); do
>> echo ${CFG%%#*} ${CFG##*#}
>> done
>
> CONFIG_SCx200_I2C_SCL 12
> CONFIG_SCx200_I2C_SDA 13
>
>
> Do you want me to commit it now, or wait until after a full compile?
I'd say add it.
Can you add it to the section for 2.6 kernel, too ? ;-)
The only problem is that the file format changed....
--
Regards
Heiko Zuerker
http://www.devil-linux.org
|