The calling script must define the function _setProject
after sourcing the script.
_setProject
must define the following.
-
OPTOUTPUTNAME_DEFAULT
is the name to be used by default for the prefix of the output directory. -
OPTKEYFILE_DEFAULT
is the absolute path to the key file to be used to sign the built image. If not specified, only--test
builds are possible. -
OPTNETWORK_DEFAULT
is the target network for this compile. If not specified,ttn
is assumed as the default. -
OPTREGION_DEFAULT
is the target region for this compile. If not specified,us915
is assumed as the default. -
OPTSUBBAND_DEFAULT
is the target frequency sub-band for this compile. If not specified,default
is assumed as the default. -
OPTARDUINO_SOURCE_DEFAULT
is the default target sketch. -
OPTARDUINO_BOARD_DEFAULT
is the default target board. At present, this must be an MCCI STM32 board. The script choosesMcciBootloader_4801.*
orMcciBootloader_46xx.*
based on the board.
This function, if present, takes one argument, which is the path to the input sketch. It must scan the sketch and print the semantic version to standard output.
The default _getVersion
function looks for the pattern ^constexpr std::uint32_t kAppVersion.*makeVersion(.*)
and extracts the 3- or 4-argument serial number from the parameters.
-
v2.0.1 fixes issues with error checking; correct builds worked ok. (#5).
-
v2.0.0 adds
OPTOUTPUTNAME_DEFAULT
as required input from the caller. It's therefore a breaking change. -
v1.0.0 is the initial release.
MCCI and MCCI Catena are registered trademarks of MCCI Corporation. LoRa is a registered trademark of Semtech Corporation. LoRaWAN is a registered trademark of the LoRa Alliance.
This document and the contents of this repository are copyright 2021-2022, MCCI Corporation.
This repository is released under the MIT license. Commercial licenses are also available from MCCI Corporation.
MCCI invests time and resources providing this open source code, please support MCCI and open-source hardware by purchasing products from MCCI, Adafruit and other open-source hardware/software vendors!
For information about MCCI's products, please visit store.mcci.com.