Skip to contentSkip to conversation

ubi-utils-klibc: update to patched v. 1.5.0

PATCH New Andrea Adami 1 participant 1 message Jun 27, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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

---
 .../mtd/ubi-utils-klibc/libubi.c.patch             |   17 +++++++
 .../recipes-devtools/mtd/ubi-utils-klibc_1.4.9.bb  |   49 --------------------
 .../recipes-devtools/mtd/ubi-utils-klibc_1.5.0.bb  |   49 ++++++++++++++++++++
 3 files changed, 66 insertions(+), 49 deletions(-)
 delete mode 100644 meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.4.9.bb
 create mode 100644 meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.0.bb
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch +17 -0
index db95904..b52e207 100644
@@ -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)
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.4.9.bb deleted +0 -49

49 lines not on this page · raw message

meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.0.bb new file +49 -0

49 lines not on this page · raw message

Signature · 1 line
1.7.3.4