mediatek: mt7622: check firmware metadata
authorDaniel Golle <daniel@makrotopia.org>
Thu, 4 Mar 2021 02:49:38 +0000 (02:49 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 4 Mar 2021 02:57:19 +0000 (02:57 +0000)
commit1d412235a57f3359d1c7bb63bfebce50c56caee6
tree2f62856c5dda498879734ff1671c0d7e8b57a3c3
parent20caa68fec4fe033f72c9d488639f8dd2bcfa02c
mediatek: mt7622: check firmware metadata

All mt7622 devices except for the UBI-variant of the mt7622-rfb1 carry
metadata appended to the sysupgrade image.
Add it for the mt7622-rfb1-ubi as well and check it on sysupgrade to
avoid accidentally flashing firmware for the wrong device (or variant
or future DEVICE_COMPAT_VERSION).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/image/mt7622.mk
target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh