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