2014-08-30 09:32:58 +00:00
|
|
|
# Copyright (c) 2014 The Linux Foundation. All rights reserved.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
|
2015-08-14 15:10:54 +00:00
|
|
|
define Device/Default
|
|
|
|
PROFILES := Default
|
2016-01-06 18:39:06 +00:00
|
|
|
KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
|
2017-03-14 16:04:28 +00:00
|
|
|
KERNEL_LOADADDR = 0x42208000
|
2019-12-21 00:16:49 +00:00
|
|
|
DEVICE_DTS = $$(SOC)-$(lastword $(subst _, ,$(1)))
|
2021-03-06 19:04:15 +00:00
|
|
|
DEVICE_DTS_CONFIG := config@1
|
2020-06-24 17:47:06 +00:00
|
|
|
IMAGES := sysupgrade.bin
|
2018-01-14 21:03:41 +00:00
|
|
|
IMAGE/sysupgrade.bin = sysupgrade-tar | append-metadata
|
2018-01-14 20:39:42 +00:00
|
|
|
IMAGE/sysupgrade.bin/squashfs :=
|
2015-08-14 15:10:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/LegacyImage
|
2015-09-04 14:44:48 +00:00
|
|
|
KERNEL_SUFFIX := -uImage
|
|
|
|
KERNEL = kernel-bin | append-dtb | uImage none
|
2015-08-14 15:10:54 +00:00
|
|
|
KERNEL_NAME := zImage
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/FitImage
|
|
|
|
KERNEL_SUFFIX := -fit-uImage.itb
|
|
|
|
KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
|
|
|
|
KERNEL_NAME := Image
|
2015-09-04 14:45:00 +00:00
|
|
|
endef
|
|
|
|
|
2017-03-14 16:04:28 +00:00
|
|
|
define Device/FitImageLzma
|
|
|
|
KERNEL_SUFFIX := -fit-uImage.itb
|
|
|
|
KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb
|
|
|
|
KERNEL_NAME := Image
|
|
|
|
endef
|
|
|
|
|
2015-09-04 14:45:00 +00:00
|
|
|
define Device/UbiFit
|
|
|
|
KERNEL_IN_UBI := 1
|
2016-10-30 08:51:54 +00:00
|
|
|
IMAGES := nand-factory.bin nand-sysupgrade.bin
|
|
|
|
IMAGE/nand-factory.bin := append-ubi
|
2018-01-14 21:03:41 +00:00
|
|
|
IMAGE/nand-sysupgrade.bin := sysupgrade-tar | append-metadata
|
2015-08-14 15:10:54 +00:00
|
|
|
endef
|
|
|
|
|
2022-01-01 21:25:27 +00:00
|
|
|
include $(SUBTARGET).mk
|
2018-01-05 13:11:16 +00:00
|
|
|
|
2014-08-30 09:32:58 +00:00
|
|
|
$(eval $(call BuildImage))
|