2022-02-05 22:40:51 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
|
|
|
|
define Device/Default
|
|
|
|
PROFILES := Default
|
|
|
|
KERNEL_LOADADDR := 0x41000000
|
|
|
|
DEVICE_DTS = $$(SOC)-$(lastword $(subst _, ,$(1)))
|
|
|
|
DEVICE_DTS_CONFIG := config@1
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/qcom
|
|
|
|
IMAGES := sysupgrade.bin
|
|
|
|
IMAGE/sysupgrade.bin = sysupgrade-tar | append-metadata
|
|
|
|
IMAGE/sysupgrade.bin/squashfs :=
|
|
|
|
endef
|
|
|
|
|
2023-10-14 18:15:22 +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/EmmcImage
|
2024-02-15 20:33:28 +00:00
|
|
|
IMAGES += factory.bin
|
2023-10-14 18:15:22 +00:00
|
|
|
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/UbiFit
|
|
|
|
KERNEL_IN_UBI := 1
|
2024-02-15 20:33:28 +00:00
|
|
|
IMAGES += factory.ubi
|
2023-10-14 18:15:22 +00:00
|
|
|
IMAGE/factory.ubi := append-ubi
|
|
|
|
endef
|
|
|
|
|
2022-02-05 22:40:51 +00:00
|
|
|
include $(SUBTARGET).mk
|
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|