This filter takes image size information from avr-size as stdin, formats it into a friendlier output format and ensures that the size is within the limits identified on the command line.
The parameters, in order, are taken from the following definitions
from the Arduino programs.txt and
boards.txt files:
recipe.size.regex
recipe.size.regex.data
upload.maximum_size
upload.maximum_data_size
This is part of the dno Arduino software builder package.
Returns success as long as the image fits within the specified limits, else an error code is returned.
dno_checksize is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.
dno_checksize is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with dno. If not, see https://www.gnu.org/licenses/.