Rewrite avrdude.conf.in file from avrdude -c* -p* output

Some manual editing is still necessary to cater for the
@HAVE_PARPORT_BEGIN@ etc sections. This commit also fixes
superfluous whitesapce at the end of avrdude.conf.in lines

Although the avrdude.conf file has changed much, the internal
representation in avrdude has not. This can be verified by
exporting the raw internal data through

  avrdude -c*/r -p*/r >/tmp/avrdude.raw

before the change and by comparing again after the change:

  avrdude -c*/r -p*/r | diff - /tmp/avrdude.raw
This commit is contained in:
Stefan Rueger 2022-08-24 01:10:51 +01:00
parent 09d14601af
commit 57ebd36a01
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
2 changed files with 9950 additions and 14171 deletions

File diff suppressed because it is too large Load Diff

View File

@ -345,7 +345,7 @@ static void dev_stack_out(bool tsv, const AVRPART *p, const char *name, const un
dev_info(tsv? "NULL\n": "NULL;"); dev_info(tsv? "NULL\n": "NULL;");
else else
for(int i=0; i<ns; i++) for(int i=0; i<ns; i++)
dev_info("%s0x%02x%s", !tsv && ns > 8 && i%8 == 0? "\n ": "", stack[i], i+1<ns? ", ": tsv? "\n": ";"); dev_info("%s0x%02x%s", !tsv && ns > 8 && i%8 == 0? "\n ": " ", stack[i], i+1<ns? ",": tsv? "\n": ";");
dev_cout(p->comments, name, 1, 1); dev_cout(p->comments, name, 1, 1);
} }