2022-02-05 22:40:51 +00:00
|
|
|
define Device/FitImage
|
|
|
|
KERNEL_SUFFIX := -uImage.itb
|
|
|
|
KERNEL = kernel-bin | libdeflate-gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
|
|
|
|
KERNEL_NAME := Image
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/FitImageLzma
|
|
|
|
KERNEL_SUFFIX := -uImage.itb
|
|
|
|
KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb
|
|
|
|
KERNEL_NAME := Image
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/UbiFit
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES := factory.ubi sysupgrade.bin
|
|
|
|
IMAGE/factory.ubi := append-ubi
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
2021-05-19 19:04:43 +00:00
|
|
|
|
2022-01-01 22:17:51 +00:00
|
|
|
define Device/edimax_cax1800
|
|
|
|
$(call Device/FitImage)
|
|
|
|
$(call Device/UbiFit)
|
|
|
|
DEVICE_VENDOR := Edimax
|
|
|
|
DEVICE_MODEL := CAX1800
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
DEVICE_DTS_CONFIG := config@ac03
|
|
|
|
SOC := ipq8070
|
|
|
|
DEVICE_PACKAGES := ipq-wifi-edimax_cax1800
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += edimax_cax1800
|
|
|
|
|
2022-01-01 22:12:51 +00:00
|
|
|
define Device/redmi_ax6
|
|
|
|
$(call Device/xiaomi_ax3600)
|
|
|
|
DEVICE_VENDOR := Redmi
|
|
|
|
DEVICE_MODEL := AX6
|
|
|
|
DEVICE_PACKAGES := ipq-wifi-redmi_ax6
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += redmi_ax6
|
|
|
|
|
2021-05-19 19:04:43 +00:00
|
|
|
define Device/xiaomi_ax3600
|
|
|
|
$(call Device/FitImage)
|
|
|
|
$(call Device/UbiFit)
|
|
|
|
DEVICE_VENDOR := Xiaomi
|
|
|
|
DEVICE_MODEL := AX3600
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
DEVICE_DTS_CONFIG := config@ac04
|
|
|
|
SOC := ipq8071
|
|
|
|
KERNEL_SIZE := 36608k
|
|
|
|
DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
|
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
|
|
|
|
ARTIFACTS := initramfs-factory.ubi
|
|
|
|
ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
|
|
|
|
endif
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += xiaomi_ax3600
|