1 | dnl $Id$ |
---|
2 | |
---|
3 | dnl Report all available bsps for a target within the source tree |
---|
4 | dnl |
---|
5 | dnl RTEMS_CHECK_BSPS(bsp_list) |
---|
6 | AC_DEFUN([RTEMS_CHECK_BSPS], |
---|
7 | [ |
---|
8 | AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target |
---|
9 | AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir |
---|
10 | |
---|
11 | AC_MSG_CHECKING([for available BSPs]) |
---|
12 | $1= |
---|
13 | for bsp_spec in `ls "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU"/*/bsp_specs 2>/dev/null`; do |
---|
14 | bsp_family=`echo "$bsp_spec" | sed \ |
---|
15 | -e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/,," \ |
---|
16 | -e "s,/bsp_specs$,,"` |
---|
17 | case $bsp_family in |
---|
18 | # Now account for BSPs with build variants |
---|
19 | csb337) bsps="csb337 csb637";; |
---|
20 | c4xsim) bsps="c4xsim c3xsim";; |
---|
21 | gen68360) bsps="gen68360 gen68360_040 pgh360";; |
---|
22 | tqm8xx) bsps="pghplus tqm8xx_stk8xx";; |
---|
23 | genmcf548x) bsps="m5484FireEngine";; |
---|
24 | p4000) bsps="p4600 p4650";; |
---|
25 | mvme162) bsps="mvme162 mvme162lx";; |
---|
26 | mbx8xx) bsps="mbx821_001 mbx860_001b" |
---|
27 | bsps="$bsps mbx821_002 mbx821_002b" |
---|
28 | bsps="$bsps mbx860_002" |
---|
29 | bsps="$bsps mbx860_005b" |
---|
30 | ;; |
---|
31 | gen5200) bsps="pm520_cr825 pm520_ze30 brs5l icecube";; |
---|
32 | h8sim) bsps="h8sim h8sxsim";; |
---|
33 | mpc55xxevb) bsps="mpc5566evb";; |
---|
34 | gen83xx) bsps="mpc8349eamds hsc_cm01 mpc8313erdb";; |
---|
35 | motorola_powerpc) bsps="mvme2307 mcp750 mtx603e mvme2100";; |
---|
36 | pc386) bsps="pc386 pc386dx pc486 pc586 pc686";; |
---|
37 | erc32) bsps="erc32 sis";; |
---|
38 | rtl22xx) bsps="rtl22xx rtl22xx_t";; |
---|
39 | lpc24xx) bsps="lpc24xx_ea lpc24xx_ncs_rom_int lpc24xx_ncs_rom_ext lpc24xx_ncs_ram";; |
---|
40 | sim68000) bsps="sim68000 simcpu32";; |
---|
41 | shsim) bsps="simsh1 simsh2 simsh4";; |
---|
42 | m32cbsp) bsps="m32csim";; |
---|
43 | *) bsps="$bsp_family";; |
---|
44 | esac; |
---|
45 | $1="[$]$1 $bsps" |
---|
46 | done |
---|
47 | AS_IF([test -z "[$]$1"], |
---|
48 | [AC_MSG_RESULT([none])], |
---|
49 | [AC_MSG_RESULT([$]$1)]) |
---|
50 | ])dnl |
---|