source: rtems/c/src/lib/libbsp/sh/shsim/configure.ac @ 9e1ae79

4.104.114.84.95
Last change on this file since 9e1ae79 was 9e1ae79, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 3, 2001 at 1:07:18 AM

2001-11-30 Ralf Corsepius <corsepiu@…>

  • configure.ac: Introduce RTEMS_BSP_CONFIGURE.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.52)
6AC_INIT
7AC_CONFIG_SRCDIR([bsp_specs])
8RTEMS_TOP(../../../../../..)
9AC_CONFIG_AUX_DIR(../../../../../..)
10
11RTEMS_CANONICAL_TARGET_CPU
12AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-sh-shsim,$RTEMS_VERSION,no)
13RTEMS_BSP_CONFIGURE
14
15RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
16RTEMS_CANONICALIZE_TOOLS
17
18
19RTEMS_BSP_ARG_ENABLE([console],
20[  --enable-console=[[null|gdbsci1]]],[
21  case $enable_console in
22  null)
23    BSP_CONSOLE_DEVNAME=\"/dev/null\"
24    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVNULL_DRIVER_TABLE_ENTRY
25    ;;
26# Not yet
27#  trap34)
28#    BSP_CONSOLE_DEVNAME=\"/dev/trap34\"
29#    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVTRAP34_DRIVER_TABLE_ENTRY
30#    ;;
31  yes|gdbsci1)
32    BSP_CONSOLE_DEVNAME=\"/dev/gdbsci1\"
33    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVGDBSCI_DRIVER_TABLE_ENTRY
34    ;;
35  *) AC_MSG_WARN([bad value $enable_console for --enable-console=<value>])
36    ;;
37  esac],[
38    BSP_CONSOLE_DEVNAME=\"/dev/gdbsci1\"
39    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVGDBSCI_DRIVER_TABLE_ENTRY
40])
41AC_DEFINE_UNQUOTED(
42  [BSP_CONSOLE_DEVNAME],
43  [${BSP_CONSOLE_DEVNAME}],
44  [device name to redirect the console to])
45AC_DEFINE_UNQUOTED(
46  [BSP_CONSOLE_DRIVER_TABLE_ENTRY],
47  [${BSP_CONSOLE_DRIVER_TABLE_ENTRY}],
48  [Driver table entry for the console device])
49
50##
51RTEMS_BSP_ARG_ENABLE([iomem-patch],
52[  --enable-iomem-patch=[[yes|no]]])
53if test x"$enable_iomem_patch" = x"yes"; then
54AC_DEFINE_UNQUOTED(
55  [HAVE_SHSIM_IOMEM_PATCH],
56  [1],
57  [whether support for functional IOMEM in shsim/gdb shall be enabled])
58fi
59
60## bsp-specific options
61CPU_CLOCK_RATE_HZ=${CPU_CLOCK_RATE_HZ-20000000}
62AC_SUBST(CPU_CLOCK_RATE_HZ)
63AC_DEFINE_UNQUOTED(
64  [CPU_CLOCK_RATE_HZ],
65  [$CPU_CLOCK_RATE_HZ],
66  [cpu clock rate in HZ])
67
68## Used in scitab/Makefile.am
69AC_SUBST(CPU_CLOCK_RATE_HZ)
70
71
72# Explicitly list all Makefiles here
73AC_CONFIG_FILES([Makefile
74clock/Makefile
75console/Makefile
76include/Makefile
77scitab/Makefile
78gdbsci/Makefile
79start/Makefile
80startup/Makefile
81wrapup/Makefile])
82AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.