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)
commit8a82c2cd36aa7b8b1ce6c0662e57c7d96c84c43e
tree1508d975171f0c7ad55165e9c2d4842d62f3bcd6
parentd219e055bee41b02f1b092a131e060a92d763813
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