You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

2 years ago
  1. # vitis_git
  2. Trying to make Vitis more git-friendly.
  3. ### Requirements
  4. - Tested on Vitis 2020.2
  5. ### How it works
  6. Vitis is a little bit less pain in the ass than Vivado to version control decently, so this repository provide:
  7. - A good to start with `.gitignore` file
  8. - Git-hook-scripts to eliminate absolute paths in project files
  9. ### Workflow
  10. #### Create new project
  11. 1. When first starting a project, create the workspace in a new folder.
  12. 2. Copy the hardware specification file (.xsa) into the workspace folder.
  13. 3. Create a new platform project called `hw_platform` and choose the copied hardware specification file.
  14. 4. Create a new application project via `File -> New -> Application Project...`, choose the platform created befor and name it as you want.
  15. 5. Copy the `.gitignore` file and the `.githooks` folder from this repository into the workspace folder.
  16. 6. Execute the following commands in the workspace folder:
  17. - `git init` - Initialize git repository in the workspace folder
  18. - `git config --local core.hooksPath .githooks` - set path to git-hooks for this repository
  19. - `git add .` - add all relevant files to the repository
  20. - `git commit -m 'initial commit'` - create initial commit