[OpenWrt-Devel] [Patch][Resend] BMP085 sensor support

User Ds ds at gw.bittu.org.ru
Wed Jul 2 05:58:35 EDT 2014


--- a/package/kernel/linux/modules/other.mk	2014-06-29 15:21:39.359850523 +0400
+++ b/package/kernel/linux/modules/other.mk	2014-06-29 15:17:27.000000000 +0400
@@ -698,6 +698,54 @@
 
 $(eval $(call KernelPackage,regmap))
 
+
+define KernelPackage/bmp085
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=BMP085 digital pressure sensor
+  KCONFIG:=CONFIG_BMP085
+  DEPENDS:=+kmod-regmap
+  FILES:= \
+	$(LINUX_DIR)/drivers/misc/bmp085.ko
+endef
+
+define KernelPackage/bmp085/description
+ Kernel module for BOSCH Sensortec pressure sensor generic support
+endef
+
+$(eval $(call KernelPackage,bmp085))
+
+define KernelPackage/bmp085-i2c
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=BMP085 sensor on I2C bus
+  KCONFIG:=CONFIG_BMP085_I2C
+  FILES:= \
+	$(LINUX_DIR)/drivers/misc/bmp085-i2c.ko
+  DEPENDS:=kmod-bmp085
+  AUTOLOAD:=$(call AutoProbe,bmp085-i2c)
+endef
+
+define KernelPackage/bmp085-i2c/description
+ Kernel module for BOSCH Sensortec pressure sensor on I2C bus
+endef
+
+$(eval $(call KernelPackage,bmp085-i2c))
+
+define KernelPackage/bmp085-spi
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=BMP085 sensor on SPI bus
+  KCONFIG:=CONFIG_BMP085_SPI
+  FILES:= \
+	$(LINUX_DIR)/drivers/misc/bmp085-spi.ko
+  DEPENDS:=kmod-bmp085
+  AUTOLOAD:=$(call AutoProbe,bmp085-spi)
+endef
+
+define KernelPackage/bmp085-spi/description
+ Kernel module for BOSCH Sensortec pressure sensor on SPI bus
+endef
+
+$(eval $(call KernelPackage,bmp085-spi))
+
 define KernelPackage/ikconfig
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Kernel configuration via /proc/config.gz
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list