From 578d09487b7dbb9ec080ab7e5e4d1ea9785480f3 Mon Sep 17 00:00:00 2001 From: Arun Muthusamy Date: Wed, 27 Jun 2018 16:02:54 +0200 Subject: [PATCH] add dongle netlink package --- libmobile/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/libmobile/Makefile b/libmobile/Makefile index 458e4f009..13d6b0546 100644 --- a/libmobile/Makefile +++ b/libmobile/Makefile @@ -24,12 +24,20 @@ define Package/libmobile TITLE:=package for 4g dongle stuff endef + define Package/mdmngr CATEGORY:=Utilities DEPENDS:=+libubox +ubus +libmobile TITLE:=application package for 4g dongle stuff endef +define Package/dongle_nl + CATEGORY:=Utilities + TITLE:=Dongle Netlink + URL:= + DEPENDS:=+libuci +libubus +libblobmsg-json +libnl-genl +endef + define Package/libmobile/description a library to communicate with dongles through HTTP requests endef @@ -38,6 +46,10 @@ define Package/mdmngr/description application using libmobile to communicate with a 4g dongle endef +define Package/dongle_nl + Donle application handling netlink messages from kernel and sending them out on ubus. +endef + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include/ $(1)/usr/lib $(INSTALL_DATA) $(PKG_BUILD_DIR)/libmobile.h $(1)/usr/include/ @@ -55,5 +67,10 @@ define Package/mdmngr/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdmngr $(1)/sbin/ # copy binaries to new directory endef +define Package/dongle_nl/install + $(INSTALL_BIN) $(1)/sbin # make the dir + $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_nl $(1)/sbin/ +endef + $(eval $(call BuildPackage,libmobile)) $(eval $(call BuildPackage,mdmngr))