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

4.104.11
Last change on this file since 512d0fc was 512d0fc, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 15, 2008 at 7:18:31 PM

2008-09-15 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, include/bsp.h, startup/linkcmds: Use shared bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. After factoring this out, it turned out that all SuperH BSPs has the same bsp_start() implementation so this was made shared.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.60)
6AC_INIT([rtems-c-src-lib-libbsp-sh-shsim],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
7AC_CONFIG_SRCDIR([bsp_specs])
8RTEMS_TOP(../../../../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.10])
12RTEMS_BSP_CONFIGURE
13
14RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
15RTEMS_CANONICALIZE_TOOLS
16RTEMS_PROG_CCAS
17
18## bsp-specific options
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
60RTEMS_BSPOPTS_SET([CPU_CLOCK_RATE_HZ],[*],[20000000])
61RTEMS_BSPOPTS_HELP([CPU_CLOCK_RATE_HZ],
62[cpu clock rate in HZ])
63
64RTEMS_BSPOPTS_SET([START_HW_INIT],[*],[])
65RTEMS_BSPOPTS_HELP([START_HW_INIT],
66[If defined, selects whether 'early_hw_init()' is called from 'start.S';
67 'bsp_hw_init()' is always called from 'bspstart.c'])
68
69## Used in scitab/Makefile.am
70AC_SUBST(CPU_CLOCK_RATE_HZ)
71
72RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
73
74# Explicitly list all Makefiles here
75AC_CONFIG_FILES([Makefile])
76AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.