62f54fcd7f7a20f76bab8ba937118e15380ec0d4
[openwrt/openwrt.git] / package / firmware / ipq-wifi / Makefile
1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/version.mk
3
4 PKG_NAME:=ipq-wifi
5 PKG_RELEASE:=1
6 PKG_FLAGS:=nonshared
7
8 include $(INCLUDE_DIR)/package.mk
9
10 define Build/Prepare
11 mkdir -p $(PKG_BUILD_DIR)
12 endef
13
14 define Build/Compile
15 endef
16
17 #ALLWIFIBOARDS:=<devicename>
18 # Please send a mail with your device-specific board files upstream.
19 # You can find instructions and examples on the linux-wireless wiki:
20 # <https://wireless.wiki.kernel.org/en/users/drivers/ath10k/boardfiles>
21 ALLWIFIBOARDS:=alfa-network_ap120c-ac asus_map-ac2200 engenius_eap1300 linksys_ea6350v3 qxwlan_e2600ac
22 ALLWIFIPACKAGES:=$(foreach BOARD,$(ALLWIFIBOARDS),ipq-wifi-$(BOARD))
23
24 define Package/ipq-wifi-default
25 SUBMENU:=ath10k IPQ4019 Boarddata
26 SECTION:=firmware
27 CATEGORY:=Firmware
28 DEPENDS:=@TARGET_ipq40xx
29 TITLE:=Custom Board
30 endef
31
32 define generate-ipq-wifi-package
33 define Package/ipq-wifi-$(1)
34 $(call Package/ipq-wifi-default)
35 TITLE:=Board for $(3)
36 CONFLICTS:=$(PREV_BOARD)
37 endef
38
39 define Package/ipq-wifi-$(1)/description
40 This device custom package board-2.bin overwrites the board-2.bin
41 file which is supplied by the ath10k-firmware-qca4019 package.
42
43 This is package is only necessary for the $(3).
44 Don't install it for any other device!
45 endef
46
47 define Package/ipq-wifi-$(1)/install-overlay
48 $(INSTALL_DIR) $$(1)/lib/firmware/ath10k/QCA4019/hw1.0
49 $(INSTALL_DATA) ./$(2) $$(1)/lib/firmware/ath10k/QCA4019/hw1.0/board-2.bin
50 endef
51
52 PREV_BOARD+=ipq-wifi-$(1)
53 endef
54
55 #$(eval $(call generate-ipq-wifi-package,<devicename>,<filename>,<displayname>))
56 $(eval $(call generate-ipq-wifi-package,alfa-network_ap120c-ac,board-alfa-network_ap120c-ac.bin,ALFA Network AP120C-AC))
57 $(eval $(call generate-ipq-wifi-package,asus_map-ac2200,board-map-ac2200.bin,ASUS MAP-AC2200))
58 $(eval $(call generate-ipq-wifi-package,engenius_eap1300,board-engenius_eap1300.bin,EnGenius EAP1300))
59 $(eval $(call generate-ipq-wifi-package,linksys_ea6350v3,board-linksys_ea6350v3.bin,Linksys EA6350v3))
60 $(eval $(call generate-ipq-wifi-package,qxwlan_e2600ac,board-qxwlan-e2600ac.bin,Qxwlan E2600AC))
61
62 $(foreach PACKAGE,$(ALLWIFIPACKAGES),$(eval $(call BuildPackage,$(PACKAGE))))