Use the Kconfig generated CONFIG_HAS_VIDEO defines in the code base.
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
def_bool y
select HAS_DEVICE_TREE
select HAS_PASSTHROUGH
+ select HAS_VIDEO
config ARCH_DEFCONFIG
string
# 'make clean' before rebuilding.
#
-HAS_VIDEO := y
HAS_ARM_HDLCD := y
HAS_PDX := y
select HAS_NS16550
select HAS_PASSTHROUGH
select HAS_PCI
+ select HAS_VIDEO
config ARCH_DEFCONFIG
string
HAS_NUMA := y
HAS_VGA := y
-HAS_VIDEO := y
HAS_CPUFREQ := y
HAS_EHCI := y
HAS_KEXEC := y
source "drivers/pci/Kconfig"
+source "drivers/video/Kconfig"
+
endmenu
subdir-$(CONFIG_HAS_PCI) += pci
subdir-$(CONFIG_HAS_PASSTHROUGH) += passthrough
subdir-$(CONFIG_HAS_ACPI) += acpi
-subdir-$(HAS_VIDEO) += video
+subdir-$(CONFIG_HAS_VIDEO) += video
--- /dev/null
+
+# Select HAS_VIDEO if video is supported
+config HAS_VIDEO
+ bool
obj-$(HAS_VGA) := vga.o
-obj-$(HAS_VIDEO) += font_8x14.o
-obj-$(HAS_VIDEO) += font_8x16.o
-obj-$(HAS_VIDEO) += font_8x8.o
-obj-$(HAS_VIDEO) += lfb.o
+obj-$(CONFIG_HAS_VIDEO) += font_8x14.o
+obj-$(CONFIG_HAS_VIDEO) += font_8x16.o
+obj-$(CONFIG_HAS_VIDEO) += font_8x8.o
+obj-$(CONFIG_HAS_VIDEO) += lfb.o
obj-$(HAS_VGA) += vesa.o
obj-$(HAS_ARM_HDLCD) += arm_hdlcd.o