InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.63k stars 902 forks source link

Updated docker build scripts #1960

Open jones139 opened 5 months ago

jones139 commented 5 months ago

Updated docker build scripts to provide a simple command line, and allow building of a single target (e.g. pinetime-mcuboot-app) without errors from post_build.sh

From the main InfiniTime repository folder I do: ./docker/runBuild pinetime-mcuboot-app to create a dfu file for just the main InfiniTime firmware without re-building the other components.

I still haven't found out how to solve the issue with the version number not updating when you change it in CMakelists.txt - so might add that change to this Pull Request if I fix it tomorrow.

github-actions[bot] commented 5 months ago

Build checks have not completed. Possible reasons for this are:

  1. The checks need to be approved by a maintainer
  2. The branch has conflicts
  3. The firmware build has failed
jones139 commented 5 months ago

I have added in a change to src/CMakelists.txt which forces SystemInfo.cpp to re-compile whenever Version.h changes (which will usually be because of a change to the version number in ./CMakelists.txt). This fixes the issue with the DFU .zip file having one version number in the filename, but the version number displayed in the SystemInfo (About) screen being different (Discussion #1956)