def process_station_config(boardfarm_config):
    """
    Add location-specific data to boardfarm stations.
    """

    if "locations" in boardfarm_config:
        location = boardfarm_config["locations"]
        del boardfarm_config["locations"]

        for board in boardfarm_config:
            if "location" in boardfarm_config[board]:
                board_location = boardfarm_config[board]["location"]
                if board_location in location:
                    for key, value in location[board_location].items():
                        if type(value) == list:
                            boardfarm_config[board][key].extend(value)
                        else:
                            boardfarm_config[board][key] = value

    return boardfarm_config