[d7aecdc] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | ## |
---|
| 3 | ## $Id$ |
---|
| 4 | |
---|
| 5 | AC_PREREQ(2.52) |
---|
| 6 | AC_INIT |
---|
| 7 | AC_CONFIG_SRCDIR([bsp_specs]) |
---|
| 8 | RTEMS_TOP(../../../../../..) |
---|
| 9 | AC_CONFIG_AUX_DIR(../../../../../..) |
---|
| 10 | |
---|
| 11 | RTEMS_CANONICAL_TARGET_CPU |
---|
| 12 | AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-powerpc-mbx8xx,$RTEMS_VERSION,no) |
---|
[9e1ae79] | 13 | RTEMS_BSP_CONFIGURE |
---|
[d7aecdc] | 14 | |
---|
| 15 | RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]) |
---|
| 16 | RTEMS_CANONICALIZE_TOOLS |
---|
| 17 | RTEMS_ENABLE_LIBCDIR |
---|
| 18 | RTEMS_ENABLE_NETWORKING |
---|
| 19 | |
---|
| 20 | RTEMS_CHECK_NETWORKING |
---|
| 21 | |
---|
[bb507e9] | 22 | |
---|
| 23 | RTEMS_BSPOPTS_SET([PPC_USE_DATA_CACHE],[mbx860_005b],[0]) |
---|
| 24 | RTEMS_BSPOPTS_SET([PPC_USE_DATA_CACHE],[*],[1]) |
---|
| 25 | RTEMS_BSPOPTS_HELP([PPC_USE_DATA_CACHE], |
---|
| 26 | [If defined, then the PowerPC specific code in RTEMS will use |
---|
| 27 | data cache instructions to optimize the context switch code. |
---|
| 28 | This code can conflict with debuggers or emulators.]) |
---|
| 29 | |
---|
[14e1c414] | 30 | RTEMS_BSPOPTS_SET([DATA_CACHE_ENABLE],[*],[1]) |
---|
| 31 | RTEMS_BSPOPTS_HELP([DATA_CACHE_ENABLE], |
---|
| 32 | [If defined, the data cache will be enabled after address translation |
---|
| 33 | is turned on.]) |
---|
| 34 | |
---|
| 35 | RTEMS_BSPOPTS_SET([INSTRUCTION_CACHE_ENABLE],[*],[1]) |
---|
| 36 | RTEMS_BSPOPTS_HELP([INSTRUCTION_CACHE_ENABLE], |
---|
| 37 | [If defined, the instruction cache will be enabled after address translation |
---|
| 38 | is turned on.]) |
---|
| 39 | |
---|
[bb507e9] | 40 | RTEMS_BSPOPTS_SET([NVRAM_CONFIGURE],[mbx860_005b],[0]) |
---|
| 41 | RTEMS_BSPOPTS_SET([NVRAM_CONFIGURE],[*],[1]) |
---|
| 42 | RTEMS_BSPOPTS_HELP([NVRAM_CONFIGURE], |
---|
| 43 | [Define to 1 if you want the console driver, network driver and caches |
---|
| 44 | configured at boot time from parameters stored in NVRAM. If set to 1, |
---|
| 45 | most parameters below are ignored during the build. If not set to 1, |
---|
| 46 | then the console driver is configured at build time, the network host |
---|
| 47 | information is obtained from application supplied data structures, and |
---|
| 48 | the caches are configured at boot time based on the information |
---|
| 49 | supplied |
---|
| 50 | in this file.]) |
---|
| 51 | |
---|
| 52 | RTEMS_BSPOPTS_SET([UARTS_USE_TERMIOS],[mbx860_005b],[1]) |
---|
| 53 | RTEMS_BSPOPTS_SET([UARTS_USE_TERMIOS],[*],[0]) |
---|
| 54 | RTEMS_BSPOPTS_HELP([UARTS_USE_TERMIOS], |
---|
| 55 | [Define to 1 if you want termios support for every port. |
---|
| 56 | Termios support is independent of the choice of UART I/O mode.]) |
---|
| 57 | |
---|
| 58 | RTEMS_BSPOPTS_SET([CONSOLE_MINOR],[mbx860_005b],[SMC1_MINOR]) |
---|
| 59 | RTEMS_BSPOPTS_SET([CONSOLE_MINOR],[*],[SMC2_MINOR]) |
---|
| 60 | RTEMS_BSPOPTS_HELP([CONSOLE_MINOR], |
---|
| 61 | [(BSP--console driver) Must be defined to be one of SMC1_MINOR, |
---|
| 62 | SMC2_MINOR, SCC2_MINOR, SCC3_MINOR, or SCC4_MINOR. |
---|
| 63 | Determines which device will be registered as /dev/console.]) |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | RTEMS_BSPOPTS_SET([UARTS_IO_MODE],[*],[0]) |
---|
| 67 | RTEMS_BSPOPTS_HELP([UARTS_IO_MODE], |
---|
| 68 | [(BSP--console driver) |
---|
| 69 | Define to 0 or 1 if you want polled I/O performed by RTEMS. |
---|
| 70 | Define to 1 if you want interrupt-driven performed by RTEMS. |
---|
| 71 | Define to 2 if you want polled I/O performed by EPPCBug. |
---|
| 72 | There is no provision to have a mix of interrupt-driven and polled I/O |
---|
| 73 | ports, except that the printk port may use a different mode from the |
---|
| 74 | other ports. If this is done, do not open the printk port from an RTEMS |
---|
| 75 | application. With EPPCBug 1.1, if mode 2 is selected, CONSOLE_MINOR |
---|
| 76 | must be set to SMC1_MINOR. This is a deficiency of the firmware: it |
---|
| 77 | does not perform serial I/O on any port other than its default debug |
---|
| 78 | port, which must be SMC1.]) |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | RTEMS_BSPOPTS_SET([PRINTK_MINOR],[mbx860_005b],[SMC1_MINOR]) |
---|
| 82 | RTEMS_BSPOPTS_SET([PRINTK_MINOR],[*],[SMC2_MINOR]) |
---|
| 83 | RTEMS_BSPOPTS_HELP([PRINTK_MINOR], |
---|
| 84 | [(BSP--console driver) |
---|
| 85 | Must be defined to be one of SMC1_MINOR, SMC2_MINOR, SCC2_MINOR, |
---|
| 86 | SCC3_MINOR, or SCC4_MINOR. Determines which device is used for output |
---|
| 87 | by printk(). If the port that printk() uses is also used for other |
---|
| 88 | I/O (e.g. if PRINTK_MINOR == \$CONSOLE_MINOR), then both ports should |
---|
| 89 | use the same type of I/O, otherwise the drivers will likely conflict with |
---|
| 90 | each other.]) |
---|
| 91 | |
---|
| 92 | RTEMS_BSPOPTS_SET([PRINTK_IO_MODE],[*],[0]) |
---|
| 93 | RTEMS_BSPOPTS_HELP([PRINTK_IO_MODE], |
---|
| 94 | [(BSP--console driver) |
---|
| 95 | Define to 0 or 1 if you want polled I/O performed by RTEMS. |
---|
| 96 | Define to 2 if you want polled I/O performed by EPPCBug. |
---|
| 97 | The printk() port is not configured to use termios. With EPPCBug 1.1, |
---|
| 98 | if mode 2 is selected, PRINTK_MINOR must be set to SMC1_MINOR. |
---|
| 99 | This is a deficiency of the firmware: it does not perform serial I/O |
---|
| 100 | on any port other than its default debug port, which must be SMC1. |
---|
| 101 | Printk always uses polled output.]) |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | RTEMS_BSPOPTS_SET([EPPCBUG_SMC1],[mbx860_005b],[]) |
---|
| 105 | RTEMS_BSPOPTS_SET([EPPCBUG_SMC1],[*],[1]) |
---|
| 106 | RTEMS_BSPOPTS_HELP([EPPCBUG_SMC1], |
---|
| 107 | [(BSP--console driver) |
---|
| 108 | If defined, SMC1 is in use by EPPC-Bug. The console driver will not |
---|
| 109 | re-initialize that port.]) |
---|
| 110 | |
---|
| 111 | RTEMS_BSPOPTS_SET([EPPCBUG_VECTORS],[mbx860_005b],[]) |
---|
| 112 | RTEMS_BSPOPTS_SET([EPPCBUG_VECTORS],[*],[1]) |
---|
| 113 | RTEMS_BSPOPTS_HELP([EPPCBUG_VECTORS], |
---|
| 114 | [(BSP--RTEMS) |
---|
| 115 | If defined, vectors branch to EPPCBug, except the following: |
---|
| 116 | 0x500 (external interrupt), 0x900 (decrementer).]) |
---|
| 117 | |
---|
[d7aecdc] | 118 | AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes") |
---|
| 119 | |
---|
| 120 | # Explicitly list a Makefile here |
---|
| 121 | AC_CONFIG_FILES([Makefile |
---|
| 122 | clock/Makefile |
---|
| 123 | console/Makefile |
---|
| 124 | include/Makefile |
---|
| 125 | irq/Makefile |
---|
| 126 | network/Makefile |
---|
| 127 | startup/Makefile |
---|
| 128 | vectors/Makefile |
---|
| 129 | wrapup/Makefile]) |
---|
[bb507e9] | 130 | |
---|
| 131 | RTEMS_PPC_EXCEPTIONS([new]) |
---|
| 132 | |
---|
[d7aecdc] | 133 | AC_OUTPUT |
---|