ipq807x: add QNAP 301w
[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/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/edimax_cax1800
21 $(call Device/FitImage)
22 $(call Device/UbiFit)
23 DEVICE_VENDOR := Edimax
24 DEVICE_MODEL := CAX1800
25 BLOCKSIZE := 128k
26 PAGESIZE := 2048
27 DEVICE_DTS_CONFIG := config@ac03
28 SOC := ipq8070
29 DEVICE_PACKAGES := ipq-wifi-edimax_cax1800
30 endef
31 TARGET_DEVICES += edimax_cax1800
32
33 define Device/qnap_301w
34 $(call Device/FitImage)
35 DEVICE_VENDOR := QNAP
36 DEVICE_MODEL := 301w
37 DEVICE_DTS_CONFIG := config@hk01
38 KERNEL_SIZE := 16384k
39 BLOCKSIZE := 512k
40 SOC := ipq8072
41 IMAGES += factory.bin sysupgrade.bin
42 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
43 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
44 DEVICE_PACKAGES := ipq-wifi-qnap_301w e2fsprogs kmod-fs-ext4 losetup
45 endef
46 TARGET_DEVICES += qnap_301w
47
48 define Device/redmi_ax6
49 $(call Device/xiaomi_ax3600)
50 DEVICE_VENDOR := Redmi
51 DEVICE_MODEL := AX6
52 DEVICE_PACKAGES := ipq-wifi-redmi_ax6
53 endef
54 TARGET_DEVICES += redmi_ax6
55
56 define Device/xiaomi_ax3600
57 $(call Device/FitImage)
58 $(call Device/UbiFit)
59 DEVICE_VENDOR := Xiaomi
60 DEVICE_MODEL := AX3600
61 BLOCKSIZE := 128k
62 PAGESIZE := 2048
63 DEVICE_DTS_CONFIG := config@ac04
64 SOC := ipq8071
65 KERNEL_SIZE := 36608k
66 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
67 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
68 ARTIFACTS := initramfs-factory.ubi
69 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
70 endif
71 endef
72 TARGET_DEVICES += xiaomi_ax3600