package/kernel: allow to build RTC modules for 3.x

SVN-Revision: 31105
master
Gabor Juhos 13 years ago
parent e28cd648b7
commit ddc784694b
  1. 7
      package/kernel/modules/001-depends.mk
  2. 25
      package/kernel/modules/other.mk

@ -30,3 +30,10 @@ endef
define AddDepends/rfkill define AddDepends/rfkill
DEPENDS+= +(TARGET_ar71xx||TARGET_brcm47xx||TARGET_s3c24xx||TARGET_x86):kmod-rfkill $(1) DEPENDS+= +(TARGET_ar71xx||TARGET_brcm47xx||TARGET_s3c24xx||TARGET_x86):kmod-rfkill $(1)
endef endef
define AddDepends/rtc
DEPENDS+= \
+(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-rtc-core-2.6 \
+!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-rtc-core-3.x
endef

@ -750,25 +750,38 @@ endef
$(eval $(call KernelPackage,pwm-gpio)) $(eval $(call KernelPackage,pwm-gpio))
define KernelPackage/rtc-core define KernelPackage/rtc-core-2.6
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
DEPENDS:=@LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39||BROKEN DEPENDS:=@LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39
TITLE:=Real Time Clock class support TITLE:=Real Time Clock class support
KCONFIG:=CONFIG_RTC_CLASS KCONFIG:=CONFIG_RTC_CLASS
FILES:=$(LINUX_DIR)/drivers/rtc/rtc-core.ko FILES:=$(LINUX_DIR)/drivers/rtc/rtc-core.ko
AUTOLOAD:=$(call AutoLoad,29,rtc-core) AUTOLOAD:=$(call AutoLoad,29,rtc-core)
endef endef
define KernelPackage/rtc-core/description define KernelPackage/rtc-core-2.6/description
Generic RTC class support. Generic RTC class support.
endef endef
$(eval $(call KernelPackage,rtc-core)) $(eval $(call KernelPackage,rtc-core-2.6))
define KernelPackage/rtc-core-3.x
SUBMENU:=$(OTHER_MENU)
DEPENDS:=@!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39)
TITLE:=Real Time Clock class support
KCONFIG:=CONFIG_RTC_CLASS=y
endef
define KernelPackage/rtc-core-3.x/description
Generic RTC class support.
endef
$(eval $(call KernelPackage,rtc-core-3.x))
define KernelPackage/rtc-pcf8563 define KernelPackage/rtc-pcf8563
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=Philips PCF8563/Epson RTC8564 RTC support TITLE:=Philips PCF8563/Epson RTC8564 RTC support
DEPENDS:=+(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39||BROKEN):kmod-rtc-core $(call AddDepends/rtc)
KCONFIG:=CONFIG_RTC_DRV_PCF8563 KCONFIG:=CONFIG_RTC_DRV_PCF8563
FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf8563.ko FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf8563.ko
AUTOLOAD:=$(call AutoLoad,60,rtc-pcf8563) AUTOLOAD:=$(call AutoLoad,60,rtc-pcf8563)
@ -785,7 +798,7 @@ $(eval $(call KernelPackage,rtc-pcf8563))
define KernelPackage/rtc-pcf2123 define KernelPackage/rtc-pcf2123
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=Philips PCF2123 RTC support TITLE:=Philips PCF2123 RTC support
DEPENDS:=+(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39||BROKEN):kmod-rtc-core $(call AddDepends/rtc)
KCONFIG:=CONFIG_RTC_DRV_PCF2123 KCONFIG:=CONFIG_RTC_DRV_PCF2123
FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf2123.ko FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf2123.ko
AUTOLOAD:=$(call AutoLoad,60,rtc-pcf2123) AUTOLOAD:=$(call AutoLoad,60,rtc-pcf2123)

Loading…
Cancel
Save