Using WindRiver with Git

Using WindRiver with Git is simple, although it requires a few more steps to ensure that WindRiver and Git play nicely together.

Git Ignore
When using Git with WindRiver it is important to ignore several files to ensure that the project works on other persons computers.

To do this, copy the below into .gitignore in the project's repository and commit.

#Ignore object files *.[oa] #Ignore any project files .cproject .project .wrmakefile .wrproject #Ignore any output files PPC603gnu/

Cloning a Git Repository into WindRiver

 * 1) Run Wind River Workbench 3.0.
 * 2) Go to File->New->Example...
 * 3) Select VxWorks Downloadable Kernel Module Sample Project and click Next
 * 4) Select FRC Default Program and click Finish
 * 5) Right-click on BuiltinDefaultCode in the Project Explorer and select Rename.
 * 6) Enter the desired project name (usually the same as the Git repository name).
 * 7) In the project directory in the Project Explorer, delete BuildinDefaultCode.cpp and sample.txt.
 * 8) Open Git Bash
 * 9) Navigate to the WindRiver workspace directory (by default it is in C:\WindRiver\workspace\)
 * 10) Enter in the command git clone [url] [project-name]
 * 11) *[url] is the url of the Git repository
 * 12) *[project-name] is the name of the project which was created in WindRiver earlier
 * 13) Right-click in the Project Explorer and select Refresh.
 * 14) Right-click the [project name] project, and go to Build Options->Clean Project. The project should now be set up.