From 2f9d8fef13e592d232a9bec3c1eb7c59fe048878 Mon Sep 17 00:00:00 2001 From: Andrea Adami Date: Wed, 27 Jun 2012 22:49:21 +0000 Subject: ubi-utils-klibc: update to patched v. 1.5.0 * Fix build failing because of UBI_IOCSETPROP -> UBI_IOCSETVOLPROP renaming. * This patch follows the one in oe-core for mtd-utils_1.5.0 * which was staging an older version of the ubi-user.h header. * We need to match the renaming done in kernel 3.0 * http://lists.infradead.org/pipermail/linux-mtd/2011-March/ * 034419.html Signed-off-by: Andrea Adami Signed-off-by: Koen Kooi --- .../recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc') diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch index db95904ea8..b52e207898 100644 --- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch @@ -9,3 +9,20 @@ { int fd, ret; +@@ -1346,13 +1346,13 @@ + + int ubi_set_property(int fd, uint8_t property, uint64_t value) + { +- struct ubi_set_prop_req r; ++ struct ubi_set_vol_prop_req r; + +- memset(&r, 0, sizeof(struct ubi_set_prop_req)); ++ memset(&r, 0, sizeof(struct ubi_set_vol_prop_req)); + r.property = property; + r.value = value; + +- return ioctl(fd, UBI_IOCSETPROP, &r); ++ return ioctl(fd, UBI_IOCSETVOLPROP, &r); + } + + int ubi_leb_unmap(int fd, int lnum) -- cgit 1.2.3-korg