Author: ray
Date: Sun Dec  8 22:49:12 2013
New Revision: 259110
URL: http://svnweb.freebsd.org/changeset/base/259110

Log:
  o Build syscons(9)'s splash support if both sc and splash are enabled.
  o Include opt_splash.h for vt(9) to know when splash device is enabled.
  o Build logo_freebsd.c only if splash and vt are enabled.
  o Include opt_compat.h to know when we have to respect compatibility.
  
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/conf/files
  head/sys/dev/vt/vt.h
  head/sys/dev/vt/vt_core.c

Modified: head/sys/conf/files
==============================================================================
--- head/sys/conf/files Sun Dec  8 21:59:46 2013        (r259109)
+++ head/sys/conf/files Sun Dec  8 22:49:12 2013        (r259110)
@@ -1398,7 +1398,7 @@ dev/exca/exca.c                   optional cbb
 dev/fatm/if_fatm.c             optional fatm pci
 dev/fb/fbd.c                   optional fbd | vt
 dev/fb/fb_if.m                 standard
-dev/fb/splash.c                        optional splash
+dev/fb/splash.c                        optional sc splash
 dev/fdt/fdt_common.c           optional fdt
 dev/fdt/fdt_ic_if.m            optional fdt
 dev/fdt/fdt_pci.c              optional fdt pci
@@ -2468,7 +2468,7 @@ dev/vt/font/vt_font_default.c     optional v
 dev/vt/font/vt_mouse_cursor.c  optional vt
 dev/vt/hw/fb/vt_fb.c           optional vt
 dev/vt/hw/vga/vga.c            optional vt vt_vga
-dev/vt/logo/logo_freebsd.c     optional vt
+dev/vt/logo/logo_freebsd.c     optional vt splash
 dev/vt/vt_buf.c                        optional vt
 dev/vt/vt_consolectl.c         optional vt
 dev/vt/vt_core.c               optional vt

Modified: head/sys/dev/vt/vt.h
==============================================================================
--- head/sys/dev/vt/vt.h        Sun Dec  8 21:59:46 2013        (r259109)
+++ head/sys/dev/vt/vt.h        Sun Dec  8 22:49:12 2013        (r259110)
@@ -46,7 +46,9 @@
 #include <sys/terminal.h>
 #include <sys/sysctl.h>
 
+#include "opt_compat.h"
 #include "opt_syscons.h"
+#include "opt_splash.h"
 
 #ifndef        VT_MAXWINDOWS
 #ifdef MAXCONS

Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c   Sun Dec  8 21:59:46 2013        (r259109)
+++ head/sys/dev/vt/vt_core.c   Sun Dec  8 22:49:12 2013        (r259110)
@@ -794,6 +794,7 @@ vtterm_done(struct terminal *tm)
        }
 }
 
+#ifdef DEV_SPLASH
 static void
 vtterm_splash(struct vt_device *vd)
 {
@@ -813,6 +814,7 @@ vtterm_splash(struct vt_device *vd)
                vd->vd_flags |= VDF_SPLASH;
        }
 }
+#endif
 
 static void
 vtterm_cnprobe(struct terminal *tm, struct consdev *cp)
@@ -845,7 +847,9 @@ vtterm_cnprobe(struct terminal *tm, stru
        vt_winsize(vd, vw->vw_font, &wsz);
        terminal_set_winsize(tm, &wsz);
 
+#ifdef DEV_SPLASH
        vtterm_splash(vd);
+#endif
 
        vd->vd_flags |= VDF_INITIALIZED;
        main_vd = vd;
@@ -1788,8 +1792,10 @@ vt_allocate(struct vt_driver *drv, void 
        /* Refill settings with new sizes. */
        vt_resize(vd);
 
+#ifdef DEV_SPLASH
        if (vd->vd_flags & VDF_SPLASH)
                vtterm_splash(vd);
+#endif
 
        if (vd->vd_curwindow != NULL)
                callout_schedule(&vd->vd_timer, hz / VT_TIMERFREQ);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to