layerscape: fix platform_copy_config function
authorPawel Dembicki <paweldembicki@gmail.com>
Mon, 24 Aug 2020 10:21:19 +0000 (12:21 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 25 Oct 2020 23:40:12 +0000 (00:40 +0100)
commitc51f8030b623e03567a73fbcedc4ee69a8896688
treeff2fc8cba2da5857963a8f5f83b7f456f7024779
parent3605eff88190af9cc2905ba750252c1643a1bc7d
layerscape: fix platform_copy_config function

At this moment platform_copy_config function is used for every device
and function "export_partdevice" without "export_bootdevice" causes
multiple errors like that:
"sh: 1: unknown operand"

This patch fix usage of export_partdevice and split platform_copy_config
for sd-card images.

Fixes: 0841b68c91d3 ("layerscape: support sysupgrade for SD card ext4
rootfs")

Reviewed-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
target/linux/layerscape/base-files/lib/upgrade/platform.sh