]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dfu: thor: fix: Modify dfu_get_alt() function to support absolute paths
authorLukasz Majewski <l.majewski@samsung.com>
Wed, 5 Nov 2014 09:54:16 +0000 (10:54 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 14 Nov 2014 20:09:06 +0000 (21:09 +0100)
commit5610b05789fb6f6af7e13ac8e7cac99e0b2422c7
treef7483c95d7db363a0e316236d74edceeb68a1234
parenta511a3e0e8dd48f4293096fbfb9dd7d57e89b0b4
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).

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/dfu/dfu.c