kconfig: support user-defined function and recursively expanded variable