source: rtems/c/src/lib/libbsp/sh/shsim/configure.in @ f0ef873

4.104.114.84.95
Last change on this file since f0ef873 was f0ef873, checked in by Joel Sherrill <joel.sherrill@…>, on May 9, 2001 at 1:12:23 PM

2001-05-09 Ralf Corsepius <corsepiu@…>

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