lua-rs232: fix compilation with GCC13
[feed/packages.git] / utils / qfirehose / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=qfirehose
4 PKG_VERSION:=1.4.9
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=https://codeload.github.com/nippynetworks/qfirehose/tar.gz/$(PKG_VERSION)?
9 PKG_HASH:=b7c04f9356823c6ee0f4ca152e8fd2015f34b95490cea68461a060993befadef
10
11 PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
12 PKG_LICENSE:=
13 PKG_LICENSE_FILES:=NOTICE
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/qfirehose
18 SECTION:=utils
19 CATEGORY:=Utilities
20 TITLE:=Quectel Firehose Recovery application
21 URL:=https://github.com/nippynetworks/qfirehose
22 endef
23
24 define Package/qfirehose/description
25 Utility that is able to flash firmwares on Quectel's modems.
26 Usage: qfirehose -f FW_PATH
27
28 Warning.
29
30 - Use of software is completely on your own risk.
31 Flashing wrong firmware or failed flash can brick your modem permanently.
32 Avoid flashing, if device works without issues and updated firmware does not contain new necessary changes.
33 Do not flash, if you are not willing to take this risk or do not know what you are doing.
34
35 - After succesful flashing, you should use terminal to issue factory reset for modem settings with AT&F command.
36
37 - mPCIe users (mostly): If modem has completely disappeared after succesful flashing, reason might be that some firmware updates
38 set default mode to USB3 which is unsupported by some mPCIe slots, in this case, you should connect it to USB
39 port using mPCIe -> USB adapter, even most of cheap chinese modules can reveal device. After this you should issue
40 a command to use USB2, which may vary between models, but on most Quectel modems is: AT+QUSBCFG="SS",0
41 Changing value on end of AT command 0 to 1, selects USB3 instead. Refer to documents of your modem.
42 endef
43
44 define Build/Configure
45 $(RM) $(PKG_BUILD_DIR)/QFirehose
46 endef
47
48 MAKE_ARGS += linux
49
50 define Package/qfirehose/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/QFirehose $(1)/usr/bin/qfirehose
53 endef
54
55 $(eval $(call BuildPackage,qfirehose))