ipq807x: image: cleanup unused variables
[openwrt/staging/jow.git] / target / linux / ipq807x / image / generic.mk
1 define Device/FitImage
2 KERNEL_SUFFIX := -uImage.itb
3 KERNEL = kernel-bin | libdeflate-gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
4 KERNEL_NAME := Image
5 endef
6
7 define Device/FitImageLzma
8 KERNEL_SUFFIX := -uImage.itb
9 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb
10 KERNEL_NAME := Image
11 endef
12
13 define Device/UbiFit
14 KERNEL_IN_UBI := 1
15 IMAGES := factory.ubi sysupgrade.bin
16 IMAGE/factory.ubi := append-ubi
17 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
18 endef
19
20 define Device/buffalo_wxr-5950ax12
21 $(call Device/FitImage)
22 DEVICE_VENDOR := Buffalo
23 DEVICE_MODEL := WXR-5950AX12
24 BLOCKSIZE := 128k
25 PAGESIZE := 2048
26 DEVICE_DTS_CONFIG := config@hk01
27 SOC := ipq8074
28 IMAGES := sysupgrade.bin
29 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
30 DEVICE_PACKAGES := ipq-wifi-buffalo_wxr-5950ax12
31 endef
32 TARGET_DEVICES += buffalo_wxr-5950ax12
33
34 define Device/compex_wpq873
35 $(call Device/FitImage)
36 $(call Device/UbiFit)
37 DEVICE_VENDOR := Compex
38 DEVICE_MODEL := WPQ873
39 BLOCKSIZE := 128k
40 PAGESIZE := 2048
41 DEVICE_DTS_CONFIG := config@hk09.wpq873
42 SOC := ipq8072
43 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand
44 endef
45 TARGET_DEVICES += compex_wpq873
46
47 define Device/dynalink_dl-wrx36
48 $(call Device/FitImage)
49 $(call Device/UbiFit)
50 DEVICE_VENDOR := Dynalink
51 DEVICE_MODEL := DL-WRX36
52 BLOCKSIZE := 128k
53 PAGESIZE := 2048
54 DEVICE_DTS_CONFIG := config@rt5010w-d350-rev0
55 SOC := ipq8072
56 DEVICE_PACKAGES := ipq-wifi-dynalink_dl-wrx36
57 endef
58 TARGET_DEVICES += dynalink_dl-wrx36
59
60 define Device/edgecore_eap102
61 $(call Device/FitImage)
62 $(call Device/UbiFit)
63 DEVICE_VENDOR := Edgecore
64 DEVICE_MODEL := EAP102
65 BLOCKSIZE := 128k
66 PAGESIZE := 2048
67 DEVICE_DTS_CONFIG := config@ac02
68 SOC := ipq8071
69 DEVICE_PACKAGES := ipq-wifi-edgecore_eap102
70 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand
71 endef
72 TARGET_DEVICES += edgecore_eap102
73
74 define Device/edimax_cax1800
75 $(call Device/FitImage)
76 $(call Device/UbiFit)
77 DEVICE_VENDOR := Edimax
78 DEVICE_MODEL := CAX1800
79 BLOCKSIZE := 128k
80 PAGESIZE := 2048
81 DEVICE_DTS_CONFIG := config@ac03
82 SOC := ipq8070
83 DEVICE_PACKAGES := ipq-wifi-edimax_cax1800
84 endef
85 TARGET_DEVICES += edimax_cax1800
86
87 define Device/netgear_wax218
88 $(call Device/FitImage)
89 $(call Device/UbiFit)
90 ARTIFACTS := web-ui-factory.fit
91 DEVICE_VENDOR := Netgear
92 DEVICE_MODEL := WAX218
93 DEVICE_DTS_CONFIG := config@hk07
94 BLOCKSIZE := 128k
95 PAGESIZE := 2048
96 SOC := ipq8072
97 ARTIFACT/web-ui-factory.fit := append-image initramfs-uImage.itb | \
98 ubinize-kernel | qsdk-ipq-factory-nand
99 DEVICE_PACKAGES := kmod-spi-gpio kmod-spi-bitbang kmod-gpio-nxp-74hc164 \
100 ipq-wifi-netgear_wax218
101 endef
102 TARGET_DEVICES += netgear_wax218
103
104 define Device/qnap_301w
105 $(call Device/FitImage)
106 DEVICE_VENDOR := QNAP
107 DEVICE_MODEL := 301w
108 DEVICE_DTS_CONFIG := config@hk01
109 KERNEL_SIZE := 16384k
110 SOC := ipq8072
111 IMAGES += factory.bin sysupgrade.bin
112 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
113 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
114 DEVICE_PACKAGES := ipq-wifi-qnap_301w e2fsprogs kmod-fs-ext4 losetup
115 endef
116 TARGET_DEVICES += qnap_301w
117
118 define Device/redmi_ax6
119 $(call Device/xiaomi_ax3600)
120 DEVICE_VENDOR := Redmi
121 DEVICE_MODEL := AX6
122 DEVICE_PACKAGES := ipq-wifi-redmi_ax6
123 endef
124 TARGET_DEVICES += redmi_ax6
125
126 define Device/xiaomi_ax3600
127 $(call Device/FitImage)
128 $(call Device/UbiFit)
129 DEVICE_VENDOR := Xiaomi
130 DEVICE_MODEL := AX3600
131 BLOCKSIZE := 128k
132 PAGESIZE := 2048
133 DEVICE_DTS_CONFIG := config@ac04
134 SOC := ipq8071
135 KERNEL_SIZE := 36608k
136 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
137 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
138 ARTIFACTS := initramfs-factory.ubi
139 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
140 endif
141 endef
142 TARGET_DEVICES += xiaomi_ax3600
143
144 define Device/xiaomi_ax9000
145 $(call Device/FitImage)
146 $(call Device/UbiFit)
147 DEVICE_VENDOR := Xiaomi
148 DEVICE_MODEL := AX9000
149 BLOCKSIZE := 128k
150 PAGESIZE := 2048
151 DEVICE_DTS_CONFIG := config@hk14
152 SOC := ipq8072
153 KERNEL_SIZE := 57344k
154 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax9000 kmod-ath11k-pci ath11k-firmware-qcn9074 \
155 kmod-ath10k-ct ath10k-firmware-qca9887-ct
156 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
157 ARTIFACTS := initramfs-factory.ubi
158 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
159 endif
160 endef
161 TARGET_DEVICES += xiaomi_ax9000
162
163 define Device/zyxel_nbg7815
164 $(call Device/FitImage)
165 DEVICE_VENDOR := ZYXEL
166 DEVICE_MODEL := NBG7815
167 DEVICE_DTS_CONFIG := config@nbg7815
168 SOC := ipq8074
169 IMAGES += factory.bin sysupgrade.bin
170 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
171 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
172 DEVICE_PACKAGES := ipq-wifi-zyxel_nbg7815 kmod-ath11k-pci e2fsprogs kmod-fs-ext4 losetup \
173 kmod-hwmon-tmp103 kmod-bluetooth
174 endef
175 TARGET_DEVICES += zyxel_nbg7815