forked from mfulz_github/qmk_firmware
* Add support for building against ChibiOS svn/trunk. * Swap to 21.6.x * Update to latest branch revision as released version is broken. * Updated configs. * Conf updates. * Updated ChibiOS * Convert STM32L422 to actual L422 ChibiOS platform. * Downgrade to 20.3.4 as ChibiOS 21.6.x is being aborted. * Rollback L422-based boards.
2.1 KiB
2.1 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.4 -m ver20.3.4 svn/tags/ver20.3.4git push qmk ver20.3.4git tag -a develop_YYYY_qN -m develop_YYYY_qN svn/tags/ver20.3.4git push qmk develop_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 develop_YYYY_qN -m develop_YYYY_qN chibios-20.3.xgit push origin develop_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 develop_YYYY_qNcd ../chibios-contribgit fetch --all --tags --prunegit checkout develop_YYYY_qN
- Update ChibiOS configs within QMK
cd $QMK_FIRMWARE./util/chibios_conf_updater.sh
- Build everything
cd $QMK_FIRMWAREqmk multibuild -j4- Make sure there are no errors
- Push to the repo
git commit -am 'Update ChibiOS to 99.9.9'git push --set-upstream origin chibios-version-bump
- Make a PR to qmk_firmware with the new branch