add dongle netlink package

This commit is contained in:
Arun Muthusamy 2018-06-27 16:02:54 +02:00
parent f56b7b8df5
commit 578d09487b

View file

@ -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))