forked from openwrt/openwrt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This package allows to read battery status information and control the power state of the RAVPower RP-WD009 power management IC. Signed-off-by: David Bauer <mail@david-bauer.net>
- Loading branch information
1 parent
e959048
commit 1ba0466
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=ravpower-mcu | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL=https://github.com/blocktrron/ravpower-mcu.git | ||
PKG_MIRROR_HASH:=edde0fda3fc708eac65baff46b5b6f1290ab733d3f4bd7fc027ef45c3d1b5814 | ||
PKG_SOURCE_DATE:=2020-06-19 | ||
PKG_SOURCE_VERSION:=1665d9e9212dcd118629a74fbe658841f81036f7 | ||
PKG_MAINTAINER:=David Bauer <mail@david-bauer.net> | ||
PKG_LICENSE:=GPL-2.0-or-later | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/ravpower-mcu | ||
SECTION:=utils | ||
CATEGORY:=Utilities | ||
TITLE:=Utility to control the RAVPower RP-WD009 PMIC | ||
DEPENDS:=@TARGET_ramips_mt76x8 | ||
URL:=https://github.com/blocktrron/ravpower-mcu/ | ||
endef | ||
|
||
define Build/Compile | ||
$(MAKE) -C $(PKG_BUILD_DIR) \ | ||
CC="$(TARGET_CC)" \ | ||
CFLAGS="$(TARGET_CFLAGS) -Wall" | ||
endef | ||
|
||
define Package/ravpower-mcu/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/ravpower-mcu $(1)/usr/bin/ | ||
endef | ||
|
||
$(eval $(call BuildPackage,ravpower-mcu)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters