jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / src / helper / update_jep106.pl
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4 use File::Basename;
5
6 if (@ARGV != 1) {
7 die "Usage: $0 <JEP106 PDF document>\n\n"
8 . "Convert the JEDEC document containing manufacturer identification codes\n"
9 . "to an array initializer suitable for inclusion into jep106.c. The latest\n"
10 . "version of the document can be found here:\n"
11 . "http://www.jedec.org/standards-documents/results/jep106\n";
12 };
13
14 my $outfile = dirname($0) . "/jep106.inc";
15
16 open(my $out, ">", $outfile) || die "Cannot open $outfile: $!\n";
17 open(my $pdftotext, "pdftotext -layout $ARGV[0] - |") || die "Cannot fork: $!\n";
18
19 print $out "/* Autogenerated with " . basename($0) . "*/\n";
20
21 my $bank = -1;
22
23 while (<$pdftotext>) {
24 if (/^[0-9]+[[:space:]]+(.*?)[[:space:]]+([01][[:space:]]+){8}([0-9A-F]{2})$/) {
25 if ($3 eq "01") {
26 $bank++
27 }
28 my $id=sprintf("0x%02x",hex($3)&0x7f);
29 print $out "[$bank][$id - 1] = \"$1\",\n";
30 }
31 }
32
33 close $pdftotext || die "Error: $! $?\n";
34
35 print $out "/* EOF */\n";

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)