uboot-envtools: fix build if ubi volume support is disabled
authorJohn Crispin <blogic@openwrt.org>
Tue, 24 Jun 2014 18:12:56 +0000 (18:12 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 24 Jun 2014 18:12:56 +0000 (18:12 +0000)
commitb5f47d40c10d68c41863722dceb3117379d300cc
treec1f458461ea34e89ca3d37176c9baacc76670188
parentb73720eae8c4d9c7adbe4817177c2f08be34108c
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41313 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/boot/uboot-envtools/patches/300-support-env-in-ubivol-chardev.patch