source: rtems/c/src/lib/libbsp/powerpc/gen5200/configure.ac

Last change on this file was 37dc047, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 21, 2018 at 8:00:43 AM

bsps: Remove AC_CONFIG_SRCDIR()

This AC_CONFIG_SRCDIR() is just a sanity check in this insane build
system. Since all content of
c/src/lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@ is bound to be moved it
makes no sense to keep it.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 5.0 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems-c-src-lib-libbsp-powerpc-gen5200],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
5RTEMS_TOP(../../../../../..)
6RTEMS_SOURCE_TOP
7RTEMS_BUILD_TOP
8RTEMS_BSP_LINKCMDS
9
10RTEMS_CANONICAL_TARGET_CPU
11AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
12RTEMS_BSP_CONFIGURE
13
14
15RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([*],[1])
16RTEMS_BSPOPTS_HELP_DATA_CACHE_ENABLED
17
18RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([*],[1])
19RTEMS_BSPOPTS_HELP_INSTRUCTION_CACHE_ENABLED
20
21RTEMS_BSPOPTS_SET([BENCHMARK_IRQ_PROCESSING],[*],[0])
22RTEMS_BSPOPTS_HELP([BENCHMARK_IRQ_PROCESSING],
23[If set to !0, enable code to benchmark IRQ processing.])
24
25RTEMS_BSPOPTS_SET([ALLOW_IRQ_NESTING],[icecube],[0])
26RTEMS_BSPOPTS_SET([ALLOW_IRQ_NESTING],[*],[1])
27RTEMS_BSPOPTS_HELP([ALLOW_IRQ_NESTING],
28[If set to !0, allow nested IRQ processing.])
29
30RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[icecube],[1])
31RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[0])
32RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET],
33[If set to !0, print a message and wait until pressed before resetting
34 board when application exits.])
35
36RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[icecube],[1])
37RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[pm520_*],[1])
38RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[brs*l],[1])
39RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[*],[0])
40RTEMS_BSPOPTS_HELP([BSP_RESET_BOARD_AT_EXIT],
41[If set to !0, reset the board when the application exits.])
42
43RTEMS_BSPOPTS_SET([BSP_GPIOPCR_INITMASK],[pm520_ze30],[0x037F3F07])
44RTEMS_BSPOPTS_SET([BSP_GPIOPCR_INITVAL],[pm520_ze30],[0x01552104])
45
46RTEMS_BSPOPTS_SET([BSP_GPIOPCR_INITMASK],[brs*l],[0xb30F0F77])
47RTEMS_BSPOPTS_SET([BSP_GPIOPCR_INITVAL],[brs*l],[0x91050444])
48
49RTEMS_BSPOPTS_SET([BSP_GPIOPCR_INITMASK],[dp2],[0x337F3F77])
50RTEMS_BSPOPTS_SET([BSP_GPIOPCR_INITVAL],[dp2],[0x03550040])
51
52RTEMS_BSPOPTS_SET([BSP_GPIOPCR_INITMASK],[*],[0x330F0F77])
53RTEMS_BSPOPTS_SET([BSP_GPIOPCR_INITVAL],[*],[0x01050444])
54
55RTEMS_BSPOPTS_HELP([BSP_GPIOPCR_INITMASK],
56[Defines the bits cleared in the MPC5200 GPIOPCR register during
57initialization.  Must match the hardware requirements.  Must be consistent with
58BSP_GPIOPCR_INITVAL.  The bits are cleared via BSP_GPIOPCR_INITMASK and then
59set via BSP_GPIOPCR_INITVAL.])
60RTEMS_BSPOPTS_HELP([BSP_GPIOPCR_INITVAL],
61[Defines the bits set in the MPC5200 GPIOPCR register during initialization.
62Must match the hardware requirements.  Must be consistent with
63BSP_GPIOPCR_INITMASK.  The bits are cleared via BSP_GPIOPCR_INITMASK and then
64set via BSP_GPIOPCR_INITVAL.])
65
66## on ze30, we have PSC1/4/5/6 ...
67RTEMS_BSPOPTS_SET([BSP_UART_AVAIL_MASK],[pm520_ze30],[0x39])
68## on cr825, we have PSC1/2/3
69RTEMS_BSPOPTS_SET([BSP_UART_AVAIL_MASK],[pm520_cr825],[0x07])
70## on brs5l and brs6l, we have PSC1/2/3
71RTEMS_BSPOPTS_SET([BSP_UART_AVAIL_MASK],[brs*l],[0x07])
72## on icecube, we only have PSC1
73RTEMS_BSPOPTS_SET([BSP_UART_AVAIL_MASK],[icecube],[0x01])
74## dp2: PSC2 (via USB connector), PSC6 (GPS module)
75RTEMS_BSPOPTS_SET([BSP_UART_AVAIL_MASK],[dp2],[0x22])
76## default
77RTEMS_BSPOPTS_SET([BSP_UART_AVAIL_MASK],[*],[0x01])
78RTEMS_BSPOPTS_HELP([BSP_UART_AVAIL_MASK],
79[bit mask to specify the UARTS (PSCs), which should be enabled on this board.
80 Must match the hardware requirements. PSC1 corresponds to the LSB])
81
82RTEMS_BSPOPTS_SET([MPC5200_PSC_INDEX_FOR_GPS_MODULE],[dp2],[5])
83RTEMS_BSPOPTS_HELP([MPC5200_PSC_INDEX_FOR_GPS_MODULE],[PSC index for GPS module, if defined results in '/dev/gps'])
84
85RTEMS_BSPOPTS_SET([SINGLE_CHAR_MODE],[*],[])
86RTEMS_BSPOPTS_HELP([SINGLE_CHAR_MODE],[enable single character mode for the PSC console driver])
87
88RTEMS_BSPOPTS_SET([UARTS_USE_TERMIOS_INT],[*],[1])
89RTEMS_BSPOPTS_HELP([UARTS_USE_TERMIOS_INT],[enable interrupt support for the PSC console driver])
90
91RTEMS_BSPOPTS_SET([PRINTK_MINOR],[dp2],[1])
92RTEMS_BSPOPTS_SET([PRINTK_MINOR],[*],[0])
93RTEMS_BSPOPTS_HELP([PRINTK_MINOR],[console minor number used by printk()])
94
95RTEMS_BSPOPTS_SET([MPC5200_BOARD_PM520_ZE30],[pm520_ze30],[1])
96RTEMS_BSPOPTS_HELP([MPC5200_BOARD_PM520_ZE30],
97[enable settings for PM520 ZE30])
98
99RTEMS_BSPOPTS_SET([MPC5200_BOARD_PM520_CR825],[pm520_cr825],[1])
100RTEMS_BSPOPTS_HELP([MPC5200_BOARD_PM520_CR825],
101[enable settings for PM520 CR825])
102
103RTEMS_BSPOPTS_SET([MPC5200_BOARD_ICECUBE],[icecube],[1])
104RTEMS_BSPOPTS_HELP([MPC5200_BOARD_ICECUBE],
105[enable settings for IceCube])
106
107RTEMS_BSPOPTS_SET([MPC5200_BOARD_BRS5L],[brs5l],[1])
108RTEMS_BSPOPTS_HELP([MPC5200_BOARD_BRS5L],
109[enable settings for BRS5L])
110
111RTEMS_BSPOPTS_SET([MPC5200_BOARD_BRS6L],[brs6l],[1])
112RTEMS_BSPOPTS_HELP([MPC5200_BOARD_BRS6L],
113[enable settings for BRS6L])
114
115RTEMS_BSPOPTS_SET([MPC5200_BOARD_DP2],[dp2],[1])
116RTEMS_BSPOPTS_HELP([MPC5200_BOARD_DP2],
117[enable settings for DP2])
118
119RTEMS_BSPOPTS_SET([HAS_UBOOT],[pm520*],[1])
120RTEMS_BSPOPTS_SET([HAS_UBOOT],[icecube],[1])
121RTEMS_BSPOPTS_SET([HAS_UBOOT],[dp2],[1])
122RTEMS_BSPOPTS_HELP([HAS_UBOOT],[enable U-Boot startup])
123
124
125# Explicitly list all Makefiles here
126AC_CONFIG_FILES([Makefile])
127
128RTEMS_BSP_CLEANUP_OPTIONS
129
130RTEMS_PPC_EXCEPTIONS
131
132AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.