1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | |
---|
3 | AC_PREREQ([2.69]) |
---|
4 | AC_INIT([rtems-c-src-lib-libbsp-i386-pc386],[_RTEMS_VERSION],[https://devel.rtems.org/newticket]) |
---|
5 | RTEMS_TOP(../../../../../..) |
---|
6 | RTEMS_SOURCE_TOP |
---|
7 | RTEMS_BUILD_TOP |
---|
8 | RTEMS_BSP_LINKCMDS |
---|
9 | |
---|
10 | RTEMS_CANONICAL_TARGET_CPU |
---|
11 | AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2]) |
---|
12 | RTEMS_BSP_CONFIGURE |
---|
13 | |
---|
14 | RTEMS_CHECK_TOOL(OBJCOPY,objcopy,:) |
---|
15 | |
---|
16 | |
---|
17 | RTEMS_BSPOPTS_SET([BSP_ENABLE_VGA],[*],[1]) |
---|
18 | RTEMS_BSPOPTS_HELP([BSP_ENABLE_VGA], |
---|
19 | [Set if the VGA and keyboard console support is enabled.]) |
---|
20 | AM_CONDITIONAL(RTEMS_VGA,[test "$BSP_ENABLE_VGA" = "1"]) |
---|
21 | |
---|
22 | RTEMS_BSPOPTS_SET([BSP_ENABLE_COM1_COM4],[*],[1]) |
---|
23 | RTEMS_BSPOPTS_HELP([BSP_ENABLE_COM1_COM4], |
---|
24 | [Set if COM1..COM4 support is enabled.]) |
---|
25 | |
---|
26 | RTEMS_BSPOPTS_SET([BSP_ENABLE_IDE],[*],[1]) |
---|
27 | RTEMS_BSPOPTS_HELP([BSP_ENABLE_IDE], |
---|
28 | [Set if IDE support is enabled.]) |
---|
29 | AM_CONDITIONAL(HAS_IDE,[test "$BSP_ENABLE_IDE" = "1"]) |
---|
30 | |
---|
31 | RTEMS_BSPOPTS_SET([USE_COM1_AS_CONSOLE],[*],[0]) |
---|
32 | RTEMS_BSPOPTS_HELP([USE_COM1_AS_CONSOLE], |
---|
33 | [Determines, whether the console will be associated with the standard |
---|
34 | VGA display or with the COM1 serial port. Currently only the VGA |
---|
35 | display and COM1 support printk.]) |
---|
36 | |
---|
37 | RTEMS_BSPOPTS_SET([IDE_USE_PRIMARY_INTERFACE],[*],[1]) |
---|
38 | RTEMS_BSPOPTS_HELP([IDE_USE_PRIMARY_INTERFACE], |
---|
39 | [Determines, whether RTEMS will try to use the primary IDE interface. |
---|
40 | Disable it, if: |
---|
41 | - you have no primary IDE interface |
---|
42 | - or you have no disk attached to this interface |
---|
43 | - or you do not want to access disks attached to this interface]) |
---|
44 | |
---|
45 | RTEMS_BSPOPTS_SET([IDE_USE_SECONDARY_INTERFACE],[*],[0]) |
---|
46 | RTEMS_BSPOPTS_HELP([IDE_USE_SECONDARY_INTERFACE], |
---|
47 | [Determines, whether RTEMS will try to use the secondary IDE interface. |
---|
48 | Enable it, if: |
---|
49 | - you have a secondary IDE interface |
---|
50 | - and you have at least one disk attached to this interface |
---|
51 | - and you do want to access disks attached to this interface]) |
---|
52 | |
---|
53 | RTEMS_BSPOPTS_SET([BSP_VIDEO_80x50],[*],[0]) |
---|
54 | RTEMS_BSPOPTS_HELP([BSP_VIDEO_80x50], |
---|
55 | [If defined, set the VGA display to 80x50.]) |
---|
56 | |
---|
57 | RTEMS_BSPOPTS_SET([CLOCK_DRIVER_USE_TSC],[*],[0]) |
---|
58 | RTEMS_BSPOPTS_HELP([CLOCK_DRIVER_USE_TSC], |
---|
59 | [If enabled, the clock driver will use the TSC register available |
---|
60 | with Pentium-class CPUs to report close to nanosecond-accuracy |
---|
61 | clock times. |
---|
62 | Enable it, if: |
---|
63 | - you have nanosecond timing enabled (you do NOT have |
---|
64 | USE_TICKS_FOR_CPU_USAGE_STATISTICS enabled) |
---|
65 | - you do NOT have CLOCK_DRIVER_USE_8254 enabled (use one, the other, |
---|
66 | or neither) |
---|
67 | - you have a Pentium which supports TSC (all Intels, and probably |
---|
68 | all or most clones) |
---|
69 | - you do not have a variable-speed CPU clock. Note that some |
---|
70 | motherboard BIOS will automatically vary clock speed for thermal |
---|
71 | control. Note also, however, that really new Pentium-class chips |
---|
72 | from Intel and AMD will maintain a constant-rate TSC regardless. |
---|
73 | ]) |
---|
74 | |
---|
75 | #define CLOCK_DRIVER_USE_8254 $CLOCK_DRIVER_USE_8254 |
---|
76 | RTEMS_BSPOPTS_SET([CLOCK_DRIVER_USE_8254],[*],[0]) |
---|
77 | RTEMS_BSPOPTS_HELP([CLOCK_DRIVER_USE_8254], |
---|
78 | [If enabled, the clock driver will use the good old 8254 chip |
---|
79 | to report microsecond-accuracy clock times. |
---|
80 | Enable it, if: |
---|
81 | - you have nanosecond timing enabled (you do NOT have |
---|
82 | USE_TICKS_FOR_CPU_USAGE_STATISTICS enabled) |
---|
83 | - you do NOT have CLOCK_DRIVER_USE_TSC enabled (use one, the other, |
---|
84 | or neither) |
---|
85 | - you do not mind adding roughly 5 microseconds to each context switch. |
---|
86 | ]) |
---|
87 | |
---|
88 | if test "${USE_CIRRUS_GD5446}" != "1" -a "${USE_VGA}" != "1"; then |
---|
89 | USE_VBE_RM=1; |
---|
90 | if test -z "${NUM_APP_DRV_GDT_DESCRIPTORS}"; then |
---|
91 | NUM_APP_DRV_GDT_DESCRIPTORS=2 ; |
---|
92 | else |
---|
93 | NUM_APP_DRV_GDT_DESCRIPTORS+=2 ; |
---|
94 | fi |
---|
95 | fi |
---|
96 | RTEMS_BSPOPTS_SET([NUM_APP_DRV_GDT_DESCRIPTORS],[*],[0]) |
---|
97 | RTEMS_BSPOPTS_HELP([NUM_APP_DRV_GDT_DESCRIPTORS], |
---|
98 | [Defines how many descriptors in GDT may be allocated for application or |
---|
99 | driver usage.]) |
---|
100 | |
---|
101 | RTEMS_BSPOPTS_SET([USE_CIRRUS_GD5446],[*],[0]) |
---|
102 | RTEMS_BSPOPTS_HELP([USE_CIRRUS_GD5446], |
---|
103 | [If defined, enables use of the Cirrus GD5446 controller rather than the |
---|
104 | controller utilizing Vesa Bios Extensions - real mode interface. |
---|
105 | |
---|
106 | NOTE: This has only been tested on Qemu.]) |
---|
107 | AM_CONDITIONAL(USE_CIRRUS_GD5446,test "$USE_CIRRUS_GD5446" = "1") |
---|
108 | |
---|
109 | RTEMS_BSPOPTS_SET([USE_VGA],[*],[0]) |
---|
110 | RTEMS_BSPOPTS_HELP([USE_VGA], |
---|
111 | [If defined, enables use of the very basic VGA driver for framebuffer support |
---|
112 | rather than the controller utilizing Vesa Bios Extensions - real mode |
---|
113 | interface.]) |
---|
114 | AM_CONDITIONAL(USE_VGA,test "$USE_VGA" = "1") |
---|
115 | |
---|
116 | RTEMS_BSPOPTS_SET([USE_VBE_RM],[*],[0]) |
---|
117 | RTEMS_BSPOPTS_HELP([USE_VBE_RM], |
---|
118 | [Defined by default. Enables use of the Vesa Bios Extensions - real mode |
---|
119 | interface, which enables graphical mode and introduce it upon bootup.]) |
---|
120 | AM_CONDITIONAL(USE_VBE_RM,test "$USE_VBE_RM" = "1") |
---|
121 | |
---|
122 | if test X${CLOCK_DRIVER_USE_TSC} = X1 -a X${CLOCK_DRIVER_USE_8254} = X1 ; then |
---|
123 | AC_MSG_ERROR([pc386 both TSC and 8254 specified for clock driver]) |
---|
124 | fi |
---|
125 | |
---|
126 | RTEMS_BSPOPTS_SET([BSP_GDB_STUB],[*],[1]) |
---|
127 | RTEMS_BSPOPTS_HELP([BSP_GDB_STUB], |
---|
128 | [Defined by default. Enables use of the GDB stub for debugging via a |
---|
129 | serial port.]) |
---|
130 | AM_CONDITIONAL(BSP_GDB_STUB, test "$BSP_GDB_STUB" = "1") |
---|
131 | |
---|
132 | ## if this is an i386, does gas have good code16 support? |
---|
133 | RTEMS_I386_GAS_CODE16 |
---|
134 | AM_CONDITIONAL(RTEMS_GAS_CODE16,[test "$RTEMS_GAS_CODE16" = "yes"]) |
---|
135 | |
---|
136 | |
---|
137 | AC_SUBST([RTEMS_ROOT],[${rtems_updir}'$(top_builddir)']) |
---|
138 | |
---|
139 | AC_SUBST(RTEMS_BSP) |
---|
140 | |
---|
141 | RTEMS_BSP_CLEANUP_OPTIONS |
---|
142 | |
---|
143 | # Explicitly list all Makefiles here |
---|
144 | AC_CONFIG_FILES([Makefile]) |
---|
145 | AC_OUTPUT |
---|