From 63241f80441658f289691d6e75a482360d7c251b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 28 Sep 2012 16:37:58 -0500 Subject: 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 deletion(-) (limited to 'c') diff --git a/c/src/lib/libbsp/i386/pc386/Makefile.am b/c/src/lib/libbsp/i386/pc386/Makefile.am index 580e3b2f1e..22ba5e915d 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 55dada8dd6..1125c7c8e0 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 -- cgit v1.2.3