target: sort the targets by alphabetic order

Add comments to require the list of targets to be kept sorted.

Change-Id: Ie3d7e3f5d55a9f9214dc179c5c986b6682f59412
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8951
Tested-by: jenkins
This commit is contained in:
Antonio Borneo
2025-06-14 14:51:43 +02:00
parent c92cf66c67
commit cd749419ca
2 changed files with 32 additions and 30 deletions

View File

@@ -71,44 +71,45 @@ static int target_gdb_fileio_end_default(struct target *target, int retcode,
int fileio_errno, bool ctrl_c);
static struct target_type *target_types[] = {
&arm7tdmi_target,
&arm9tdmi_target,
&arm920t_target,
&arm720t_target,
&arm966e_target,
&arm946e_target,
&arm926ejs_target,
&fa526_target,
&feroceon_target,
&dragonite_target,
&xscale_target,
&xtensa_chip_target,
&cortexm_target,
&cortexa_target,
&cortexr4_target,
// Keep in alphabetic order this list of targets
&aarch64_target,
&arcv2_target,
&arm11_target,
&ls1_sap_target,
&mips_m4k_target,
&arm720t_target,
&arm7tdmi_target,
&arm920t_target,
&arm926ejs_target,
&arm946e_target,
&arm966e_target,
&arm9tdmi_target,
&armv8r_target,
&avr32_ap7k_target,
&avr_target,
&cortexa_target,
&cortexm_target,
&cortexr4_target,
&dragonite_target,
&dsp563xx_target,
&dsp5680xx_target,
&testee_target,
&avr32_ap7k_target,
&hla_target,
&esp32_target,
&esirisc_target,
&esp32s2_target,
&esp32s3_target,
&or1k_target,
&quark_x10xx_target,
&quark_d20xx_target,
&stm8_target,
&riscv_target,
&esp32_target,
&fa526_target,
&feroceon_target,
&hla_target,
&ls1_sap_target,
&mem_ap_target,
&esirisc_target,
&arcv2_target,
&aarch64_target,
&armv8r_target,
&mips_m4k_target,
&mips_mips64_target,
&or1k_target,
&quark_d20xx_target,
&quark_x10xx_target,
&riscv_target,
&stm8_target,
&testee_target,
&xscale_target,
&xtensa_chip_target,
NULL,
};