def compare_configs(
    expected_options: dict[str, OptionValue],
    kconfig: Kconfig,
    github_format: bool = False,
) -> None:
    """
    Compare dictionary of expected options with actual Kconfig representation.
    """
    for option, spec in expected_options.items():
        if option not in kconfig.syms:
            print(
                _format_message(
                    f"{option}={spec.value} not found",
                    file=spec.file,
                    line=spec.line,
                    github_format=github_format,
                )
            )
        elif (val := kconfig.syms[option].str_value) != spec.value:
            if spec.value is None and val == "n":
                continue
            print(
                _format_message(
                    f"{option}={spec.value} requested, actual = {val}",
                    file=spec.file,
                    line=spec.line,
                    github_format=github_format,
                )
            )

    Compare dictionary of expected options with actual Kconfig representation.
    
buildroot-external/scripts/check-dotconfig.py