aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gmail.com>2013-06-09 11:58:23 -0400
committerRobin H. Johnson <robbat2@gentoo.org>2013-06-14 14:43:44 +0000
commit95f61c7b28e86da0621e09b833775831130e6ad2 (patch)
tree8e7eebc74adf94090c220d5bb758a5068fb644b7
parentLoad xhci-plat when available (diff)
downloadgenkernel-95f61c7b28e86da0621e09b833775831130e6ad2.tar.gz
genkernel-95f61c7b28e86da0621e09b833775831130e6ad2.tar.bz2
genkernel-95f61c7b28e86da0621e09b833775831130e6ad2.zip
Fix RTC support in generic config files, bug #444932
Although the shipping kernel-config with genkernel has ~10 of these various RTC hardware drivers marked as modules, the resulting built kernel & initramfs has these things disabled. Here's an excerpt from arch/x86_64/kernel-config: CONFIG_RTC_CLASS=m CONFIG_RTC_DRV_DS1374=m CONFIG_RTC_DRV_MAX6900=m CONFIG_RTC_DRV_M41T80=m CONFIG_RTC_DRV_CMOS=m CONFIG_RTC_DRV_DS1553=m CONFIG_RTC_DRV_DS1742=m CONFIG_RTC_DRV_STK17TA8=m CONFIG_RTC_DRV_M48T86=m CONFIG_RTC_DRV_M48T59=m CONFIG_RTC_DRV_V3020=m The problem is that CONFIG_RTC_CLASS is a boolean, not tristate, so =m is not valid, and so all things depending on RTC_CLASS get dropped from the config. Changing this to CONFIG_RTC_CLASS=y should fix the issue, I have tested this locally with success. Signed-off-by: Richard Yao <ryao@gentoo.org>
-rw-r--r--arch/x86/kernel-config2
-rw-r--r--arch/x86_64/kernel-config2
-rw-r--r--defaults/kernel-config2
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel-config b/arch/x86/kernel-config
index baa727c..bfaf75d 100644
--- a/arch/x86/kernel-config
+++ b/arch/x86/kernel-config
@@ -3176,7 +3176,7 @@ CONFIG_INFINIBAND_SRP=m
CONFIG_INFINIBAND_ISER=m
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=m
-CONFIG_RTC_CLASS=m
+CONFIG_RTC_CLASS=y
#
# RTC interfaces
diff --git a/arch/x86_64/kernel-config b/arch/x86_64/kernel-config
index cdb9c45..4209191 100644
--- a/arch/x86_64/kernel-config
+++ b/arch/x86_64/kernel-config
@@ -2861,7 +2861,7 @@ CONFIG_INFINIBAND_SRP=m
CONFIG_INFINIBAND_ISER=m
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=m
-CONFIG_RTC_CLASS=m
+CONFIG_RTC_CLASS=y
#
# RTC interfaces
diff --git a/defaults/kernel-config b/defaults/kernel-config
index 0597ca9..aeece3a 100644
--- a/defaults/kernel-config
+++ b/defaults/kernel-config
@@ -3176,7 +3176,7 @@ CONFIG_INFINIBAND_SRP=m
CONFIG_INFINIBAND_ISER=m
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=m
-CONFIG_RTC_CLASS=m
+CONFIG_RTC_CLASS=y
#
# RTC interfaces