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],[http://www.rtems.org/bugzilla]) |
---|
5 | AC_CONFIG_SRCDIR([bsp_specs]) |
---|
6 | RTEMS_TOP(../../../../../..) |
---|
7 | |
---|
8 | RTEMS_CANONICAL_TARGET_CPU |
---|
9 | AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2]) |
---|
10 | RTEMS_BSP_CONFIGURE |
---|
11 | |
---|
12 | RTEMS_PROG_CC_FOR_TARGET |
---|
13 | RTEMS_CANONICALIZE_TOOLS |
---|
14 | RTEMS_CHECK_TOOL(OBJCOPY,objcopy,:) |
---|
15 | RTEMS_PROG_CCAS |
---|
16 | |
---|
17 | RTEMS_CHECK_NETWORKING |
---|
18 | RTEMS_CHECK_SMP |
---|
19 | |
---|
20 | RTEMS_BSPOPTS_SET([USE_COM1_AS_CONSOLE],[*],[0]) |
---|
21 | RTEMS_BSPOPTS_HELP([USE_COM1_AS_CONSOLE], |
---|
22 | [Determines, whether the console will be associated with the standard |
---|
23 | VGA display or with the COM1 serial port. Currently only the VGA |
---|
24 | display and COM1 support printk.]) |
---|
25 | |
---|
26 | RTEMS_BSPOPTS_SET([IDE_USE_PRIMARY_INTERFACE],[*],[1]) |
---|
27 | RTEMS_BSPOPTS_HELP([IDE_USE_PRIMARY_INTERFACE], |
---|
28 | [Determines, whether RTEMS will try to use the primary IDE interface. |
---|
29 | Disable it, if: |
---|
30 | - you have no primary IDE interface |
---|
31 | - or you have no disk attached to this interface |
---|
32 | - or you do not want to access disks attached to this interface]) |
---|
33 | |
---|
34 | RTEMS_BSPOPTS_SET([IDE_USE_SECONDARY_INTERFACE],[*],[0]) |
---|
35 | RTEMS_BSPOPTS_HELP([IDE_USE_SECONDARY_INTERFACE], |
---|
36 | [Determines, whether RTEMS will try to use the secondary IDE interface. |
---|
37 | Enable it, if: |
---|
38 | - you have a secondary IDE interface |
---|
39 | - and you have at least one disk attached to this interface |
---|
40 | - and you do want to access disks attached to this interface]) |
---|
41 | |
---|
42 | RTEMS_BSPOPTS_SET([BSP_VIDEO_80x50],[*],[0]) |
---|
43 | RTEMS_BSPOPTS_HELP([BSP_VIDEO_80x50], |
---|
44 | [If defined, set the VGA display to 80x50.]) |
---|
45 | |
---|
46 | RTEMS_BSPOPTS_SET([CLOCK_DRIVER_USE_TSC],[*],[0]) |
---|
47 | RTEMS_BSPOPTS_HELP([CLOCK_DRIVER_USE_TSC], |
---|
48 | [If enabled, the clock driver will use the TSC register available |
---|
49 | with Pentium-class CPUs to report close to nanosecond-accuracy |
---|
50 | clock times. |
---|
51 | Enable it, if: |
---|
52 | - you have nanosecond timing enabled (you do NOT have |
---|
53 | USE_TICKS_FOR_CPU_USAGE_STATISTICS enabled) |
---|
54 | - you do NOT have CLOCK_DRIVER_USE_8254 enabled (use one, the other, |
---|
55 | or neither) |
---|
56 | - you have a Pentium which supports TSC (all Intels, and probably |
---|
57 | all or most clones) |
---|
58 | - you do not have a variable-speed CPU clock. Note that some |
---|
59 | motherboard BIOS will automatically vary clock speed for thermal |
---|
60 | control. Note also, however, that really new Pentium-class chips |
---|
61 | from Intel and AMD will maintain a constant-rate TSC regardless. |
---|
62 | ]) |
---|
63 | |
---|
64 | #define CLOCK_DRIVER_USE_8254 $CLOCK_DRIVER_USE_8254 |
---|
65 | RTEMS_BSPOPTS_SET([CLOCK_DRIVER_USE_8254],[*],[0]) |
---|
66 | RTEMS_BSPOPTS_HELP([CLOCK_DRIVER_USE_8254], |
---|
67 | [If enabled, the clock driver will use the good old 8254 chip |
---|
68 | to report microsecond-accuracy clock times. |
---|
69 | Enable it, if: |
---|
70 | - you have nanosecond timing enabled (you do NOT have |
---|
71 | USE_TICKS_FOR_CPU_USAGE_STATISTICS enabled) |
---|
72 | - you do NOT have CLOCK_DRIVER_USE_TSC enabled (use one, the other, |
---|
73 | or neither) |
---|
74 | - you do not mind adding roughly 5 microseconds to each context switch. |
---|
75 | ]) |
---|
76 | |
---|
77 | RTEMS_BSPOPTS_SET([USE_CIRRUS_GD5446],[*],[0]) |
---|
78 | RTEMS_BSPOPTS_HELP([USE_CIRRUS_GD5446], |
---|
79 | [If defined, enable use of the Cirrus GD5446 controller rather than the very basic |
---|
80 | VGA driver for frame buffer support. |
---|
81 | |
---|
82 | NOTE: This has only been tested on Qemu.]) |
---|
83 | AM_CONDITIONAL(USE_CIRRUS_GD5446,test "$USE_CIRRUS_GD5446" = "1") |
---|
84 | |
---|
85 | RTEMS_BSPOPTS_SET([NUM_APP_DRV_GDT_DESCRIPTORS],[*],[0]) |
---|
86 | RTEMS_BSPOPTS_HELP([NUM_APP_DRV_GDT_DESCRIPTORS], |
---|
87 | [Defines how many descriptors in GDT may be allocated for application or |
---|
88 | driver usage.]) |
---|
89 | |
---|
90 | if test X${CLOCK_DRIVER_USE_TSC} = X1 -a X${CLOCK_DRIVER_USE_8254} = X1 ; then |
---|
91 | AC_MSG_ERROR([pc386 both TSC and 8254 specified for clock driver]) |
---|
92 | fi |
---|
93 | |
---|
94 | ## The PC386 BSP supports SMP configurations if this is enabled. |
---|
95 | RTEMS_BSPOPTS_SET([BSP_HAS_SMP],[*],[1]) |
---|
96 | RTEMS_BSPOPTS_HELP([BSP_HAS_SMP], |
---|
97 | [Always defined when on a pc386 to enable the pc386 support for |
---|
98 | determining the CPU core number in an SMP configuration.]) |
---|
99 | |
---|
100 | ## if this is an i386, does gas have good code16 support? |
---|
101 | RTEMS_I386_GAS_CODE16 |
---|
102 | AM_CONDITIONAL(RTEMS_GAS_CODE16,[test "$RTEMS_GAS_CODE16" = "yes"]) |
---|
103 | |
---|
104 | AM_CONDITIONAL(HAS_NETWORKING,[test "$HAS_NETWORKING" = "yes"]) |
---|
105 | AM_CONDITIONAL(HAS_SMP,[test "$rtems_cv_HAS_SMP" = "yes"]) |
---|
106 | |
---|
107 | AC_SUBST([RTEMS_ROOT],[${rtems_updir}'$(top_builddir)']) |
---|
108 | |
---|
109 | RTEMS_CONFIG_BUILD_SUBDIRS(tools) |
---|
110 | |
---|
111 | AC_SUBST(RTEMS_BSP) |
---|
112 | |
---|
113 | RTEMS_BSP_CLEANUP_OPTIONS(1, 1) |
---|
114 | |
---|
115 | # Explicitly list all Makefiles here |
---|
116 | AC_CONFIG_FILES([Makefile]) |
---|
117 | AC_OUTPUT |
---|