1 include $(TOPDIR
)/rules.mk
4 PKG_VERSION
:=2019-04-29
10 PKG_MAINTAINER
:=John Crispin
<john@phrozen.org
>
12 include $(INCLUDE_DIR
)/package.mk
17 TITLE
:=Generic OpenWrt
3G
/4G proto handler
24 define Package
/wwan
/install
25 $(INSTALL_DIR
) $(1)/lib
/netifd
/proto
/
26 $(CP
) .
/files
/wwan.sh
$(1)/lib
/netifd
/proto
/
27 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/usb
28 $(INSTALL_BIN
) .
/files
/wwan.usb
$(1)/etc
/hotplug.d
/usb
/00_wwan.sh
29 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/usbmisc
30 $(INSTALL_BIN
) .
/files
/wwan.usbmisc
$(1)/etc
/hotplug.d
/usbmisc
/00_wwan.sh
31 $(INSTALL_DIR
) $(1)/lib
/network
/wwan
/
32 $(INSTALL_DATA
) .
/files
/data
/* $(1)/lib
/network
/wwan
/
33 #in order to keep the Lede GIT repo free of filenames with colons,
34 #we name the files xxxx-yyyy
35 # and rename here after copying to the build directory
37 for filevar in
$(1)/lib
/network
/wwan
/*-* ; \
39 FILENAME
=$$$$(basename $$$$filevar) ; \
40 NEWNAME
=$$$${FILENAME
//-/:} ; \
41 mv
"$(1)/lib/network/wwan/$$$$FILENAME" "$(1)/lib/network/wwan/$$$$NEWNAME" ; \
45 $(eval
$(call BuildPackage
,wwan
))