forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
551acae
commit f5123bf
Showing
1 changed file
with
37 additions
and
0 deletions.
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,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)) |