95937512a95cf9e3248a13d10de04a519198f139
[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/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/redmi_ax6
34 $(call Device/xiaomi_ax3600)
35 DEVICE_VENDOR := Redmi
36 DEVICE_MODEL := AX6
37 DEVICE_PACKAGES := ipq-wifi-redmi_ax6
38 endef
39 TARGET_DEVICES += redmi_ax6
40
41 define Device/xiaomi_ax3600
42 $(call Device/FitImage)
43 $(call Device/UbiFit)
44 DEVICE_VENDOR := Xiaomi
45 DEVICE_MODEL := AX3600
46 BLOCKSIZE := 128k
47 PAGESIZE := 2048
48 DEVICE_DTS_CONFIG := config@ac04
49 SOC := ipq8071
50 KERNEL_SIZE := 36608k
51 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
52 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
53 ARTIFACTS := initramfs-factory.ubi
54 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
55 endif
56 endef
57 TARGET_DEVICES += xiaomi_ax3600