[rtems commit] pc386: Add Cirrus FB Driver to Makefile and configure.ac
Joel Sherrill
joel at rtems.org
Fri Sep 28 21:34:16 UTC 2012
Module: rtems
Branch: master
Commit: 63241f80441658f289691d6e75a482360d7c251b
Changeset: http://git.rtems.org/rtems/commit/?id=63241f80441658f289691d6e75a482360d7c251b
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Fri Sep 28 16:37:58 2012 -0500
pc386: Add Cirrus FB Driver to Makefile and configure.ac
The user has to explicitly enable this driver, choosing
it over the existing (and lame) CGA frame buffer driver
using USE_CIRRUS_GD5446=1 on the configure command line.
---
c/src/lib/libbsp/i386/pc386/Makefile.am | 6 +++++-
c/src/lib/libbsp/i386/pc386/configure.ac | 8 ++++++++
2 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/c/src/lib/libbsp/i386/pc386/Makefile.am b/c/src/lib/libbsp/i386/pc386/Makefile.am
index 580e3b2..22ba5e9 100644
--- a/c/src/lib/libbsp/i386/pc386/Makefile.am
+++ b/c/src/lib/libbsp/i386/pc386/Makefile.am
@@ -83,7 +83,6 @@ include_HEADERS += ../../i386/shared/comm/i386_io.h
libbsp_a_SOURCES += console/inch.c
libbsp_a_SOURCES += console/outch.c
libbsp_a_SOURCES += console/defkeymap.c
-libbsp_a_SOURCES += console/fb_vga.c
libbsp_a_SOURCES += console/keyboard.c
libbsp_a_SOURCES += console/pc_keyb.c
libbsp_a_SOURCES += console/ps2_mouse.c
@@ -104,6 +103,11 @@ libbsp_a_SOURCES += console/printk_support.c
libbsp_a_SOURCES += console/vgacons.c
libbsp_a_SOURCES += console/exar17d15x.c
libbsp_a_SOURCES += console/rtd316.c
+if USE_CIRRUS_GD5446
+libbsp_a_SOURCES += console/fb_cirrus.c
+else
+libbsp_a_SOURCES += console/fb_vga.c
+endif
# gdb
libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c
diff --git a/c/src/lib/libbsp/i386/pc386/configure.ac b/c/src/lib/libbsp/i386/pc386/configure.ac
index 55dada8..1125c7c 100644
--- a/c/src/lib/libbsp/i386/pc386/configure.ac
+++ b/c/src/lib/libbsp/i386/pc386/configure.ac
@@ -74,6 +74,14 @@ RTEMS_BSPOPTS_HELP([CLOCK_DRIVER_USE_8254],
- you do not mind adding roughly 5 microseconds to each context switch.
])
+RTEMS_BSPOPTS_SET([USE_CIRRUS_GD5446],[*],[0])
+RTEMS_BSPOPTS_HELP([USE_CIRRUS_GD5446],
+[If defined, enable use of the Cirrus GD5446 controller rather than the very basic
+ VGA driver for frame buffer support.
+
+ NOTE: This has only been tested on Qemu.])
+AM_CONDITIONAL(USE_CIRRUS_GD5446,test "$USE_CIRRUS_GD5446" = "1")
+
if test X${CLOCK_DRIVER_USE_TSC} = X1 -a X${CLOCK_DRIVER_USE_8254} = X1 ; then
AC_MSG_ERROR([pc386 both TSC and 8254 specified for clock driver])
fi
More information about the vc
mailing list