1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | ## |
---|
3 | ## $Id$ |
---|
4 | |
---|
5 | AC_PREREQ(2.60) |
---|
6 | AC_INIT([rtems-c-src-lib-libbsp-sh-shsim],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
7 | AC_CONFIG_SRCDIR([bsp_specs]) |
---|
8 | RTEMS_TOP(../../../../../..) |
---|
9 | |
---|
10 | RTEMS_CANONICAL_TARGET_CPU |
---|
11 | AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.10]) |
---|
12 | RTEMS_BSP_CONFIGURE |
---|
13 | |
---|
14 | RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]) |
---|
15 | RTEMS_CANONICALIZE_TOOLS |
---|
16 | RTEMS_PROG_CCAS |
---|
17 | |
---|
18 | ## bsp-specific options |
---|
19 | RTEMS_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 | ]) |
---|
41 | AC_DEFINE_UNQUOTED( |
---|
42 | [BSP_CONSOLE_DEVNAME], |
---|
43 | [${BSP_CONSOLE_DEVNAME}], |
---|
44 | [device name to redirect the console to]) |
---|
45 | AC_DEFINE_UNQUOTED( |
---|
46 | [BSP_CONSOLE_DRIVER_TABLE_ENTRY], |
---|
47 | [${BSP_CONSOLE_DRIVER_TABLE_ENTRY}], |
---|
48 | [Driver table entry for the console device]) |
---|
49 | |
---|
50 | ## |
---|
51 | RTEMS_BSP_ARG_ENABLE([iomem-patch], |
---|
52 | [ --enable-iomem-patch=[[yes|no]]]) |
---|
53 | if test x"$enable_iomem_patch" = x"yes"; then |
---|
54 | AC_DEFINE_UNQUOTED( |
---|
55 | [HAVE_SHSIM_IOMEM_PATCH], |
---|
56 | [1], |
---|
57 | [whether support for functional IOMEM in shsim/gdb shall be enabled]) |
---|
58 | fi |
---|
59 | |
---|
60 | RTEMS_BSPOPTS_SET([CPU_CLOCK_RATE_HZ],[*],[20000000]) |
---|
61 | RTEMS_BSPOPTS_HELP([CPU_CLOCK_RATE_HZ], |
---|
62 | [cpu clock rate in HZ]) |
---|
63 | |
---|
64 | RTEMS_BSPOPTS_SET([START_HW_INIT],[*],[]) |
---|
65 | RTEMS_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 |
---|
70 | AC_SUBST(CPU_CLOCK_RATE_HZ) |
---|
71 | |
---|
72 | BSP_BOOTCARD_OPTIONS |
---|
73 | |
---|
74 | # Explicitly list all Makefiles here |
---|
75 | AC_CONFIG_FILES([Makefile]) |
---|
76 | AC_OUTPUT |
---|