Skip to content

Commit

Permalink
singleflight package add
Browse files Browse the repository at this point in the history
  • Loading branch information
TSKangetsu committed May 7, 2024
1 parent 551acae commit f5123bf
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions package/utils/singleflight/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=singleflight
PKG_LICENSE:=GPLv3
PKG_SOURCE_URL:=https://github.com/TSKangetsu/RPiSingleAPM
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2024-5-7
PKG_SOURCE_VERSION:=416f61e7a5342b5b9221ee76dbb67761c710ab00
PKG_MIRROR_HASH:=skip
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

define Package/singleflight
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+kmod-spi-dev +kmod-i2c-core
TITLE:=Linux flight controller
VERSION:=$(LINUX_VERSION)-$(PKG_SOURCE_DATE)
endef

define Package/singleflight/description
Linux flight controller
endef

define Build/Install
endef

define Package/singleflight/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/etc/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/SingleFlight $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/APMconfig.json $(1)/etc/
endef

$(eval $(call BuildPackage,singleflight))

0 comments on commit f5123bf

Please sign in to comment.