aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rockchip/image/Makefile
diff options
context:
space:
mode:
authorTianling Shen <cnsztl@immortalwrt.org>2023-06-26 00:37:28 +0800
committerHauke Mehrtens <hauke@hauke-m.de>2023-11-26 19:44:56 +0100
commitdd8972fde37cacfce073ed70da92ee4a6ff51eea (patch)
tree16949e38f5b3b082cab6742cf377f059b4ef9d83 /target/linux/rockchip/image/Makefile
parentb061e2d890bc47fe9ae352a4700f094cf2aea7b1 (diff)
downloadupstream-dd8972fde37cacfce073ed70da92ee4a6ff51eea.tar.gz
upstream-dd8972fde37cacfce073ed70da92ee4a6ff51eea.tar.bz2
upstream-dd8972fde37cacfce073ed70da92ee4a6ff51eea.zip
rockchip: move image generation command to default
It's applicable for all devices so move it to default to reduce redudant code. Addtionally introduce a new variable `BOOT_SCRIPT` to allow custom boot script (if necessary). Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Diffstat (limited to 'target/linux/rockchip/image/Makefile')
-rw-r--r--target/linux/rockchip/image/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/rockchip/image/Makefile b/target/linux/rockchip/image/Makefile
index 3b118201b68..d34948f6aed 100644
--- a/target/linux/rockchip/image/Makefile
+++ b/target/linux/rockchip/image/Makefile
@@ -48,7 +48,9 @@ endef
define Device/Default
PROFILES := Default
KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb
+ BOOT_SCRIPT :=
IMAGES := sysupgrade.img.gz
+ IMAGE/sysupgrade.img.gz = boot-common | boot-script $$(BOOT_SCRIPT) | pine64-img | gzip | append-metadata
DEVICE_DTS = rockchip/$$(SOC)-$(lastword $(subst _, ,$(1)))
UBOOT_DEVICE_NAME = $(lastword $(subst _, ,$(1)))-$$(SOC)
endef