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

4.104.114.84.95
Last change on this file since b9f84f1 was b9f84f1, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 20, 2001 at 5:25:24 PM

2001-12-19 Ralf Corsepius <corsepiu@…>

  • configure.ac: Apply RTEMS_BSPOPTS_*(CPU_CLOCK_RATE_HZ).
  • console/Makefile.am: C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o).
  • wrapup/Makefile.am: Add gdbsci, scitab to BSP_FILES, add CPU_FILES.
  • Property mode set to 100644
File size: 1.9 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
19## bsp-specific options
20RTEMS_BSP_ARG_ENABLE([console],
21[  --enable-console=[[null|gdbsci1]]],[
22  case $enable_console in
23  null)
24    BSP_CONSOLE_DEVNAME=\"/dev/null\"
25    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVNULL_DRIVER_TABLE_ENTRY
26    ;;
27# Not yet
28#  trap34)
29#    BSP_CONSOLE_DEVNAME=\"/dev/trap34\"
30#    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVTRAP34_DRIVER_TABLE_ENTRY
31#    ;;
32  yes|gdbsci1)
33    BSP_CONSOLE_DEVNAME=\"/dev/gdbsci1\"
34    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVGDBSCI_DRIVER_TABLE_ENTRY
35    ;;
36  *) AC_MSG_WARN([bad value $enable_console for --enable-console=<value>])
37    ;;
38  esac],[
39    BSP_CONSOLE_DEVNAME=\"/dev/gdbsci1\"
40    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVGDBSCI_DRIVER_TABLE_ENTRY
41])
42AC_DEFINE_UNQUOTED(
43  [BSP_CONSOLE_DEVNAME],
44  [${BSP_CONSOLE_DEVNAME}],
45  [device name to redirect the console to])
46AC_DEFINE_UNQUOTED(
47  [BSP_CONSOLE_DRIVER_TABLE_ENTRY],
48  [${BSP_CONSOLE_DRIVER_TABLE_ENTRY}],
49  [Driver table entry for the console device])
50
51##
52RTEMS_BSP_ARG_ENABLE([iomem-patch],
53[  --enable-iomem-patch=[[yes|no]]])
54if test x"$enable_iomem_patch" = x"yes"; then
55AC_DEFINE_UNQUOTED(
56  [HAVE_SHSIM_IOMEM_PATCH],
57  [1],
58  [whether support for functional IOMEM in shsim/gdb shall be enabled])
59fi
60
61RTEMS_BSPOPTS_SET([CPU_CLOCK_RATE_HZ],[*],[20000000])
62RTEMS_BSPOPTS_HELP([CPU_CLOCK_RATE_HZ],
63[cpu clock rate in HZ])
64
65## Used in scitab/Makefile.am
66AC_SUBST(CPU_CLOCK_RATE_HZ)
67
68
69# Explicitly list all Makefiles here
70AC_CONFIG_FILES([Makefile
71clock/Makefile
72console/Makefile
73include/Makefile
74scitab/Makefile
75gdbsci/Makefile
76start/Makefile
77startup/Makefile
78wrapup/Makefile])
79AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.