[openwrt/openwrt] mediatek: mt7623: yet another legacy image variable restored

LEDE Commits lede-commits at lists.infradead.org
Wed Jul 21 08:59:39 PDT 2021


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/089c2bb2178daa144baa2e3ed20a55fb9a5c11ab

commit 089c2bb2178daa144baa2e3ed20a55fb9a5c11ab
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Wed Jul 21 16:18:58 2021 +0100

    mediatek: mt7623: yet another legacy image variable restored
    
    Restore BOOTFS_BLOCKS variable until U7623 gets brushed, so things
    hopefully build now.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 target/linux/mediatek/image/mt7623.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/target/linux/mediatek/image/mt7623.mk b/target/linux/mediatek/image/mt7623.mk
index 653da6b2c0..9a938662c3 100644
--- a/target/linux/mediatek/image/mt7623.mk
+++ b/target/linux/mediatek/image/mt7623.mk
@@ -113,6 +113,11 @@ endef
 TARGET_DEVICES += bananapi_bpi-r2
 
 
+ifneq ($(CONFIG_MTK_BOOT_PARTSIZE),)
+BOOTFS_BLOCK_SIZE := 1024
+BOOTFS_BLOCKS := $(shell echo $$(($(CONFIG_MTK_BOOT_PARTSIZE)*1024*1024/$(BOOTFS_BLOCK_SIZE))))
+endif
+
 define Build/mtk-mmc-img
 	rm -f $@.boot
 	mkfs.fat -C $@.boot $(BOOTFS_BLOCKS)
@@ -140,6 +145,7 @@ define Build/scatterfile
 		$(subst -scatter.txt,,$(notdir $@)) "$(DEVICE_TITLE)" > $@
 endef
 
+
 # Full eMMC image including U-Boot and partition table
 define Device/unielec_u7623-emmc
   DEVICE_VENDOR := UniElec



More information about the lede-commits mailing list