OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [sh/] [shsim/] [configure.ac] - Rev 1765

Compare with Previous | Blame | View Log

## Process this file with autoconf to produce a configure script.
## 
## configure.ac,v 1.4 2002/03/28 00:42:28 joel Exp

AC_PREREQ(2.52)
AC_INIT([rtems-c-src-lib-libbsp-sh-shsim],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
AC_CONFIG_SRCDIR([bsp_specs])
RTEMS_TOP(../../../../../..)
AC_CONFIG_AUX_DIR(../../../../../..)

RTEMS_CANONICAL_TARGET_CPU
AM_INIT_AUTOMAKE([no-define foreign 1.6])
RTEMS_BSP_CONFIGURE

RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
RTEMS_CANONICALIZE_TOOLS


## bsp-specific options
RTEMS_BSP_ARG_ENABLE([console],
[  --enable-console=[[null|gdbsci1]]],[
  case $enable_console in
  null)
    BSP_CONSOLE_DEVNAME=\"/dev/null\"
    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVNULL_DRIVER_TABLE_ENTRY
    ;;
# Not yet
#  trap34)
#    BSP_CONSOLE_DEVNAME=\"/dev/trap34\"
#    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVTRAP34_DRIVER_TABLE_ENTRY
#    ;;
  yes|gdbsci1)
    BSP_CONSOLE_DEVNAME=\"/dev/gdbsci1\"
    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVGDBSCI_DRIVER_TABLE_ENTRY
    ;;
  *) AC_MSG_WARN([bad value $enable_console for --enable-console=<value>])
    ;;
  esac],[
    BSP_CONSOLE_DEVNAME=\"/dev/gdbsci1\"
    BSP_CONSOLE_DRIVER_TABLE_ENTRY=DEVGDBSCI_DRIVER_TABLE_ENTRY
])
AC_DEFINE_UNQUOTED(
  [BSP_CONSOLE_DEVNAME],
  [${BSP_CONSOLE_DEVNAME}],
  [device name to redirect the console to])
AC_DEFINE_UNQUOTED(
  [BSP_CONSOLE_DRIVER_TABLE_ENTRY],
  [${BSP_CONSOLE_DRIVER_TABLE_ENTRY}],
  [Driver table entry for the console device])

##
RTEMS_BSP_ARG_ENABLE([iomem-patch],
[  --enable-iomem-patch=[[yes|no]]])
if test x"$enable_iomem_patch" = x"yes"; then
AC_DEFINE_UNQUOTED(
  [HAVE_SHSIM_IOMEM_PATCH],
  [1],
  [whether support for functional IOMEM in shsim/gdb shall be enabled])
fi

RTEMS_BSPOPTS_SET([CPU_CLOCK_RATE_HZ],[*],[20000000])
RTEMS_BSPOPTS_HELP([CPU_CLOCK_RATE_HZ],
[cpu clock rate in HZ])

## Used in scitab/Makefile.am
AC_SUBST(CPU_CLOCK_RATE_HZ)


# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile
clock/Makefile
console/Makefile
include/Makefile
scitab/Makefile
gdbsci/Makefile
start/Makefile
startup/Makefile
wrapup/Makefile])
AC_OUTPUT

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.