source: rtems/c/src/lib/libbsp/powerpc/tqm8xx/configure.ac @ 438983d2

4.115
Last change on this file since 438983d2 was 438983d2, checked in by Jennifer Averett <Jennifer.Averett@…>, on 06/29/10 at 13:49:06

2010-06-29 Joel Sherrill <Joel.Sherrill@…>

  • configure.ac: Added AC_CHECK_SIZEOF macro.
  • Property mode set to 100644
File size: 5.8 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.60)
6AC_INIT([rtems-c-src-lib-libbsp-powerpc-tqm8xx],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
7AC_CONFIG_SRCDIR([bsp_specs])
8RTEMS_TOP(../../../../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.10])
12RTEMS_BSP_CONFIGURE
13
14RTEMS_PROG_CC_FOR_TARGET
15RTEMS_CANONICALIZE_TOOLS
16RTEMS_PROG_CCAS
17
18RTEMS_CHECK_NETWORKING
19AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
20
21## This is needed to generate the field offsets of the per CPU
22## data structure so they can be accessed from assembly code.
23AC_CHECK_SIZEOF([void *])
24
25RTEMS_BSPOPTS_SET([PPC_USE_DATA_CACHE],[*],[1])
26RTEMS_BSPOPTS_HELP([PPC_USE_DATA_CACHE],
27[If defined, then the PowerPC specific code in RTEMS will use
28 data cache instructions to optimize the context switch code.
29 This code can conflict with debuggers or emulators.])
30
31RTEMS_BSPOPTS_SET([DATA_CACHE_ENABLE],[*],[1])
32RTEMS_BSPOPTS_HELP([DATA_CACHE_ENABLE],
33[If defined, the data cache will be enabled after address translation
34 is turned on.])
35
36RTEMS_BSPOPTS_SET([INSTRUCTION_CACHE_ENABLE],[*],[1])
37RTEMS_BSPOPTS_HELP([INSTRUCTION_CACHE_ENABLE],
38[If defined, the instruction cache will be enabled after address translation
39 is turned on.])
40
41RTEMS_BSPOPTS_SET([CONSOLE_CHN],[*],[CONS_CHN_SMC1])
42RTEMS_BSPOPTS_HELP([CONSOLE_CHN],
43[(BSP--console driver) Must be defined to be one of CONS_CHN_SMC1,
44 CONS_CHN_SMC2, CONS_CHN_SCC1, CONS_CHN_SCC2, CONS_CHN_SCC3, or CONS_CHN_SCC4.
45 Determines which device will be registered as /dev/console.])
46
47RTEMS_BSPOPTS_SET([PRINTK_CHN],[*],[CONS_CHN_SMC1])
48RTEMS_BSPOPTS_HELP([PRINTK_CHN],
49[(BSP--console driver)
50 Must be defined to be one of CONS_CHN_SMC1, CONS_CHN_SMC2, CONS_CHN_SCC2,
51 CONS_CHN_SCC3, or CONS_CHN_SCC4. Determines which device is used for output
52 by printk(). If the port that printk() uses is also used for other
53 I/O (e.g. if  PRINTK_CHN == CONSOLE_CHN), then both ports should
54 use the same type of I/O, otherwise the drivers will likely conflict with
55 each other.])
56
57RTEMS_BSPOPTS_SET([CONS_SMC1_MODE],[tqm8xx_stk8xx],[CONS_MODE_POLLED])
58RTEMS_BSPOPTS_SET([CONS_SMC1_MODE],[pghplus],[CONS_MODE_IRQ])
59RTEMS_BSPOPTS_SET([CONS_SMC1_MODE],[*],[CONS_MODE_UNUSED])
60RTEMS_BSPOPTS_HELP([CONS_SMC1_MODE],
61[(BSP--SMC1 UART IF mode) Must be defined if SMC1 is used as a tty (UART)
62 channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for
63 interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not used])
64
65RTEMS_BSPOPTS_SET([CONS_SMC2_MODE],[tqm8xx_stk8xx],[CONS_MODE_POLLED])
66RTEMS_BSPOPTS_SET([CONS_SMC2_MODE],[*],[CONS_MODE_UNUSED])
67RTEMS_BSPOPTS_HELP([CONS_SMC2_MODE],
68[(BSP--SMC2 UART IF mode) Must be defined if SMC2 is used as a tty (UART)
69 channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for
70 interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not used])
71
72RTEMS_BSPOPTS_SET([CONS_SCC1_MODE],[*],[CONS_MODE_UNUSED])
73RTEMS_BSPOPTS_HELP([CONS_SCC1_MODE],
74[(BSP--SCC1 UART IF mode) Must be defined if SCC1 is used as a tty (UART)
75 channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for
76 interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not used])
77
78RTEMS_BSPOPTS_SET([CONS_SCC2_MODE],[*],[CONS_MODE_UNUSED])
79RTEMS_BSPOPTS_HELP([CONS_SCC2_MODE],
80[(BSP--SCC2 UART IF mode) Must be defined if SCC2 is used as a tty (UART)
81 channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for
82 interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not used])
83
84RTEMS_BSPOPTS_SET([CONS_SCC3_MODE],[*],[CONS_MODE_UNUSED])
85RTEMS_BSPOPTS_HELP([CONS_SCC3_MODE],
86[(BSP--SCC3 UART IF mode) Must be defined if SCC3 is used as a tty (UART)
87 channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for
88 interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not used])
89
90RTEMS_BSPOPTS_SET([CONS_SCC4_MODE],[*],[CONS_MODE_UNUSED])
91RTEMS_BSPOPTS_HELP([CONS_SCC4_MODE],
92[(BSP--SCC4 UART IF mode) Must be defined if SCC4 is used as a tty (UART)
93 channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for
94 interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not used])
95
96RTEMS_BSPOPTS_SET([SPI_BOARD_INIT_FNC],[pghplus],[bsp_pghplus_spi_init])
97RTEMS_BSPOPTS_SET([SPI_BOARD_INIT_FNC],[*],[bsp_dummy_spi_init])
98RTEMS_BSPOPTS_HELP([SPI_BOARD_INIT_FNC],
99[(BSP--SPI board init function) Specify the function that inits the board
100 port lines and further devices.])
101
102RTEMS_BSPOPTS_SET([SPI_SEND_STOP_FNC],[pghplus],[bsp_pghplus_spi_send_stop])
103RTEMS_BSPOPTS_SET([SPI_SEND_STOP_FNC],[*],[bsp_dummy_spi_send_stop])
104RTEMS_BSPOPTS_HELP([SPI_SEND_STOP_FNC],
105[(BSP--SPI send stop function) Specify the function that deaddresses SPI
106 devices. Set to bsp_dummy_spi_send_stop for dummy implementation])
107
108RTEMS_BSPOPTS_SET([SPI_SEND_ADDR_FNC],[pghplus],[bsp_pghplus_spi_sel_addr])
109RTEMS_BSPOPTS_SET([SPI_SEND_ADDR_FNC],[*],[bsp_dummy_spi_sel_addr])
110RTEMS_BSPOPTS_HELP([SPI_SEND_ADDR_FNC],
111[(BSP--SPI send address function) Specify the function that addresses SPI
112 devices. Set to bsp_dummy_spi_sel_addr for dummy implementation])
113
114# add selection of primary network interface
115RTEMS_BSPOPTS_SET([BSP_USE_NETWORK_FEC],[pghplus],[1])
116RTEMS_BSPOPTS_SET([BSP_USE_NETWORK_FEC],[*],[0])
117RTEMS_BSPOPTS_HELP([BSP_USE_NETWORK_FEC],
118[If defined, then the BSP will use the Fast Ethernet Controller
119 for 10/100MBit networking and used as primary networking interface.])
120
121RTEMS_BSPOPTS_SET([BSP_USE_NETWORK_SCC],[pghplus],[0])
122RTEMS_BSPOPTS_SET([BSP_USE_NETWORK_SCC],[*],[1])
123RTEMS_BSPOPTS_HELP([BSP_USE_NETWORK_SCC],
124[If defined, then the BSP will use the Serial Communications Controller (SCC1)
125 for 10MBit networking.])
126
127
128# Explicitly list a Makefile here
129AC_CONFIG_FILES([Makefile])
130
131RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
132RTEMS_BSP_LINKCMDS
133
134RTEMS_PPC_EXCEPTIONS
135
136AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.