2021-02-10 13:52:34 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2018-05-07 10:07:32 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
|
|
|
# Copyright (C) 2016-2017 LEDE project
|
2021-02-10 13:52:34 +00:00
|
|
|
|
2015-11-02 10:18:50 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
|
2021-08-20 20:11:32 +00:00
|
|
|
# default all platform image(fit) build
|
2018-05-07 10:07:32 +00:00
|
|
|
define Device/Default
|
|
|
|
PROFILES = Default $$(DEVICE_NAME)
|
2020-07-21 15:28:54 +00:00
|
|
|
KERNEL_NAME := Image
|
|
|
|
KERNEL = kernel-bin | lzma | \
|
|
|
|
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
|
|
|
|
KERNEL_INITRAMFS = kernel-bin | lzma | \
|
2021-02-25 14:51:41 +00:00
|
|
|
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd
|
2018-05-07 10:07:32 +00:00
|
|
|
FILESYSTEMS := squashfs
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)
|
|
|
|
IMAGES := sysupgrade.bin
|
2020-07-21 15:28:54 +00:00
|
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to 128k | append-rootfs | \
|
|
|
|
pad-rootfs | append-metadata
|
2018-05-07 10:07:32 +00:00
|
|
|
endef
|
|
|
|
|
2020-05-04 14:28:11 +00:00
|
|
|
include $(SUBTARGET).mk
|
2019-11-01 03:17:28 +00:00
|
|
|
|
2015-11-02 10:18:50 +00:00
|
|
|
define Image/Build
|
|
|
|
$(call Image/Build/$(1),$(1))
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|
2018-05-07 10:07:32 +00:00
|
|
|
|