dfu: thor: fix: Modify dfu_get_alt() function to support absolute paths 19/29819/3
authorLukasz Majewski <l.majewski@samsung.com>
Wed, 5 Nov 2014 09:56:13 +0000 (10:56 +0100)
committerLukasz Majewski <l.majewski@samsung.com>
Wed, 5 Nov 2014 09:56:13 +0000 (10:56 +0100)
commite562168e54f87ea3b57c4f148c6cb948cb195507
tree47cca1b49c2bb11c717445ea0f5a38c8d545c510
parent999c7e32154e23deaeb02e82c8bc7b4566e2f3f4
dfu: thor: fix: Modify dfu_get_alt() function to support absolute paths

Recently the ext4 file system imposed passing absolute path with its file
name parameter.
As a result dfu_alt_info env variable has been modified to provide absolute
path when ext4 file system is accessed (e.g. /uImage ext4 0 2;).

Unfortunately, lthor flashing program provides plain file name (like uImage)
and hence those two file names do not match anymore.

Presented commit also allows lthor to write files to sub directories (like
/boot/bin/uImage).

Change-Id: I2348da05c28cfcd51c952f81cd404c7a369124f5
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
---
Changes for v2:
- Fix patch to path in comment
drivers/dfu/dfu.c