include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=rtc-pcf85063 PKG_RELEASE:=1 include $(INCLUDE_DIR)/package.mk define KernelPackage/$(PKG_NAME) SUBMENU:=Other modules TITLE:=Philips PCF85063 RTC support DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c AUTOLOAD:=$(call AutoProbe,rtc-pcf85063) FILES:=$(PKG_BUILD_DIR)/rtc-pcf85063.ko KCONFIG:= endef define KernelPackage/$(PKG_NAME)/description Kernel module for Philips PCF85063 RTC chip. endef EXTRA_KCONFIG:= \ CONFIG_RTC_DRV_PCF85063=m \ CONFIG_RTC_CLASS=y EXTRA_CFLAGS:= \ $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \ $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG)))) \ MAKE_OPTS:= \ $(KERNEL_MAKE_FLAGS) \ M="$(PKG_BUILD_DIR)" \ EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \ $(EXTRA_KCONFIG) define Build/Compile $(MAKE) -C "$(LINUX_DIR)" \ $(MAKE_OPTS) \ modules endef $(eval $(call KernelPackage,$(PKG_NAME)))