mediatek: include fitblk package for subtargets

This commit is contained in:
coolsnowwolf 2024-07-02 13:44:11 +08:00
parent b9b078da8e
commit 2f7ba54f99
3 changed files with 9 additions and 9 deletions

View File

@ -16,7 +16,7 @@ define Package/fitblk
SECTION:=base
CATEGORY:=Base system
TITLE:=fitblk firmware release tool
DEPENDS:=@LINUX_6_1
DEPENDS:=@!LINUX_5_15
endef
define Package/fitblk/description

View File

@ -13,7 +13,7 @@ KERNEL_TESTING_PATCHVER:=6.6
include $(INCLUDE_DIR)/target.mk
DEFAULT_PACKAGES += \
kmod-leds-gpio kmod-gpio-button-hotplug fitblk \
kmod-leds-gpio kmod-gpio-button-hotplug \
autocore-arm htop wpad-openssl uboot-envtools
$(eval $(call BuildTarget))

View File

@ -1,4 +1,5 @@
REQUIRE_IMAGE_METADATA=1
RAMFS_COPY_BIN='fitblk'
asus_initial_setup()
{
@ -23,17 +24,16 @@ platform_do_upgrade() {
bananapi,bpi-r3|\
bananapi,bpi-r4|\
bananapi,bpi-r4-poe)
local rootdev="$(cmdline_get_var root)"
rootdev="${rootdev##*/}"
rootdev="${rootdev%p[0-9]*}"
case "$rootdev" in
[ -e /dev/fit0 ] && fitblk /dev/fit0
[ -e /dev/fitrw ] && fitblk /dev/fitrw
bootdev="$(fitblk_get_bootdev)"
case "$bootdev" in
mmc*)
CI_ROOTDEV="$rootdev"
CI_KERNPART="production"
EMMC_KERN_DEV="/dev/$bootdev"
emmc_do_upgrade "$1"
;;
mtdblock*)
PART_NAME="fit"
PART_NAME="/dev/mtd${bootdev:8}"
default_do_upgrade "$1"
;;
ubiblock*)