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

4.115
Last change on this file since 12072880 was 12072880, checked in by Sebastian Huber <sebastian.huber@…>, on 12/04/14 at 09:03:50

Update bug report URL

  • Property mode set to 100644
File size: 4.7 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])
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([USE_VBE_RM],[*],[0])
86RTEMS_BSPOPTS_HELP([USE_VBE_RM],
87[If defined, enables use of the Vesa Bios Extensions - real mode interface,
88 which enables graphical mode and introduce it upon bootup.])
89AM_CONDITIONAL(USE_VBE_RM,test "$USE_VBE_RM" = "1")
90
91if test "${USE_VBE_RM}" = "1" ; then
92  if test -z "${NUM_APP_DRV_GDT_DESCRIPTORS}"; then
93      NUM_APP_DRV_GDT_DESCRIPTORS=2 ;
94  else
95      NUM_APP_DRV_GDT_DESCRIPTORS+=2 ;
96  fi
97fi
98RTEMS_BSPOPTS_SET([NUM_APP_DRV_GDT_DESCRIPTORS],[*],[0])
99RTEMS_BSPOPTS_HELP([NUM_APP_DRV_GDT_DESCRIPTORS],
100[Defines how many descriptors in GDT may be allocated for application or
101 driver usage.])
102
103if test X${CLOCK_DRIVER_USE_TSC} = X1 -a X${CLOCK_DRIVER_USE_8254} = X1 ; then
104  AC_MSG_ERROR([pc386 both TSC and 8254 specified for clock driver])
105fi
106
107## The PC386 BSP supports SMP configurations if this is enabled.
108RTEMS_BSPOPTS_SET([BSP_HAS_SMP],[*],[1])
109RTEMS_BSPOPTS_HELP([BSP_HAS_SMP],
110[Always defined when on a pc386 to enable the pc386 support for
111 determining the CPU core number in an SMP configuration.])
112
113## if this is an i386, does gas have good code16 support?
114RTEMS_I386_GAS_CODE16
115AM_CONDITIONAL(RTEMS_GAS_CODE16,[test "$RTEMS_GAS_CODE16" = "yes"])
116
117AM_CONDITIONAL(HAS_NETWORKING,[test "$HAS_NETWORKING" = "yes"])
118AM_CONDITIONAL(HAS_SMP,[test "$rtems_cv_HAS_SMP" = "yes"])
119
120AC_SUBST([RTEMS_ROOT],[${rtems_updir}'$(top_builddir)'])
121
122RTEMS_CONFIG_BUILD_SUBDIRS(tools)
123
124AC_SUBST(RTEMS_BSP)
125
126RTEMS_BSP_CLEANUP_OPTIONS(1, 1)
127
128# Explicitly list all Makefiles here
129AC_CONFIG_FILES([Makefile])
130AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.