mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Merge pull request #428 from ZachMassia/generic-targets
Add external programmer and SPIFFS targets to Emacs
This commit is contained in:
@ -57,12 +57,14 @@ command and generate project via :option:`platformio init --ide` command:
|
|||||||
cmake .
|
cmake .
|
||||||
|
|
||||||
|
|
||||||
There are 4 predefined targets for building.
|
There are 6 predefined targets for building.
|
||||||
|
|
||||||
* ``platformio_build`` - Build project without auto-uploading. (``C-c i b``)
|
* ``platformio_build`` - Build project without auto-uploading. (``C-c i b``)
|
||||||
* ``platformio_upload`` - Build and upload (if no errors). (``C-c i u``)
|
* ``platformio_upload`` - Build and upload (if no errors). (``C-c i u``)
|
||||||
* ``platformio_clean`` - Clean compiled objects. (``C-c i c``)
|
* ``platformio_programmer_upload`` - Build and upload using external programmer (if no errors). (``C-c i p``)
|
||||||
* ``platformio_update`` - Update installed platforms and libraries. (``C-c i d``)
|
* ``platformio_spiffs_upload`` - Upload files to file system SPIFFS). (``C-c i s``)
|
||||||
|
* ``platformio_clean`` - Clean compiled objects. (``C-c i c``)
|
||||||
|
* ``platformio_update`` - Update installed platforms and libraries. (``C-c i d``)
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
The libraries which are added, installed or used in the project
|
The libraries which are added, installed or used in the project
|
||||||
|
@ -39,6 +39,18 @@ add_custom_target(
|
|||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
platformio_programmer_upload ALL
|
||||||
|
COMMAND ${PLATFORMIO_CMD} -f -c emacs run --target program
|
||||||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
platformio_spiffs_upload ALL
|
||||||
|
COMMAND ${PLATFORMIO_CMD} -f -c emacs run --target uploadfs
|
||||||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
add_custom_target(
|
add_custom_target(
|
||||||
platformio_update ALL
|
platformio_update ALL
|
||||||
COMMAND ${PLATFORMIO_CMD} -f -c emacs update
|
COMMAND ${PLATFORMIO_CMD} -f -c emacs update
|
||||||
|
Reference in New Issue
Block a user