mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-24 15:43:25 +00:00
mediatek: use CONFIG_TARGET_ROOTFS_PARTSIZE
Enable 'rootfs-part' feature to make the size of the partition of the production image configurable instead of hard-coding it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
7edd10f9df
commit
a40b4d335a
@ -6,7 +6,7 @@ ARCH:=arm
|
|||||||
BOARD:=mediatek
|
BOARD:=mediatek
|
||||||
BOARDNAME:=MediaTek Ralink ARM
|
BOARDNAME:=MediaTek Ralink ARM
|
||||||
SUBTARGETS:=mt7622 mt7623 mt7629
|
SUBTARGETS:=mt7622 mt7623 mt7629
|
||||||
FEATURES:=dt-overlay emmc fpu gpio nand pci pcie separate_ramdisk squashfs usb
|
FEATURES:=dt-overlay emmc fpu gpio nand pci pcie rootfs-part separate_ramdisk squashfs usb
|
||||||
|
|
||||||
KERNEL_PATCHVER:=5.10
|
KERNEL_PATCHVER:=5.10
|
||||||
|
|
||||||
|
@ -48,10 +48,10 @@ define Build/mt7622-gpt
|
|||||||
-N recovery -r -p 32M@6M \
|
-N recovery -r -p 32M@6M \
|
||||||
$(if $(findstring sdmmc,$1), \
|
$(if $(findstring sdmmc,$1), \
|
||||||
-N install -r -p 7M@38M \
|
-N install -r -p 7M@38M \
|
||||||
-t 0x2e -N production -p 211M@45M \
|
-t 0x2e -N production -p $(CONFIG_TARGET_ROOTFS_PARTSIZE)M@45M \
|
||||||
) \
|
) \
|
||||||
$(if $(findstring emmc,$1), \
|
$(if $(findstring emmc,$1), \
|
||||||
-t 0x2e -N production -p 980M@40M \
|
-t 0x2e -N production -p $(CONFIG_TARGET_ROOTFS_PARTSIZE)M@40M \
|
||||||
)
|
)
|
||||||
cat $@.tmp >> $@
|
cat $@.tmp >> $@
|
||||||
rm $@.tmp
|
rm $@.tmp
|
||||||
|
@ -58,10 +58,10 @@ define Build/mt7623-mbr
|
|||||||
-t 0x41 -N uboot -p 3584k@320k \
|
-t 0x41 -N uboot -p 3584k@320k \
|
||||||
-t 0xea -N recovery -p 40M@4M \
|
-t 0xea -N recovery -p 40M@4M \
|
||||||
$(if $(findstring sdmmc,$1), \
|
$(if $(findstring sdmmc,$1), \
|
||||||
-t 0x2e -N production -p 208M@48M \
|
-t 0x2e -N production -p $(CONFIG_TARGET_ROOTFS_PARTSIZE)M@48M \
|
||||||
) \
|
) \
|
||||||
$(if $(findstring emmc,$1), \
|
$(if $(findstring emmc,$1), \
|
||||||
-t 0x2e -N production -p 976M@48M \
|
-t 0x2e -N production -p $(CONFIG_TARGET_ROOTFS_PARTSIZE)M@48M \
|
||||||
)
|
)
|
||||||
|
|
||||||
echo -en \
|
echo -en \
|
||||||
|
Loading…
Reference in New Issue
Block a user