ipq807x: don't generate factory.ubi for Buffalo WXR-5950AX12
[openwrt/openwrt.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/dynalink_dl-wrx36
35 $(call Device/FitImage)
36 $(call Device/UbiFit)
37 DEVICE_VENDOR := Dynalink
38 DEVICE_MODEL := DL-WRX36
39 BLOCKSIZE := 128k
40 PAGESIZE := 2048
41 DEVICE_DTS_CONFIG := config@rt5010w-d350-rev0
42 SOC := ipq8072
43 DEVICE_PACKAGES := ipq-wifi-dynalink_dl-wrx36
44 endef
45 TARGET_DEVICES += dynalink_dl-wrx36
46
47 define Device/edgecore_eap102
48 $(call Device/FitImage)
49 $(call Device/UbiFit)
50 DEVICE_VENDOR := Edgecore
51 DEVICE_MODEL := EAP102
52 BLOCKSIZE := 128k
53 PAGESIZE := 2048
54 DEVICE_DTS_CONFIG := config@ac02
55 SOC := ipq8071
56 DEVICE_PACKAGES := ipq-wifi-edgecore_eap102
57 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand
58 endef
59 TARGET_DEVICES += edgecore_eap102
60
61 define Device/edimax_cax1800
62 $(call Device/FitImage)
63 $(call Device/UbiFit)
64 DEVICE_VENDOR := Edimax
65 DEVICE_MODEL := CAX1800
66 BLOCKSIZE := 128k
67 PAGESIZE := 2048
68 DEVICE_DTS_CONFIG := config@ac03
69 SOC := ipq8070
70 DEVICE_PACKAGES := ipq-wifi-edimax_cax1800
71 endef
72 TARGET_DEVICES += edimax_cax1800
73
74 define Device/qnap_301w
75 $(call Device/FitImage)
76 DEVICE_VENDOR := QNAP
77 DEVICE_MODEL := 301w
78 DEVICE_DTS_CONFIG := config@hk01
79 KERNEL_SIZE := 16384k
80 BLOCKSIZE := 512k
81 SOC := ipq8072
82 IMAGES += factory.bin sysupgrade.bin
83 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
84 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
85 DEVICE_PACKAGES := ipq-wifi-qnap_301w e2fsprogs kmod-fs-ext4 losetup
86 endef
87 TARGET_DEVICES += qnap_301w
88
89 define Device/redmi_ax6
90 $(call Device/xiaomi_ax3600)
91 DEVICE_VENDOR := Redmi
92 DEVICE_MODEL := AX6
93 DEVICE_PACKAGES := ipq-wifi-redmi_ax6
94 endef
95 TARGET_DEVICES += redmi_ax6
96
97 define Device/xiaomi_ax3600
98 $(call Device/FitImage)
99 $(call Device/UbiFit)
100 DEVICE_VENDOR := Xiaomi
101 DEVICE_MODEL := AX3600
102 BLOCKSIZE := 128k
103 PAGESIZE := 2048
104 DEVICE_DTS_CONFIG := config@ac04
105 SOC := ipq8071
106 KERNEL_SIZE := 36608k
107 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
108 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
109 ARTIFACTS := initramfs-factory.ubi
110 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
111 endif
112 endef
113 TARGET_DEVICES += xiaomi_ax3600
114
115 define Device/xiaomi_ax9000
116 $(call Device/FitImage)
117 $(call Device/UbiFit)
118 DEVICE_VENDOR := Xiaomi
119 DEVICE_MODEL := AX9000
120 BLOCKSIZE := 128k
121 PAGESIZE := 2048
122 DEVICE_DTS_CONFIG := config@hk14
123 SOC := ipq8072
124 KERNEL_SIZE := 57344k
125 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax9000 kmod-ath11k-pci ath11k-firmware-qcn9074 \
126 kmod-ath10k-ct ath10k-firmware-qca9887-ct
127 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
128 ARTIFACTS := initramfs-factory.ubi
129 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
130 endif
131 endef
132 TARGET_DEVICES += xiaomi_ax9000
133
134 define Device/zyxel_nbg7815
135 $(call Device/FitImage)
136 DEVICE_VENDOR := ZYXEL
137 DEVICE_MODEL := NBG7815
138 DEVICE_DTS_CONFIG := config@nbg7815
139 BLOCKSIZE := 128k
140 PAGESIZE := 2048
141 SOC := ipq8074
142 IMAGES += factory.bin sysupgrade.bin
143 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
144 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
145 DEVICE_PACKAGES := ipq-wifi-zyxel_nbg7815 kmod-ath11k-pci e2fsprogs kmod-fs-ext4 losetup \
146 kmod-hwmon-tmp103 kmod-bluetooth
147 endef
148 TARGET_DEVICES += zyxel_nbg7815