mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-08 01:22:11 +08:00
qualcommax: move generic image recipes target
These recipes are generic and will be used for other subtargets, so lets move them to the target Makefile so they can reused. Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
7b1175e882
commit
f8b9349cb8
@ -12,6 +12,24 @@ define Device/Default
|
|||||||
IMAGE/sysupgrade.bin/squashfs :=
|
IMAGE/sysupgrade.bin/squashfs :=
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
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
|
||||||
|
IMAGE/factory.ubi := append-ubi
|
||||||
|
endef
|
||||||
|
|
||||||
include $(SUBTARGET).mk
|
include $(SUBTARGET).mk
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
define Device/EmmcImage
|
define Device/EmmcImage
|
||||||
IMAGES := factory.bin sysupgrade.bin
|
IMAGES += factory.bin recovery.bin
|
||||||
IMAGE/factory.bin := append-kernel | pad-to 12288k | append-rootfs | append-metadata
|
IMAGE/factory.bin := append-kernel | pad-to 12288k | append-rootfs | append-metadata
|
||||||
|
IMAGE/recovery.bin := append-kernel | pad-to 6144k | append-rootfs | append-metadata
|
||||||
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -29,36 +30,35 @@ define Device/jdcloud_re-cs-03
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += jdcloud_re-cs-03
|
TARGET_DEVICES += jdcloud_re-cs-03
|
||||||
|
|
||||||
define Device/linksys_mx2000
|
define Device/linksys_ipq50xx_mx_base
|
||||||
$(call Device/FitImageLzma)
|
$(call Device/FitImageLzma)
|
||||||
DEVICE_VENDOR := Linksys
|
DEVICE_VENDOR := Linksys
|
||||||
DEVICE_MODEL := MX2000
|
|
||||||
BLOCKSIZE := 128k
|
BLOCKSIZE := 128k
|
||||||
PAGESIZE := 2048
|
PAGESIZE := 2048
|
||||||
KERNEL_SIZE := 8192k
|
KERNEL_SIZE := 8192k
|
||||||
IMAGE_SIZE := 83968k
|
IMAGE_SIZE := 83968k
|
||||||
DEVICE_DTS_CONFIG := config@mp03.5-c1
|
NAND_SIZE := 256m
|
||||||
SOC := ipq5018
|
SOC := ipq5018
|
||||||
UBINIZE_OPTS := -E 5
|
|
||||||
IMAGES += factory.bin
|
IMAGES += factory.bin
|
||||||
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MX2000
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
|
||||||
DEVICE_PACKAGES := ath11k-firmware-qcn6122 ipq-wifi-linksys_mx2000
|
append-ubi | linksys-image type=$$$$(DEVICE_MODEL)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Device/linksys_mx2000
|
||||||
|
$(call Device/linksys_ipq50xx_mx_base)
|
||||||
|
DEVICE_MODEL := MX2000
|
||||||
|
DEVICE_DTS_CONFIG := config@mp03.5-c1
|
||||||
|
DEVICE_PACKAGES := ath11k-firmware-qcn6122 \
|
||||||
|
ipq-wifi-linksys_mx2000
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += linksys_mx2000
|
TARGET_DEVICES += linksys_mx2000
|
||||||
|
|
||||||
define Device/linksys_mx5500
|
define Device/linksys_mx5500
|
||||||
$(call Device/FitImageLzma)
|
$(call Device/linksys_ipq50xx_mx_base)
|
||||||
DEVICE_VENDOR := Linksys
|
|
||||||
DEVICE_MODEL := MX5500
|
DEVICE_MODEL := MX5500
|
||||||
BLOCKSIZE := 128k
|
|
||||||
PAGESIZE := 2048
|
|
||||||
KERNEL_SIZE := 8192k
|
|
||||||
IMAGE_SIZE := 83968k
|
|
||||||
DEVICE_DTS_CONFIG := config@mp03.1
|
DEVICE_DTS_CONFIG := config@mp03.1
|
||||||
SOC := ipq5018
|
DEVICE_PACKAGES := kmod-ath11k-pci \
|
||||||
UBINIZE_OPTS := -E 5
|
ath11k-firmware-qcn9074 \
|
||||||
IMAGES += factory.bin
|
ipq-wifi-linksys_mx5500
|
||||||
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MX5500
|
|
||||||
DEVICE_PACKAGES := kmod-ath11k-pci ath11k-firmware-qcn9074 ipq-wifi-linksys_mx5500
|
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += linksys_mx5500
|
TARGET_DEVICES += linksys_mx5500
|
||||||
|
@ -1,24 +1,5 @@
|
|||||||
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
|
define Device/EmmcImage
|
||||||
IMAGES := factory.bin recovery.bin sysupgrade.bin
|
IMAGES += factory.bin recovery.bin
|
||||||
IMAGE/factory.bin := append-kernel | pad-to 12288k | append-rootfs | append-metadata
|
IMAGE/factory.bin := append-kernel | pad-to 12288k | append-rootfs | append-metadata
|
||||||
IMAGE/recovery.bin := append-kernel | pad-to 6144k | append-rootfs | append-metadata
|
IMAGE/recovery.bin := append-kernel | pad-to 6144k | append-rootfs | append-metadata
|
||||||
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
||||||
@ -36,29 +17,29 @@ define Device/cmiot_ax18
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += cmiot_ax18
|
TARGET_DEVICES += cmiot_ax18
|
||||||
|
|
||||||
define Device/glinet_gl-ax1800
|
define Device/glinet_gl-common
|
||||||
$(call Device/FitImage)
|
$(call Device/FitImage)
|
||||||
$(call Device/UbiFit)
|
$(call Device/UbiFit)
|
||||||
DEVICE_VENDOR := GL.iNet
|
DEVICE_VENDOR := GL.iNet
|
||||||
DEVICE_MODEL := GL-AX1800
|
|
||||||
BLOCKSIZE := 128k
|
BLOCKSIZE := 128k
|
||||||
PAGESIZE := 2048
|
PAGESIZE := 2048
|
||||||
DEVICE_DTS_CONFIG := config@cp03-c1
|
DEVICE_DTS_CONFIG := config@cp03-c1
|
||||||
SOC := ipq6000
|
SOC := ipq6000
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Device/glinet_gl-ax1800
|
||||||
|
$(call Device/glinet_gl-common)
|
||||||
|
DEVICE_MODEL := GL-AX1800
|
||||||
DEVICE_PACKAGES := ipq-wifi-glinet_gl-ax1800
|
DEVICE_PACKAGES := ipq-wifi-glinet_gl-ax1800
|
||||||
|
SUPPORTED_DEVICES += glinet,ax1800
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += glinet_gl-ax1800
|
TARGET_DEVICES += glinet_gl-ax1800
|
||||||
|
|
||||||
define Device/glinet_gl-axt1800
|
define Device/glinet_gl-axt1800
|
||||||
$(call Device/FitImage)
|
$(call Device/glinet_gl-common)
|
||||||
$(call Device/UbiFit)
|
|
||||||
DEVICE_VENDOR := GL.iNet
|
|
||||||
DEVICE_MODEL := GL-AXT1800
|
DEVICE_MODEL := GL-AXT1800
|
||||||
BLOCKSIZE := 128k
|
DEVICE_PACKAGES := ipq-wifi-glinet_gl-axt1800 kmod-hwmon-pwmfan
|
||||||
PAGESIZE := 2048
|
SUPPORTED_DEVICES += glinet,axt1800
|
||||||
DEVICE_DTS_CONFIG := config@cp03-c1
|
|
||||||
SOC := ipq6000
|
|
||||||
DEVICE_PACKAGES := ipq-wifi-glinet_gl-axt1800 kmod-hwmon-gpiofan
|
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += glinet_gl-axt1800
|
TARGET_DEVICES += glinet_gl-axt1800
|
||||||
|
|
||||||
|
@ -1,28 +1,9 @@
|
|||||||
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/EmmcImage
|
define Device/EmmcImage
|
||||||
IMAGES += factory.bin sysupgrade.bin
|
IMAGES += factory.bin
|
||||||
IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
|
IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
|
||||||
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
||||||
endef
|
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 Build/wax6xx-netgear-tar
|
define Build/wax6xx-netgear-tar
|
||||||
mkdir $@.tmp
|
mkdir $@.tmp
|
||||||
mv $@ $@.tmp/nand-ipq807x-apps.img
|
mv $@ $@.tmp/nand-ipq807x-apps.img
|
||||||
|
Loading…
x
Reference in New Issue
Block a user