You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
881 B

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gl-puli-mcu
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  6. PKG_LICENSE:=GPL-3.0-or-later
  7. include $(INCLUDE_DIR)/package.mk
  8. include $(INCLUDE_DIR)/cmake.mk
  9. define Package/gl-puli-mcu
  10. SECTION:=utils
  11. CATEGORY:=Utilities
  12. TITLE:=GL.iNet GL-XE300 (Puli) power monitoring support
  13. DEPENDS:=+kmod-usb-serial-ch341 +libubus +libubox
  14. endef
  15. define Package/gl-puli-mcu/description
  16. Interfaces with GL-XE300 (Puli) power monitoring MCU over
  17. a USB to UART adapter present on the device and provides
  18. battery SOC, temperature, charging state and cycle count at
  19. ubus battery/info.
  20. endef
  21. define Package/gl-puli-mcu/install
  22. $(CP) ./files/* $(1)/
  23. $(INSTALL_DIR) $(1)/usr/sbin
  24. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gl-puli-mcu $(1)/usr/sbin/
  25. endef
  26. $(eval $(call BuildPackage,gl-puli-mcu))