Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2013 22:49:13 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259110 - in head/sys: conf dev/vt
Message-ID:  <201312082249.rB8MnD37086348@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312082249.rB8MnD37086348>