[PATCH] make qemu buildable without CONFIG_VT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Atsushi Nemoto <anemo@xxxxxxxxxxxxx>

diff --git a/arch/mips/qemu/Makefile b/arch/mips/qemu/Makefile
index 11189fa..5f34a85 100644
--- a/arch/mips/qemu/Makefile
+++ b/arch/mips/qemu/Makefile
@@ -2,4 +2,5 @@
 # Makefile for Qemu specific kernel interface routines under Linux.
 #
 
-obj-y		= q-firmware.o q-int.o q-irq.o q-mem.o q-setup.o q-vga.o
+obj-y		= q-firmware.o q-int.o q-irq.o q-mem.o q-setup.o
+obj-$(CONFIG_VT) = q-vga.o
diff --git a/arch/mips/qemu/q-setup.c b/arch/mips/qemu/q-setup.c
index 32c3d4c..acf0f5b 100644
--- a/arch/mips/qemu/q-setup.c
+++ b/arch/mips/qemu/q-setup.c
@@ -23,6 +23,8 @@ static void __init qemu_timer_setup(stru
 void __init plat_setup(void)
 {
 	set_io_port_base(QEMU_PORT_BASE);
+#ifdef CONFIG_VT
 	qvga_init();
+#endif
 	board_timer_setup = qemu_timer_setup;
 }


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux