Dennis Buchhorn a43a0064ff | 2 years ago | |
---|---|---|
.gitea | 2 years ago | |
.githooks | 2 years ago | |
.gitignore | 2 years ago | |
README.md | 2 years ago | |
README_PROJECT_TEMPLATE.md | 2 years ago |
Trying to make Vitis more git-friendly.
When you use this repository as template, in the new created repository you can delete this file and rename README_PROJECT_TEMPLATE.md
to README.md
.
Vitis is a little bit less pain in the ass than Vivado to version control decently, so this repository provide:
A good to start with .gitignore
file.
Git-hook-scripts to eliminate absolute paths in project files.
Use this repository as template and take the Git Content
.
Clone the new created repository - This folder will be the workspace folder.
Execute the following command in the workspace folder:
git config --local core.hooksPath .githooks
- set path to git-hooks for this repository.Copy the hardware specification file (.xsa) into the workspace folder.
Open Vitis and select the cloned folder as workspace - vitis -workspace .
.
Create a new platform project called hw_platform
and choose the copied hardware specification file.
Build the platform project.
Create a new application project via File -> New -> Application Project...
, choose the platform created befor and name the application project as you want.
Execute the following commands in the workspace folder:
git add .
- add all relevant files to the repository - Files that are not relevant are ignored by the .gitignore
file.
git commit -m 'create project'
- create project commit.
After cloning the repository execute the following commands in the cloned folder:
git config --local core.hooksPath .githooks
- set path to git-hooks for this repository.
git checkout BRANCH
- checkout the BRANCH you want to work with (e.g. master
) which create local project files (because the hook script will be executed now ; this could take a while).
Open Vitis and select the cloned folder as workspace.
Click on Inport Project
, choose Import projects from Git
and click Next >
.
Choose Existing local repository
and click Next >
.
Choose the cloned / workspace folder (should be the only entry) and click Next >
.
Choose Import existing Eclipse projects
and click Next >
.
Leave everything unchanged and click Finish
.