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