From d359d46182f399c0c54118ed5ce699b4f22db9cd Mon Sep 17 00:00:00 2001
From: Florian Fainelli <florian@openwrt.org>
Date: Wed, 25 Jul 2012 19:36:19 +0000
Subject: [PATCH] make kmod-fb dependent on DISPLAY_SUPPORT and update targets
 accordingly

SVN-Revision: 32869
---
 package/kernel/modules/video.mk     | 1 +
 target/linux/cobalt/Makefile        | 2 +-
 target/linux/ep93xx/Makefile        | 2 +-
 target/linux/x86/xen_domu/target.mk | 1 +
 4 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/kernel/modules/video.mk b/package/kernel/modules/video.mk
index 24fff6d966..12dce3885e 100644
--- a/package/kernel/modules/video.mk
+++ b/package/kernel/modules/video.mk
@@ -12,6 +12,7 @@ VIDEO_MENU:=Video Support
 define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
+  DEPENDS:=@DISPLAY_SUPPORT
   KCONFIG:=CONFIG_FB
   FILES:=$(LINUX_DIR)/drivers/video/fb.ko
   AUTOLOAD:=$(call AutoLoad,06,fb)
diff --git a/target/linux/cobalt/Makefile b/target/linux/cobalt/Makefile
index 0a67282d53..56799f9ba4 100644
--- a/target/linux/cobalt/Makefile
+++ b/target/linux/cobalt/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=mipsel
 BOARD:=cobalt
 BOARDNAME:=Cobalt Microservers
-FEATURES:=targz pci ext4
+FEATURES:=targz pci ext4 display
 CFLAGS:=-O2 -pipe -mtune=r5000 -fno-caller-saves
 MAINTAINER:=Florian Fainelli <florian@openwrt.org>
 
diff --git a/target/linux/ep93xx/Makefile b/target/linux/ep93xx/Makefile
index 8382f097a7..329687e409 100644
--- a/target/linux/ep93xx/Makefile
+++ b/target/linux/ep93xx/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=arm
 BOARD:=ep93xx
 BOARDNAME:=Cirrus Logic EP93xx
-FEATURES:=squashfs jffs2 ext4 targz usb
+FEATURES:=squashfs jffs2 ext4 targz usb display
 CFLAGS:=-Os -pipe -march=armv4t -fno-caller-saves
 MAINTAINER:=Florian Fainelli <florian@openwrt.org>
 
diff --git a/target/linux/x86/xen_domu/target.mk b/target/linux/x86/xen_domu/target.mk
index bed0647839..75f6e571ce 100644
--- a/target/linux/x86/xen_domu/target.mk
+++ b/target/linux/x86/xen_domu/target.mk
@@ -1,2 +1,3 @@
 BOARDNAME:=Xen Paravirt Guest
 DEFAULT_PACKAGES += kmod-xen-fs kmod-xen-evtchn kmod-xen-netdev kmod-xen-kbddev
+FEATURES:==display
-- 
GitLab