firesim/.github/scripts/build-vitis-driver.py

21 lines
650 B
Python
Executable File

#!/usr/bin/env python3
from fabric.api import prefix, run, execute # type: ignore
from ci_variables import ci_env
def build_vitis_driver():
"""Runs compilation of Vitis driver for the make-default tuple"""
# assumptions:
# - the firesim repo is already setup in a prior script
# - machine-launch-script requirements are already installed
with prefix(f"cd {ci_env['REMOTE_WORK_DIR']}"):
with prefix('source sourceme-manager.sh --skip-ssh-setup'):
with prefix("cd ./sim"):
run("make PLATFORM=vitis vitis")
if __name__ == "__main__":
execute(build_vitis_driver, hosts=["localhost"])