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

4.104.114.84.95
Last change on this file since f86582c8 was f86582c8, checked in by Joel Sherrill <joel.sherrill@…>, on May 11, 2001 at 4:51:25 PM

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

  • configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]), adapt bspopts.h handling to other sh-BSPs.
  • include/.cvsignore: Add stamp-h*, bspopts.h*.
  • include/Makefile.am: Use include_HEADERS instead of H_FILES.
  • startup/bspstart.c: Reworked, based on the amos BSP.
  • 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([-ansi -fasm])
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## bsp-specific options
64CPU_CLOCK_RATE_HZ=${CPU_CLOCK_RATE_HZ-20000000}
65AC_SUBST(CPU_CLOCK_RATE_HZ)
66AC_DEFINE_UNQUOTED(
67  [CPU_CLOCK_RATE_HZ],
68  [$CPU_CLOCK_RATE_HZ],
69  [cpu clock rate in HZ])
70
71## Used in scitab/Makefile.am
72AC_SUBST(CPU_CLOCK_RATE_HZ)
73
74AM_CONFIG_HEADER(include/bspopts.h)
75RTEMS_PROJECT_ROOT
76
77# Explicitly list all Makefiles here
78AC_OUTPUT(
79Makefile
80clock/Makefile
81console/Makefile
82include/Makefile
83scitab/Makefile
84gdbsci/Makefile
85start/Makefile
86startup/Makefile
87wrapup/Makefile)
Note: See TracBrowser for help on using the repository browser.