def METHOD_NAME(bootdir):
    dot_config = os.path.join(bootdir, "zephyr", ".config")
    with open(dot_config, "r") as f:
        for line in f:
            if line.startswith("CONFIG_BOARD="):
                return line.split("=", 1)[1].strip('"')
    raise Exception("Expected CONFIG_BOARD line in {}".format(dot_config))