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>
Sat, 21 Jan 2023 00:02:23 +0000 (01:02 +0100)
commitd3c19c71f6044eff1677563365cea0f9e919b462
treea1721b058c8b38f832454796079e7a85f52120cd
parentbf1634f318e191e7da17e34de98dbd7d5122ef8b
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