mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 03:19:58 +03:00
2 KiB
2 KiB
Building in GitHub Codespaces
A codespace is a cloud-hosted development environment.
This guide provides a simple method to modify and build a version of INAV in the cloud.
Setup
- Navigate to the version of INAV you want to modify.
- Create a new codespace for that version.
Code> Codespaces> Create codespace on 8.x.x.
A new codespace will launch in your browser.
Modify
- Modify the code as required. You can freeley modify your copy of the INAV code from within the cloud environment.
Build
Use the terminal inside the codespace environment to run the following commands:
Prepare
4. Prepare the build:
cmake -B build -S .
Note: You may need to use ctrl+C to exit the process and return to the shell once it completes.
Target
5. (Optional) If you don't know your target name, list the availble targests with:
cmake --build build --target help
Build
6. Build the binary (replace the target name with your specific one):
cmake --build build --target NEUTRONRCF435MINI
Download
- Once the build process has complete, download the .hex binary from the build folder on the right.
Example:
inav_8.0.1_NEUTRONRCF435MINI.hex
(Right-click > Download.
Note: Codespaces are automatically deleted after a period of inactivity, or you can manually deleted them at https://github.com/codespaces