https://github.com/lbuque/platformio-patch
https://github.com/lbuque/platformio-patch
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/lbuque/platformio-patch
- Owner: lbuque
- Created: 2022-11-08T06:49:41.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T07:46:41.000Z (over 3 years ago)
- Last Synced: 2025-03-15T13:41:44.687Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PlatformIO-Patch
=================
PlatformIO Package Manager automatically installs pre-built packages (Frameworks, toolchains, libraries) required by development Development Platforms and build process. Sometimes you need to override original files with own versions: configure custom GPIO, do changes to built-in LD scripts, or some patching to installed library dependency.[^1]
``PlatformIO-Patch`` was created to solve this problem.
[^1]: This instruction is from https://docs.platformio.org/en/latest/scripting/examples/override_package_files.html
Example
--------
platformio.ini
```ini
[patch]
root_dir = ../..
patches = 0001.patch
0002.patch
[env:my_env]
extra_scripts = pre:pio_patch.py
custom_patch_section = patch
```
``custom_patch_section``: Specifies the section used by PlatformIO-Patch
``root_dir``: specify root directory for applying patch
``patches``: patch list
Application
------------
https://github.com/Xinyuan-LilyGO/T-Wristband/blob/master/examples/T-Wristband-DRV2605/platformio.ini
Suggestion
-----------
Any useful suggestions are welcome!