source: rtems/c/src/lib/libbsp/i386/pc386/configure.ac @ c0c4b8b

Last change on this file since c0c4b8b was 9c601b00, checked in by Sebastian Huber <sebastian.huber@…>, on 11/15/19 at 06:05:11

bsp/i386: Remove unused BSP_HAS_SMP

Update #3818.

  • Property mode set to 100644
File size: 5.2 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-i386-pc386],[_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
14RTEMS_CHECK_TOOL(OBJCOPY,objcopy,:)
15
16
17RTEMS_BSPOPTS_SET([BSP_ENABLE_VGA],[*],[1])
18RTEMS_BSPOPTS_HELP([BSP_ENABLE_VGA],
19[Set if the VGA and keyboard console support is enabled.])
20AM_CONDITIONAL(RTEMS_VGA,[test "$BSP_ENABLE_VGA" = "1"])
21
22RTEMS_BSPOPTS_SET([BSP_ENABLE_COM1_COM4],[*],[1])
23RTEMS_BSPOPTS_HELP([BSP_ENABLE_COM1_COM4],
24[Set if COM1..COM4 support is enabled.])
25
26RTEMS_BSPOPTS_SET([BSP_ENABLE_IDE],[*],[1])
27RTEMS_BSPOPTS_HELP([BSP_ENABLE_IDE],
28[Set if IDE support is enabled.])
29AM_CONDITIONAL(HAS_IDE,[test "$BSP_ENABLE_IDE" = "1"])
30
31RTEMS_BSPOPTS_SET([USE_COM1_AS_CONSOLE],[*],[0])
32RTEMS_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
37RTEMS_BSPOPTS_SET([IDE_USE_PRIMARY_INTERFACE],[*],[1])
38RTEMS_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
45RTEMS_BSPOPTS_SET([IDE_USE_SECONDARY_INTERFACE],[*],[0])
46RTEMS_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
53RTEMS_BSPOPTS_SET([BSP_VIDEO_80x50],[*],[0])
54RTEMS_BSPOPTS_HELP([BSP_VIDEO_80x50],
55[If defined, set the VGA display to 80x50.])
56
57RTEMS_BSPOPTS_SET([CLOCK_DRIVER_USE_TSC],[*],[0])
58RTEMS_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
76RTEMS_BSPOPTS_SET([CLOCK_DRIVER_USE_8254],[*],[0])
77RTEMS_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
88if 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
95fi
96RTEMS_BSPOPTS_SET([NUM_APP_DRV_GDT_DESCRIPTORS],[*],[0])
97RTEMS_BSPOPTS_HELP([NUM_APP_DRV_GDT_DESCRIPTORS],
98[Defines how many descriptors in GDT may be allocated for application or
99 driver usage.])
100
101RTEMS_BSPOPTS_SET([USE_CIRRUS_GD5446],[*],[0])
102RTEMS_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.])
107AM_CONDITIONAL(USE_CIRRUS_GD5446,test "$USE_CIRRUS_GD5446" = "1")
108
109RTEMS_BSPOPTS_SET([USE_VGA],[*],[0])
110RTEMS_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.])
114AM_CONDITIONAL(USE_VGA,test "$USE_VGA" = "1")
115
116RTEMS_BSPOPTS_SET([USE_VBE_RM],[*],[0])
117RTEMS_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.])
120AM_CONDITIONAL(USE_VBE_RM,test "$USE_VBE_RM" = "1")
121
122if 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])
124fi
125
126RTEMS_BSPOPTS_SET([BSP_GDB_STUB],[*],[1])
127RTEMS_BSPOPTS_HELP([BSP_GDB_STUB],
128[Defined by default. Enables use of the GDB stub for debugging via a
129 serial port.])
130AM_CONDITIONAL(BSP_GDB_STUB, test "$BSP_GDB_STUB" = "1")
131
132## if this is an i386, does gas have good code16 support?
133RTEMS_I386_GAS_CODE16
134AM_CONDITIONAL(RTEMS_GAS_CODE16,[test "$RTEMS_GAS_CODE16" = "yes"])
135
136
137AC_SUBST([RTEMS_ROOT],[${rtems_updir}'$(top_builddir)'])
138
139AC_SUBST(RTEMS_BSP)
140
141RTEMS_BSP_CLEANUP_OPTIONS
142
143# Explicitly list all Makefiles here
144AC_CONFIG_FILES([Makefile])
145AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.