Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Drop video SDK version selection since no more "release" on the GitHub.
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed Jan 12, 2022
1 parent 5d5f2b1 commit 37f2a65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ aws_fpga_sdk_override_group: false

# Xilinx Video SDK
xilinx_video_sdk_install: false
xilinx_video_sdk_version: ""

# Internals variables
# -------------------
Expand Down
5 changes: 1 addition & 4 deletions filter_plugins/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,13 +436,12 @@ def xrt_platform_pkg_files(plt_package_src, unarchive, ansible_facts, directory)
return [join(directory, file) for file in files]


def video_sdk_release_dir(unarchive, version, ansible_facts, directory):
def video_sdk_release_dir(unarchive, ansible_facts, directory):
"""
Get release directory for Xilinx Video SDK.
Args:
unarchive (dict): "unarchive" task.
version (str): Xilinx Video SDK version.
ansible_facts (dict): Ansible facts.
directory (str): Directory path.
Expand All @@ -467,8 +466,6 @@ def video_sdk_release_dir(unarchive, version, ansible_facts, directory):
dist,
"_",
dist_version,
"_",
str(version),
"_.*$",
)
)
Expand Down
17 changes: 1 addition & 16 deletions tasks/video_sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,6 @@
notify: Clean up Video SDK temporary directory
when: not vsdk_xclbin.stat.exists

- name: Get the Xilinx Video SDK latest release
uri:
url: https://api.github.com/repos/Xilinx/video-sdk/releases/latest
body_format: json
register: _vsdk_release
retries: 10
delay: 1
until: _vsdk_release is successful
when: xilinx_video_sdk_version is not defined

- name: Set the Xilinx Video SDK version to the latest release
set_fact:
xilinx_video_sdk_version: "{{ _vsdk_release.json['tag_name'] }}"
when: xilinx_video_sdk_version is not defined

- name: Ensure tar is present
package:
name: tar
Expand Down Expand Up @@ -59,7 +44,7 @@

- name: Set Xilinx Video SDK release directory
set_fact:
vsdk_release_path: "{{ vsdk_tar | video_sdk_release_dir(xilinx_video_sdk_version, ansible_facts, vsdk_tmp.path) }}"
vsdk_release_path: "{{ vsdk_tar | video_sdk_release_dir(ansible_facts, vsdk_tmp.path) }}"
when: not vsdk_xclbin.stat.exists

- name: Ensure Xilinx Video SDK dependencies are present
Expand Down

0 comments on commit 37f2a65

Please sign in to comment.