2 KiB
2 KiB
ChibiOS Upgrade Procedure
ChibiOS and ChibiOS-Contrib need to be updated in tandem -- the latter has a branch tied to the ChibiOS version in use and should not be mixed with different versions.
Getting ChibiOS
svnInitialisation:- Only needed to be done once
- You might need to separately install
git-svnpackage in your OS's package manager git svn init --stdlayout --prefix='svn/' http://svn.osdn.net/svnroot/chibios/git remote add qmk git@github.com:qmk/ChibiOS.git
- Updating:
git svn fetch- First time around this will take several hours
- Subsequent updates will be incremental only
- Tagging example (work out which version first!):
git tag -a ver20.3.3 -m ver20.3.3 svn/tags/ver20.3.3git push qmk ver20.3.3git tag -a breaking_YYYY_qN -m breaking_YYYY_qN svn/tags/ver20.3.3git push qmk breaking_YYYY_qN
Getting ChibiOS-Contrib
gitInitialisation:git clone git@github.com:qmk/ChibiOS-Contribgit remote add upstream https://github.com/ChibiOS/ChibiOS-Contribgit checkout -b chibios-20.3.x upstream/chibios-20.3.x
- Updating:
git fetch --all --tags --prunegit checkout chibios-20.3.xgit pull --ff-onlygit push origin chibios-20.3.xgit tag -a breaking_YYYY_qN -m breaking_YYYY_qN chibios-20.3.xgit push origin breaking_YYYY_qN
Updating submodules
- Update the submodules
cd $QMK_FIRMWAREgit checkout developgit pull --ff-onlygit checkout -b chibios-version-bumpcd lib/chibiosgit fetch --all --tags --prunegit checkout breaking_YYYY_qNcd ../chibios-contribgit fetch --all --tags --prunegit checkout breaking_YYYY_qN
- Build everything
cd $QMK_FIRMWAREqmk multibuild -j4- Make sure there are no errors
- Push to the repo
git commit -am 'Update ChibiOS to XXXXXXXXX'git push --set-upstream origin chibios-version-bump
- Make a PR to qmk_firmware with the new branch