diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-04-12 09:15:38 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-12-13 15:20:38 +0100 |
commit | 98588273b10457bea0a47a0ba8e2a07a6f99af0d (patch) | |
tree | 020fbfaed6585f8c870cd6f9399d60530b204aa1 /package/kernel | |
parent | f30114c7c427a9568d56578560aad9cf5839e4df (diff) | |
download | upstream-98588273b10457bea0a47a0ba8e2a07a6f99af0d.tar.gz upstream-98588273b10457bea0a47a0ba8e2a07a6f99af0d.tar.bz2 upstream-98588273b10457bea0a47a0ba8e2a07a6f99af0d.zip |
kernel: allow selecting RTC drivers on targets without explicit RTC support
Keep them disabled by default to avoid pulling in extra kernel bloat
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 5afe9a054cbcb1630a42200f3ac799432522a87d)
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/linux/modules/other.mk | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 017a94c622..5e31ec28d6 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -469,7 +469,8 @@ $(eval $(call KernelPackage,bcma)) define KernelPackage/rtc-ds1307 SUBMENU:=$(OTHER_MENU) TITLE:=Dallas/Maxim DS1307 (and compatible) RTC support - DEPENDS:=@RTC_SUPPORT +kmod-i2c-core + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT + DEPENDS:=+kmod-i2c-core KCONFIG:=CONFIG_RTC_DRV_DS1307 \ CONFIG_RTC_CLASS=y FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ds1307.ko @@ -487,7 +488,8 @@ $(eval $(call KernelPackage,rtc-ds1307)) define KernelPackage/rtc-ds1374 SUBMENU:=$(OTHER_MENU) TITLE:=Dallas/Maxim DS1374 RTC support - DEPENDS:=@RTC_SUPPORT +kmod-i2c-core + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT + DEPENDS:=+kmod-i2c-core KCONFIG:=CONFIG_RTC_DRV_DS1374 \ CONFIG_RTC_DRV_DS1374_WDT=n \ CONFIG_RTC_CLASS=y @@ -505,7 +507,8 @@ $(eval $(call KernelPackage,rtc-ds1374)) define KernelPackage/rtc-ds1672 SUBMENU:=$(OTHER_MENU) TITLE:=Dallas/Maxim DS1672 RTC support - DEPENDS:=@RTC_SUPPORT +kmod-i2c-core + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT + DEPENDS:=+kmod-i2c-core KCONFIG:=CONFIG_RTC_DRV_DS1672 \ CONFIG_RTC_CLASS=y FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ds1672.ko @@ -522,7 +525,8 @@ $(eval $(call KernelPackage,rtc-ds1672)) define KernelPackage/rtc-isl1208 SUBMENU:=$(OTHER_MENU) TITLE:=Intersil ISL1208 RTC support - DEPENDS:=@RTC_SUPPORT +kmod-i2c-core + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT + DEPENDS:=+kmod-i2c-core KCONFIG:=CONFIG_RTC_DRV_ISL1208 \ CONFIG_RTC_CLASS=y FILES:=$(LINUX_DIR)/drivers/rtc/rtc-isl1208.ko @@ -539,7 +543,8 @@ $(eval $(call KernelPackage,rtc-isl1208)) define KernelPackage/rtc-pcf8563 SUBMENU:=$(OTHER_MENU) TITLE:=Philips PCF8563/Epson RTC8564 RTC support - DEPENDS:=@RTC_SUPPORT +kmod-i2c-core + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT + DEPENDS:=+kmod-i2c-core KCONFIG:=CONFIG_RTC_DRV_PCF8563 \ CONFIG_RTC_CLASS=y FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf8563.ko @@ -557,7 +562,7 @@ $(eval $(call KernelPackage,rtc-pcf8563)) define KernelPackage/rtc-pcf2123 SUBMENU:=$(OTHER_MENU) TITLE:=Philips PCF2123 RTC support - DEPENDS:=@RTC_SUPPORT + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT KCONFIG:=CONFIG_RTC_DRV_PCF2123 \ CONFIG_RTC_CLASS=y FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf2123.ko @@ -573,7 +578,8 @@ $(eval $(call KernelPackage,rtc-pcf2123)) define KernelPackage/rtc-pt7c4338 SUBMENU:=$(OTHER_MENU) TITLE:=Pericom PT7C4338 RTC support - DEPENDS:=@RTC_SUPPORT +kmod-i2c-core + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT + DEPENDS:=+kmod-i2c-core KCONFIG:=CONFIG_RTC_DRV_PT7C4338 \ CONFIG_RTC_CLASS=y FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pt7c4338.ko @@ -589,7 +595,8 @@ $(eval $(call KernelPackage,rtc-pt7c4338)) define KernelPackage/rtc-rs5c372a SUBMENU:=$(OTHER_MENU) TITLE:=Ricoh R2025S/D, RS5C372A/B, RV5C386, RV5C387A - DEPENDS:=@RTC_SUPPORT +kmod-i2c-core + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT + DEPENDS:=+kmod-i2c-core KCONFIG:=CONFIG_RTC_DRV_RS5C372 \ CONFIG_RTC_CLASS=y FILES:=$(LINUX_DIR)/drivers/rtc/rtc-rs5c372.ko |