def remove_device_tree(cls, abs_dtbo): """Remove device tree segment for the overlay. Parameters ---------- abs_dtbo : str The absolute path to the device tree segment. """ cls.client_request() dtbo_base_name = get_dtbo_base_name(abs_dtbo) cls._devicetree_dict[dtbo_base_name].remove() del cls._devicetree_dict[dtbo_base_name] cls.server_update()
def insert_device_tree(cls, abs_dtbo): """Insert device tree segment. For device tree segments associated with full / partial bitstreams, users can provide the relative or absolute paths of the dtbo files. Parameters ---------- abs_dtbo : str The absolute path to the device tree segment. """ cls.client_request() dtbo_base_name = get_dtbo_base_name(abs_dtbo) cls._devicetree_dict[dtbo_base_name] = DeviceTreeSegment(abs_dtbo) cls._devicetree_dict[dtbo_base_name].remove() cls._devicetree_dict[dtbo_base_name].insert() cls.server_update()