kernel: make backlight support depend on display support

Mark backlight core package as hidden

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48437
This commit is contained in:
Felix Fietkau 2016-01-21 15:37:38 +00:00
parent f82dc2e37d
commit 16ea0369e9

View file

@ -18,6 +18,8 @@ V4L2_USB_DIR=usb
define KernelPackage/backlight define KernelPackage/backlight
SUBMENU:=$(VIDEO_MENU) SUBMENU:=$(VIDEO_MENU)
TITLE:=Backlight support TITLE:=Backlight support
DEPENDS:=@DISPLAY_SUPPORT
HIDDEN:=1
KCONFIG:=CONFIG_BACKLIGHT_CLASS_DEVICE=m \ KCONFIG:=CONFIG_BACKLIGHT_CLASS_DEVICE=m \
CONFIG_BACKLIGHT_LCD_SUPPORT=y \ CONFIG_BACKLIGHT_LCD_SUPPORT=y \
CONFIG_LCD_CLASS_DEVICE=n \ CONFIG_LCD_CLASS_DEVICE=n \
@ -39,7 +41,7 @@ $(eval $(call KernelPackage,backlight))
define KernelPackage/backlight-pwm define KernelPackage/backlight-pwm
SUBMENU:=$(VIDEO_MENU) SUBMENU:=$(VIDEO_MENU)
TITLE:=PWM Backlight support TITLE:=PWM Backlight support
DEPENDS:=+kmod-pwm kmod-backlight DEPENDS:=+kmod-pwm +kmod-backlight
KCONFIG:=CONFIG_BACKLIGHT_PWM=m KCONFIG:=CONFIG_BACKLIGHT_PWM=m
FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
AUTOLOAD:=$(call AutoProbe,video pwm_bl) AUTOLOAD:=$(call AutoProbe,video pwm_bl)