2 # Copyright (C) 2012-2015 OpenWrt.org
3 # Copyright (C) 2016-2017 LEDE project
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/image.mk
11 define Build
/sysupgrade-emmc
13 mkfs.fat
-C
$@.recovery
3070
15 .
/gen_mt7623_emmc_img.sh
$@ \
21 # default all platform image(fit) build
23 PROFILES
= Default
$$(DEVICE_NAME
)
25 FILESYSTEMS
:= squashfs
26 DEVICE_DTS_DIR
:= $(DTS_DIR
)
27 IMAGES
:= sysupgrade.bin
28 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
128k | append-rootfs | pad-rootfs | append-metadata
29 SUPPORTED_DEVICES
:= $(subst _
,$(comma
),$(1))
30 ifeq ($(SUBTARGET
),mt7623
)
32 KERNEL
:= kernel-bin | append-dtb | uImage none
33 KERNEL_INITRAMFS
:= kernel-bin | append-dtb | uImage none
36 KERNEL
= kernel-bin | lzma | fit lzma
$$(KDIR
)/image-
$$(firstword $$(DEVICE_DTS
)).dtb
37 KERNEL_INITRAMFS
= kernel-bin | lzma | fit lzma
$$(KDIR
)/image-
$$(firstword $$(DEVICE_DTS
)).dtb
41 include $(SUBTARGET
).mk
44 $(call Image
/Build
/$(1),$(1))
47 $(eval
$(call BuildImage
))