@ -224,7 +224,7 @@ OLDEST_IDX=1
RC=0
# Helper funcs for parsing boards.cfg
board s_by_field()
target s_by_field()
{
field=$1
regexp=$2
@ -233,75 +233,75 @@ boards_by_field()
boards.cfg
}
boards_by_arch() { board s_by_field 2 "$@" ; }
boards_by_cpu() { boards_by_field 3 "$@" ; board s_by_field 3 "$@:.*" ; }
boards_by_soc() { board s_by_field 4 "$@" ; }
targets_by_arch() { target s_by_field 2 "$@" ; }
targets_by_cpu() { targets_by_field 3 "$@" ; target s_by_field 3 "$@:.*" ; }
targets_by_soc() { target s_by_field 4 "$@" ; }
#########################################################################
## MPC5xx Systems
#########################################################################
LIST_5xx="$(board s_by_cpu mpc5xx)"
LIST_5xx="$(target s_by_cpu mpc5xx)"
#########################################################################
## MPC5xxx Systems
#########################################################################
LIST_5xxx="$(board s_by_cpu mpc5xxx)"
LIST_5xxx="$(target s_by_cpu mpc5xxx)"
#########################################################################
## MPC512x Systems
#########################################################################
LIST_512x="$(board s_by_cpu mpc512x)"
LIST_512x="$(target s_by_cpu mpc512x)"
#########################################################################
## MPC8xx Systems
#########################################################################
LIST_8xx="$(board s_by_cpu mpc8xx)"
LIST_8xx="$(target s_by_cpu mpc8xx)"
#########################################################################
## PPC4xx Systems
#########################################################################
LIST_4xx="$(board s_by_cpu ppc4xx)"
LIST_4xx="$(target s_by_cpu ppc4xx)"
#########################################################################
## MPC824x Systems
#########################################################################
LIST_824x="$(board s_by_cpu mpc824x)"
LIST_824x="$(target s_by_cpu mpc824x)"
#########################################################################
## MPC8260 Systems (includes 8250, 8255 etc.)
#########################################################################
LIST_8260="$(board s_by_cpu mpc8260)"
LIST_8260="$(target s_by_cpu mpc8260)"
#########################################################################
## MPC83xx Systems (includes 8349, etc.)
#########################################################################
LIST_83xx="$(board s_by_cpu mpc83xx)"
LIST_83xx="$(target s_by_cpu mpc83xx)"
#########################################################################
## MPC85xx Systems (includes 8540, 8560 etc.)
#########################################################################
LIST_85xx="$(board s_by_cpu mpc85xx)"
LIST_85xx="$(target s_by_cpu mpc85xx)"
#########################################################################
## MPC86xx Systems
#########################################################################
LIST_86xx="$(board s_by_cpu mpc86xx)"
LIST_86xx="$(target s_by_cpu mpc86xx)"
#########################################################################
## 74xx/7xx Systems
#########################################################################
LIST_74xx_7xx="$(board s_by_cpu 74xx_7xx)"
LIST_74xx_7xx="$(target s_by_cpu 74xx_7xx)"
#########################################################################
## PowerPC groups
@ -337,61 +337,61 @@ LIST_ppc=" \
## StrongARM Systems
#########################################################################
LIST_SA="$(board s_by_cpu sa1100)"
LIST_SA="$(target s_by_cpu sa1100)"
#########################################################################
## ARM7 Systems
#########################################################################
LIST_ARM7="$(board s_by_cpu arm720t)"
LIST_ARM7="$(target s_by_cpu arm720t)"
#########################################################################
## ARM9 Systems
#########################################################################
LIST_ARM9="$(board s_by_cpu arm920t) \
$(board s_by_cpu arm926ejs) \
$(board s_by_cpu arm946es) \
LIST_ARM9="$(target s_by_cpu arm920t) \
$(target s_by_cpu arm926ejs) \
$(target s_by_cpu arm946es) \
"
#########################################################################
## ARM11 Systems
#########################################################################
LIST_ARM11="$(board s_by_cpu arm1136) \
$(board s_by_cpu arm1176) \
LIST_ARM11="$(target s_by_cpu arm1136) \
$(target s_by_cpu arm1176) \
"
#########################################################################
## ARMV7 Systems
#########################################################################
LIST_ARMV7="$(board s_by_cpu armv7)"
LIST_ARMV7="$(target s_by_cpu armv7)"
#########################################################################
## AT91 Systems
#########################################################################
LIST_at91="$(board s_by_soc at91)"
LIST_at91="$(target s_by_soc at91)"
#########################################################################
## Xscale Systems
#########################################################################
LIST_pxa="$(board s_by_cpu pxa)"
LIST_pxa="$(target s_by_cpu pxa)"
LIST_ixp="$(board s_by_cpu ixp)"
LIST_ixp="$(target s_by_cpu ixp)"
#########################################################################
## SPEAr Systems
#########################################################################
LIST_spear="$(board s_by_soc spear)"
LIST_spear="$(target s_by_soc spear)"
#########################################################################
## ARM groups
#########################################################################
LIST_arm="$(board s_by_arch arm)"
LIST_arm="$(target s_by_arch arm)"
#########################################################################
## MIPS Systems (default = big endian)
@ -445,66 +445,66 @@ LIST_mips_el=" \
## OpenRISC Systems
#########################################################################
LIST_openrisc="$(board s_by_arch openrisc)"
LIST_openrisc="$(target s_by_arch openrisc)"
#########################################################################
## x86 Systems
#########################################################################
LIST_x86="$(board s_by_arch x86)"
LIST_x86="$(target s_by_arch x86)"
#########################################################################
## Nios-II Systems
#########################################################################
LIST_nios2="$(board s_by_arch nios2)"
LIST_nios2="$(target s_by_arch nios2)"
#########################################################################
## MicroBlaze Systems
#########################################################################
LIST_microblaze="$(board s_by_arch microblaze)"
LIST_microblaze="$(target s_by_arch microblaze)"
#########################################################################
## ColdFire Systems
#########################################################################
LIST_m68k="$(board s_by_arch m68k)"
LIST_m68k="$(target s_by_arch m68k)"
LIST_coldfire=${LIST_m68k}
#########################################################################
## AVR32 Systems
#########################################################################
LIST_avr32="$(board s_by_arch avr32)"
LIST_avr32="$(target s_by_arch avr32)"
#########################################################################
## Blackfin Systems
#########################################################################
LIST_blackfin="$(board s_by_arch blackfin)"
LIST_blackfin="$(target s_by_arch blackfin)"
#########################################################################
## SH Systems
#########################################################################
LIST_sh2="$(board s_by_cpu sh2)"
LIST_sh3="$(board s_by_cpu sh3)"
LIST_sh4="$(board s_by_cpu sh4)"
LIST_sh2="$(target s_by_cpu sh2)"
LIST_sh3="$(target s_by_cpu sh3)"
LIST_sh4="$(target s_by_cpu sh4)"
LIST_sh="$(board s_by_arch sh)"
LIST_sh="$(target s_by_arch sh)"
#########################################################################
## SPARC Systems
#########################################################################
LIST_sparc="$(board s_by_arch sparc)"
LIST_sparc="$(target s_by_arch sparc)"
#########################################################################
## NDS32 Systems
#########################################################################
LIST_nds32="$(board s_by_arch nds32)"
LIST_nds32="$(target s_by_arch nds32)"
#-----------------------------------------------------------------------