procd: nand: dont rely on boardname in nand_upgrade_tar
authorMathias Kresin <dev@kresin.me>
Fri, 7 Apr 2017 06:39:59 +0000 (08:39 +0200)
committerMathias Kresin <dev@kresin.me>
Fri, 8 Dec 2017 19:57:12 +0000 (20:57 +0100)
Kernel and rootfs in a subdirectory matching the userspace boardname,
was intended to use a single sysupgrade-tar archive for multiple boards
with different kernel/rootfs images. This feature was never used.

Use the first found directory in the tar archive instead of relying on
a directory named according to the userspace boardname.

It allows to change the boardname without adding another compatibility
layer - using the nand_board_name() function - for (sub)targets using
the metadata based image validation in favour to
nand_do_platform_check().

Signed-off-by: Mathias Kresin <dev@kresin.me>

No differences found