mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
117 lines
2.9 KiB
Makefile
117 lines
2.9 KiB
Makefile
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
|
|
|
|
define Device/EmmcImage
|
|
IMAGES += factory.bin sysupgrade.bin
|
|
IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
|
|
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
|
endef
|
|
|
|
define Device/cmiot_ax18
|
|
$(call Device/FitImage)
|
|
$(call Device/UbiFit)
|
|
DEVICE_VENDOR := CMIOT
|
|
DEVICE_MODEL := AX18
|
|
BLOCKSIZE := 128k
|
|
PAGESIZE := 2048
|
|
DEVICE_DTS_CONFIG := config@cp03-c1
|
|
SOC := ipq6000
|
|
endef
|
|
TARGET_DEVICES += cmiot_ax18
|
|
|
|
define Device/glinet_gl-ax1800
|
|
$(call Device/FitImage)
|
|
$(call Device/UbiFit)
|
|
DEVICE_VENDOR := GL.iNet
|
|
DEVICE_MODEL := GL-AX1800
|
|
BLOCKSIZE := 128k
|
|
PAGESIZE := 2048
|
|
DEVICE_DTS_CONFIG := config@cp03-c1
|
|
SOC := ipq6000
|
|
DEVICE_PACKAGES := ipq-wifi-glinet_gl-ax1800
|
|
endef
|
|
TARGET_DEVICES += glinet_gl-ax1800
|
|
|
|
define Device/glinet_gl-axt1800
|
|
$(call Device/FitImage)
|
|
$(call Device/UbiFit)
|
|
DEVICE_VENDOR := GL.iNet
|
|
DEVICE_MODEL := GL-AXT1800
|
|
BLOCKSIZE := 128k
|
|
PAGESIZE := 2048
|
|
DEVICE_DTS_CONFIG := config@cp03-c1
|
|
SOC := ipq6000
|
|
DEVICE_PACKAGES := ipq-wifi-glinet_gl-axt1800 kmod-hwmon-gpiofan
|
|
endef
|
|
TARGET_DEVICES += glinet_gl-axt1800
|
|
|
|
define Device/linksys_mr7350
|
|
$(call Device/FitImage)
|
|
DEVICE_VENDOR := Linksys
|
|
DEVICE_MODEL := MR7350
|
|
SOC := ipq6000
|
|
KERNEL_SIZE := 8192k
|
|
BLOCKSIZE := 128k
|
|
PAGESIZE := 2048
|
|
UBINIZE_OPTS := -E 5
|
|
IMAGES += factory.bin
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
|
|
append-ubi | linksys-image type=MR7350
|
|
DEVICE_PACKAGES := ipq-wifi-linksys_mr7350 \
|
|
kmod-leds-pca963x kmod-usb-ledtrig-usbport
|
|
endef
|
|
TARGET_DEVICES += linksys_mr7350
|
|
|
|
define Device/qihoo_360v6
|
|
$(call Device/FitImage)
|
|
$(call Device/UbiFit)
|
|
DEVICE_VENDOR := Qihoo
|
|
DEVICE_MODEL := 360V6
|
|
BLOCKSIZE := 128k
|
|
PAGESIZE := 2048
|
|
SOC := ipq6000
|
|
DEVICE_DTS_CONFIG := config@cp03-c1
|
|
DEVICE_PACKAGES := ipq-wifi-qihoo_360v6
|
|
endef
|
|
TARGET_DEVICES += qihoo_360v6
|
|
|
|
define Device/redmi_ax5-jdcloud
|
|
$(call Device/FitImage)
|
|
$(call Device/EmmcImage)
|
|
DEVICE_VENDOR := Redmi
|
|
DEVICE_MODEL := AX5 JDCloud
|
|
DEVICE_DTS_CONFIG := config@cp03-c1
|
|
SOC := ipq6000
|
|
DEVICE_PACKAGES := ipq-wifi-redmi_ax5-jdcloud
|
|
endef
|
|
TARGET_DEVICES += redmi_ax5-jdcloud
|
|
|
|
define Device/xiaomi_rm1800
|
|
$(call Device/FitImage)
|
|
$(call Device/UbiFit)
|
|
DEVICE_VENDOR := Xiaomi
|
|
DEVICE_MODEL := RM1800 (AX5)
|
|
BLOCKSIZE := 128k
|
|
PAGESIZE := 2048
|
|
SOC := ipq6000
|
|
DEVICE_DTS_CONFIG := config@cp03-c1
|
|
DEVICE_PACKAGES := ipq-wifi-xiaomi_rm1800
|
|
endef
|
|
TARGET_DEVICES += xiaomi_rm1800
|