uboot-envtools: fix build if ubi volume support is disabled
authorJohn Crispin <john@openwrt.org>
Tue, 24 Jun 2014 18:12:56 +0000 (18:12 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 24 Jun 2014 18:12:56 +0000 (18:12 +0000)
commit83a9318076134699cf7a2494188ba4ac0927982f
treec1f458461ea34e89ca3d37176c9baacc76670188
parente21d2de73e48fa0c630561b13a4a76a4ea857468
uboot-envtools: fix build if ubi volume support is disabled

Insert a missing #ifdef UBI around the use of libubi_close().
As the preceding if (libubi) will never be true on non-UBI builds,
compiling only failed when disabling optimization.

Also rebase patch to latest u-boot.git HEAD.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 41313
package/boot/uboot-envtools/patches/300-support-env-in-ubivol-chardev.patch