--- /dev/null
+# This is a list of toolchains that are supported on this board.\r
+set_board_info target_install {cris-elf crisv32-elf cris-aout cris-linux-gnu crisv32-linux-gnu}\r
+\r
+# Load the generic configuration for this board. This will define a basic set\r
+# of routines needed by the tool to communicate with the board.\r
+load_generic_config "sim"\r
+\r
+# basic-sim.exp is a basic description for the standard Cygnus simulator.\r
+load_base_board_description "basic-sim"\r
+\r
+# The name of the sim subdir in src/sim.\r
+setup_sim cris\r
+\r
+# This simulator isn't slow.\r
+set_board_info slow_simulator 0\r
+\r
+# No multilib options needed by default.\r
+process_multilib_options ""\r
+\r
+set cris_ldopt "-sim3"\r
+set cris_simopt ""\r
+\r
+if [istarget *-*-linux*] {\r
+ set cris_ldopt "-static"\r
+}\r
+\r
+# Support different multilibs and targets.\r
+foreach x $board_variant_list {\r
+ regsub -all "^\[ \t\]*" "$x" "" x;\r
+ regsub -all "\[ \t\]*$" "$x" "" x;\r
+\r
+ case $x in {\r
+ # We force the arch to either pre-v32 (i.e. v10) or v32 for the\r
+ # "common" compatible subset, by letting the otherwise\r
+ # functionally equivalent gcc options "-march=..." and\r
+ # "-mcpu=..." control that. (We don't have to force the\r
+ # architecture, but it's easier to make sure we can check that\r
+ # the "common" subset doesn't lose the compatibility.)\r
+\r
+ # Mnemonic: "a" is 10.\r
+ { arch=common_v10_v32 -march=common_v10_v32 } {\r
+ set cris_simopt "--architecture cris"\r
+ }\r
+\r
+ # Mnemonic: "c" is... eh... comes after 10!\r
+ { cpu=common_v10_v32 -mcpu=common_v10_v32 } {\r
+ set cris_simopt "--architecture crisv32"\r
+ }\r
+ }\r
+}\r
+\r
+if { ![board_info $board exists sim,options] && $cris_simopt != "" } {\r
+ set_board_info sim,options $cris_simopt\r
+}\r
+\r
+# Other than an already-installed glibc, we only support newlib on this\r
+# target. We assume that all multilib options have been specified\r
+# before we get here.\r
+\r
+set_board_info compiler "[find_gcc]"\r
+set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"\r
+set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags] $cris_ldopt"\r
+# No linker script needed.\r
+set_board_info ldscript ""\r