From f5123bf7c8fabd56c81612d2b81b089609035167 Mon Sep 17 00:00:00 2001 From: TSKangetsu Date: Tue, 7 May 2024 14:11:22 +0800 Subject: [PATCH] singleflight package add --- package/utils/singleflight/Makefile | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/utils/singleflight/Makefile diff --git a/package/utils/singleflight/Makefile b/package/utils/singleflight/Makefile new file mode 100644 index 00000000000000..b60f548abc437c --- /dev/null +++ b/package/utils/singleflight/Makefile @@ -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)) \ No newline at end of file