base-files: Remove nand.sh dependency from emmc upgrade
authorBrian Norris <computersforpeace@gmail.com>
Fri, 13 Jan 2023 05:32:16 +0000 (21:32 -0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 20 Jan 2023 13:57:46 +0000 (14:57 +0100)
commit38a80685f02427a844ec4db52fe7b46930a1ed2c
treedb5586a0cd6f5e354dba50215acb23c19ed7b5c2
parent26f8e855b3f66770ba25ab4a3d510f93736d4518
base-files: Remove nand.sh dependency from emmc upgrade

emmc_do_upgrade() relies on identify() from the nand.sh upgrade helper.
This only works because FEATURES=emmc targets also tend to include
FEATURES=nand.

Rename identify_magic() to identify_magic_long() to match the common.sh
style and make it clear it pairs with other *_long() variants (and not,
say *_word()).

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/lib/upgrade/emmc.sh
package/base-files/files/lib/upgrade/nand.sh