You can have version control over your PetaLinux project directory <plnx-proj-root>, excluding the following:
- <plnx-proj-root>/.petalinux
- <plnx-proj-root>/!.petalinux/metadata
- <plnx-proj-root>/build/
- <plnx-proj-root>/images/linux
- <plnx-proj-root>/pre-built/linux
- <plnx-proj-root>/components/plnx-workspace/
- <plnx-proj-root>/components/yocto/
- <plnx-proj-root>/*/*/config.old
- <plnx-proj-root>/*/*/rootfs_config.old
- <plnx-proj-root>/*.o
- <plnx-proj-root>/*.log
- <plnx-proj-root>/*.jou
By default, these files are added into <plnx-proj-root>/.gitignore while creating the project.
Note: A PetaLinux project should
be cleaned using
petalinux-build -x mrproper before
submitting it to the source control.Note: TMPDIR in
petalinux-config should be unique for each user in
concurrent development.Note: There will be significant differences
between config.old and config files in SDT flow to add or update the Yocto
Machine name. However, this will not cause any functional issues.