mediatek: add compat version to cmcc a10 ubootmod

cmcc_a10-ubootmod stands for custom U-Boot layout in ImmortalWrt 23.05,
add compat version to avoid bricking devices. For 24.10+ users you can
just ignore the compat warning.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2025-02-26 22:47:12 +08:00
parent 4e9240e733
commit 4b000293b2
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ board_config_update
case "$(board_name)" in case "$(board_name)" in
bananapi,bpi-r3-mini|\ bananapi,bpi-r3-mini|\
cetron,ct3003-ubootmod|\ cetron,ct3003-ubootmod|\
cmcc,a10-ubootmod|\
livinet,zr-3020-ubootmod) livinet,zr-3020-ubootmod)
ucidef_set_compat_version "1.2" ucidef_set_compat_version "1.2"
;; ;;

View File

@ -592,6 +592,8 @@ define Device/cmcc_a10-ubootmod
ARTIFACTS := preloader.bin bl31-uboot.fip ARTIFACTS := preloader.bin bl31-uboot.fip
ARTIFACT/preloader.bin := mt7981-bl2 spim-nand-ddr3 ARTIFACT/preloader.bin := mt7981-bl2 spim-nand-ddr3
ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot cmcc_a10 ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot cmcc_a10
DEVICE_COMPAT_VERSION := 1.2
DEVICE_COMPAT_MESSAGE := Flash layout changes require bootloader update (for ImmortalWrt 23.05 users)
endef endef
TARGET_DEVICES += cmcc_a10-ubootmod TARGET_DEVICES += cmcc_a10-ubootmod