diff --git a/dongled/Makefile b/dongled/Makefile index 3cd31e4f6..7d4969dad 100644 --- a/dongled/Makefile +++ b/dongled/Makefile @@ -19,22 +19,22 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) include $(INCLUDE_DIR)/package.mk define Package/dongled - CATEGORY:=Utilities - DEPENDS:=+libuci +libubox +ubus +libpthread +TARGET_iopsys_ramips:swconfig +TARGET_iopsys_ramips:libnl-tiny +libopenssl +libcurl +libmobile - TITLE:=package for 4g dongle stuff + CATEGORY:=Utilities + DEPENDS:=+libuci +libubox +ubus +libpthread +TARGET_iopsys_ramips:swconfig +TARGET_iopsys_ramips:libnl-tiny +libopenssl +libcurl +libmobile + TITLE:=package for 4g dongle stuff endef define Package/dongled/description - questd collects system and network information and presents - this information via ubus + questd collects system and network information and presents + this information via ubus endef define Package/dongled/install - $(CP) ./files/* $(1)/ # copy from files to final image - $(INSTALL_DIR) $(1)/sbin # make the dir - $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_apn $(1)/sbin/ # copy binaries to new directory - $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_pin $(1)/sbin/ # copy binaries to new directory - $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_network $(1)/sbin/ # copy binaries to new directory + $(CP) ./files/* $(1)/ # copy from files to final image + $(INSTALL_DIR) $(1)/sbin # make the dir + $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_apn $(1)/sbin/ # copy binaries to new directory + $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_pin $(1)/sbin/ # copy binaries to new directory + $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_network $(1)/sbin/ # copy binaries to new directory endef $(eval $(call BuildPackage,dongled)) diff --git a/libmobile/Makefile b/libmobile/Makefile index 17a882f74..f77ff2372 100644 --- a/libmobile/Makefile +++ b/libmobile/Makefile @@ -18,26 +18,6 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) include $(INCLUDE_DIR)/package.mk - -#define Package/dongle -# CATEGORY:=Utilities -# DEPENDS:=+libuci +libubox +ubus +libpthread +TARGET_iopsys_ramips:swconfig +TARGET_iopsys_ramips:libnl-tiny +libopenssl +libcurl +libmobile -# TITLE:=package for 4g dongle stuff -#endef - -#define Package/dongle/description -# questd collects system and network information and presents -# this information via ubus -#endef - -#define Package/dongle/install -# $(CP) ./files/* $(1)/ # copy from files to final image -# $(INSTALL_DIR) $(1)/sbin # make the dir -# $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_apn $(1)/sbin/ # copy binaries to new directory -# $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_pin $(1)/sbin/ # copy binaries to new directory -# $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_network $(1)/sbin/ # copy binaries to new directory -#endef - define Package/libmobile CATEGORY:=Utilities DEPENDS:=+libuci +libubox +ubus +libpthread +TARGET_iopsys_ramips:swconfig +TARGET_iopsys_ramips:libnl-tiny +libopenssl +libcurl @@ -49,10 +29,16 @@ define Package/libmobile/description this information via ubus endef +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmobile.{a,so*} $(1)/usr/lib/ +endef + define Package/libmobile/install $(INSTALL_DIR) $(1)/usr/lib/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/libmobile.so $(1)/usr/lib/ # copy binaries to new directory endef $(eval $(call BuildPackage,libmobile)) -#$(eval $(call BuildPackage,dongle))