uboot-envtools: fix build if ubi volume support is disabled
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 24 Jun 2014 18:12:56 +0000 (18:12 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 24 Jun 2014 18:12:56 +0000 (18:12 +0000)
commitca9c58baf7b7584bb69b28c3133fcd8e587f97d2
treec1f458461ea34e89ca3d37176c9baacc76670188
parent8c8d7fd409a8256abf9b38ee82067c1ecc31c44f
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