2022-08-03 15:31:03 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
|
|
|
|
# default all platform image(fit) build
|
|
|
|
define Device/Default
|
|
|
|
PROFILES = Default $$(DEVICE_NAME)
|
|
|
|
KERNEL_NAME := Image
|
|
|
|
KERNEL = kernel-bin | lzma | \
|
|
|
|
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
|
|
|
|
KERNEL_INITRAMFS = kernel-bin | lzma | \
|
|
|
|
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd
|
|
|
|
FILESYSTEMS := squashfs
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)
|
|
|
|
IMAGES := sysupgrade.bin
|
|
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to 128k | append-rootfs | \
|
|
|
|
pad-rootfs | append-metadata
|
|
|
|
endef
|
|
|
|
|
2024-10-17 13:42:51 +00:00
|
|
|
include $(SUBTARGET).mk
|
|
|
|
|
2022-08-03 15:31:03 +00:00
|
|
|
define Image/Build
|
|
|
|
$(call Image/Build/$(1),$(1))
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|