From 16ea0369e9751bae9a0ac89ce2645701fcb83a99 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 21 Jan 2016 15:37:38 +0000 Subject: [PATCH] kernel: make backlight support depend on display support Mark backlight core package as hidden Signed-off-by: Felix Fietkau SVN-Revision: 48437 --- package/kernel/linux/modules/video.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk index 6925e80e1c..81e7e42b73 100644 --- a/package/kernel/linux/modules/video.mk +++ b/package/kernel/linux/modules/video.mk @@ -18,6 +18,8 @@ V4L2_USB_DIR=usb define KernelPackage/backlight SUBMENU:=$(VIDEO_MENU) TITLE:=Backlight support + DEPENDS:=@DISPLAY_SUPPORT + HIDDEN:=1 KCONFIG:=CONFIG_BACKLIGHT_CLASS_DEVICE=m \ CONFIG_BACKLIGHT_LCD_SUPPORT=y \ CONFIG_LCD_CLASS_DEVICE=n \ @@ -39,7 +41,7 @@ $(eval $(call KernelPackage,backlight)) define KernelPackage/backlight-pwm SUBMENU:=$(VIDEO_MENU) TITLE:=PWM Backlight support - DEPENDS:=+kmod-pwm kmod-backlight + DEPENDS:=+kmod-pwm +kmod-backlight KCONFIG:=CONFIG_BACKLIGHT_PWM=m FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko AUTOLOAD:=$(call AutoProbe,video pwm_bl) -- 2.25.1