tcl: board: mini2440: fix to work with the current version
[fw/openocd] / contrib / gen-stellaris-part-header.pl
index 0cc567f72fbafadf760f460d0957cb89fb660c8a..3f982f4ab0efc84ff8d79e05deaa2dd66aaa6980 100755 (executable)
@@ -1,4 +1,6 @@
 #!/usr/bin/perl
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # Automatically generates the StellarisParts struct in src/flash/nor/stellaris.c
 # Uses the header files from TI/Luminary's StellarisWare complete Firmware Development Package
 # available from: http://www.luminarymicro.com/products/software_updates.html
@@ -6,7 +8,7 @@
 $comment = "// Autogenerated by contrib/gen-stellaris-part-header.pl
 // From Stellaris Firmware Development Package revision";
 
-$struct_header = "static struct {
+$struct_header = "static const struct {
        uint8_t class;
        uint8_t partno;
        const char *partname;