From 3c0d4953349deba234cc59d3d0fbc3873e4e40af Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sun, 29 May 2022 17:33:14 +0200 Subject: [PATCH] ucode: package the uloop library Fixes: WIFI-9120 Signed-off-by: John Crispin --- feeds/ucentral/ucode/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/feeds/ucentral/ucode/Makefile b/feeds/ucentral/ucode/Makefile index d3d1c8302..1e34f4f0d 100644 --- a/feeds/ucentral/ucode/Makefile +++ b/feeds/ucentral/ucode/Makefile @@ -142,6 +142,16 @@ define Package/ucode-mod-uci/description The uci module allows templates to read and modify uci configuration. endef +define Package/ucode-mod-uloop + $(Package/ucode/default) + TITLE+= (uloop module) + DEPENDS:=ucode +libubox +endef + +define Package/ucode-mod-uloop/description + The uloop module allows templates to run a main loop. +endef + define Build/Prepare $(Build/Prepare/Default) $(CP) $(STAGING_DIR)/usr/include/mac80211/uapi/linux/nl80211.h $(PKG_BUILD_DIR)/nl80211_copy.h @@ -204,6 +214,11 @@ define Package/ucode-mod-uci/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/uci.so $(1)/usr/lib/ucode/ endef +define Package/ucode-mod-uloop/install + $(INSTALL_DIR) $(1)/usr/lib/ucode + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/uloop.so $(1)/usr/lib/ucode/ +endef + $(eval $(call BuildPackage,ucode)) $(eval $(call BuildPackage,libucode)) @@ -215,3 +230,4 @@ $(eval $(call BuildPackage,ucode-mod-rtnl)) $(eval $(call BuildPackage,ucode-mod-struct)) $(eval $(call BuildPackage,ucode-mod-ubus)) $(eval $(call BuildPackage,ucode-mod-uci)) +$(eval $(call BuildPackage,ucode-mod-uloop))