2021-06-14 18:30:08 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2018-06-08 15:40:11 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
|
|
|
# Copyright (C) 2016-2017 LEDE project
|
2021-06-14 18:30:08 +08:00
|
|
|
|
2017-09-06 19:19:45 +08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
|
2018-09-07 13:43:55 +08:00
|
|
|
define Build/sysupgrade-emmc
|
|
|
|
rm -f $@.recovery
|
|
|
|
mkfs.fat -C $@.recovery 3070
|
|
|
|
|
2020-07-02 23:30:56 +08:00
|
|
|
./gen_$(SUBTARGET)_emmc_img.sh $@ \
|
2018-09-07 13:43:55 +08:00
|
|
|
$(IMAGE_KERNEL) \
|
|
|
|
$@.recovery \
|
|
|
|
$(IMAGE_ROOTFS)
|
|
|
|
endef
|
|
|
|
|
2018-06-08 15:40:11 +08:00
|
|
|
# default all platform image(fit) build
|
|
|
|
define Device/Default
|
|
|
|
PROFILES = Default $$(DEVICE_NAME)
|
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
431fb8c mac80211: add AQL improvements
6bdd4c9 mac80211: add missing backports for building with 4.14 kernels
0106820 mac80211: add missing return code checks in AQL improvements
e7f7101 mac80211: rework encapsulation offload support
[package]
base-files: add function for generating random MAC
dnsmasq: abort dhcp_check on interface state
boot: sync upstream source code
ath10k-ct-firmware/mt76/sch_cake: update to latest git HEAD
[script]
download: add China Mirror Station
[target]
Sync: arc770, ath79, bcm63xx, kirkwood, lantiq, layerscape,
mediatek, mvebu, octeon, oxnas, pistachio, uml
Sync most of the target patches.
Run-compiled-on: ipq40xx (4.19 & 5.4), ramips
2020-08-26 11:31:50 +08:00
|
|
|
KERNEL_NAME := Image
|
|
|
|
KERNEL = kernel-bin | lzma | \
|
|
|
|
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
|
|
|
|
KERNEL_INITRAMFS = kernel-bin | lzma | \
|
2021-06-14 18:30:08 +08:00
|
|
|
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd
|
2018-06-08 15:40:11 +08:00
|
|
|
FILESYSTEMS := squashfs
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)
|
|
|
|
IMAGES := sysupgrade.bin
|
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
431fb8c mac80211: add AQL improvements
6bdd4c9 mac80211: add missing backports for building with 4.14 kernels
0106820 mac80211: add missing return code checks in AQL improvements
e7f7101 mac80211: rework encapsulation offload support
[package]
base-files: add function for generating random MAC
dnsmasq: abort dhcp_check on interface state
boot: sync upstream source code
ath10k-ct-firmware/mt76/sch_cake: update to latest git HEAD
[script]
download: add China Mirror Station
[target]
Sync: arc770, ath79, bcm63xx, kirkwood, lantiq, layerscape,
mediatek, mvebu, octeon, oxnas, pistachio, uml
Sync most of the target patches.
Run-compiled-on: ipq40xx (4.19 & 5.4), ramips
2020-08-26 11:31:50 +08:00
|
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to 128k | append-rootfs | \
|
|
|
|
pad-rootfs | append-metadata
|
2018-06-08 15:40:11 +08:00
|
|
|
endef
|
|
|
|
|
2020-07-02 23:30:56 +08:00
|
|
|
include $(SUBTARGET).mk
|
2019-11-12 06:39:20 -08:00
|
|
|
|
2017-09-06 19:19:45 +08:00
|
|
|
define Image/Build
|
|
|
|
$(call Image/Build/$(1),$(1))
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|
2018-06-08 15:40:11 +08:00
|
|
|
|