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