Add parseKernelConfigTypedValue

For text like:

    CONFIG_FOO=123
    CONFIG_BAR=y
    CONFIG_BAZ=hwbinder

It guessed the type set the value accordingly.

    CONFIG_FOO: integer, value=123
    CONFIG_BAR: tristate, value=yes
    CONFIG_BAZ: string, value="hwbinder"

This is useful when parsing android-base.cfg.

Test: assemble_vintf works
Bug: 38324908
Change-Id: I30040177728202149120dc456f704193a573e6a4
3 files changed