Makefile 823 B

1234567891011121314151617181920212223242526272829303132333435
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=wwan
  3. PKG_VERSION:=2014-07-17
  4. PKG_RELEASE=1
  5. PKG_LICENSE:=GPL-2.0
  6. PKG_LICENSE_FILES:=
  7. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  8. include $(INCLUDE_DIR)/package.mk
  9. define Package/wwan
  10. SECTION:=net
  11. CATEGORY:=Network
  12. TITLE:=Generic OpenWrt 3G/4G proto handler
  13. endef
  14. define Build/Compile
  15. true
  16. endef
  17. define Package/wwan/install
  18. $(INSTALL_DIR) $(1)/lib/netifd/proto/
  19. $(CP) ./files/wwan.sh $(1)/lib/netifd/proto/
  20. $(INSTALL_DIR) $(1)/etc/hotplug.d/usb
  21. $(INSTALL_BIN) ./files/wwan.usb $(1)/etc/hotplug.d/usb/00_wwan.sh
  22. $(INSTALL_DIR) $(1)/etc/hotplug.d/usbmisc
  23. $(INSTALL_BIN) ./files/wwan.usbmisc $(1)/etc/hotplug.d/usbmisc/00_wwan.sh
  24. $(INSTALL_DIR) $(1)/lib/network/wwan/
  25. $(INSTALL_DATA) ./files/data/* $(1)/lib/network/wwan/
  26. endef
  27. $(eval $(call BuildPackage,wwan))