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