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