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

4.115
Last change on this file since ec494ff was ec494ff, checked in by Jan Dolezal <dolezj21@…>, on 11/20/14 at 14:00:26

i386/pc386: configurable size of descriptor tables

  • Property mode set to 100644
File size: 4.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],[http://www.rtems.org/bugzilla])
5AC_CONFIG_SRCDIR([bsp_specs])
6RTEMS_TOP(../../../../../..)
7
8RTEMS_CANONICAL_TARGET_CPU
9AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
10RTEMS_BSP_CONFIGURE
11
12RTEMS_PROG_CC_FOR_TARGET
13RTEMS_CANONICALIZE_TOOLS
14RTEMS_CHECK_TOOL(OBJCOPY,objcopy,:)
15RTEMS_PROG_CCAS
16
17RTEMS_CHECK_NETWORKING
18RTEMS_CHECK_SMP
19
20RTEMS_BSPOPTS_SET([USE_COM1_AS_CONSOLE],[*],[0])
21RTEMS_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
26RTEMS_BSPOPTS_SET([IDE_USE_PRIMARY_INTERFACE],[*],[1])
27RTEMS_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
34RTEMS_BSPOPTS_SET([IDE_USE_SECONDARY_INTERFACE],[*],[0])
35RTEMS_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
42RTEMS_BSPOPTS_SET([BSP_VIDEO_80x50],[*],[0])
43RTEMS_BSPOPTS_HELP([BSP_VIDEO_80x50],
44[If defined, set the VGA display to 80x50.])
45
46RTEMS_BSPOPTS_SET([CLOCK_DRIVER_USE_TSC],[*],[0])
47RTEMS_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
65RTEMS_BSPOPTS_SET([CLOCK_DRIVER_USE_8254],[*],[0])
66RTEMS_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
77RTEMS_BSPOPTS_SET([USE_CIRRUS_GD5446],[*],[0])
78RTEMS_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.])
83AM_CONDITIONAL(USE_CIRRUS_GD5446,test "$USE_CIRRUS_GD5446" = "1")
84
85RTEMS_BSPOPTS_SET([NUM_APP_DRV_GDT_DESCRIPTORS],[*],[0])
86RTEMS_BSPOPTS_HELP([NUM_APP_DRV_GDT_DESCRIPTORS],
87[Defines how many descriptors in GDT may be allocated for application or
88 driver usage.])
89
90if 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])
92fi
93
94## The PC386 BSP supports SMP configurations if this is enabled.
95RTEMS_BSPOPTS_SET([BSP_HAS_SMP],[*],[1])
96RTEMS_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?
101RTEMS_I386_GAS_CODE16
102AM_CONDITIONAL(RTEMS_GAS_CODE16,[test "$RTEMS_GAS_CODE16" = "yes"])
103
104AM_CONDITIONAL(HAS_NETWORKING,[test "$HAS_NETWORKING" = "yes"])
105AM_CONDITIONAL(HAS_SMP,[test "$rtems_cv_HAS_SMP" = "yes"])
106
107AC_SUBST([RTEMS_ROOT],[${rtems_updir}'$(top_builddir)'])
108
109RTEMS_CONFIG_BUILD_SUBDIRS(tools)
110
111AC_SUBST(RTEMS_BSP)
112
113RTEMS_BSP_CLEANUP_OPTIONS(1, 1)
114
115# Explicitly list all Makefiles here
116AC_CONFIG_FILES([Makefile])
117AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.