diff options
| author | Andrea Adami <andrea.adami@gmail.com> | 2012-05-02 23:53:00 +0000 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-05-10 16:38:14 +0200 |
| commit | 3ba480f4b53d564be73f770db05d449da065efc6 (patch) | |
| tree | 23aca2c1a8cf817774008f0804004d912d8710e8 /meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch | |
| parent | 32d316edae416b88159472a3b4f904a830090000 (diff) | |
| download | meta-openembedded-3ba480f4b53d564be73f770db05d449da065efc6.tar.gz | |
ubi-utils-klibc: add the remaining ubicrc32, ubinize, ubiformat
* add more hacks to compile
* binaries tested on Zaurus poodle/corgi (with patched kernel)
* bump PR
* NOTES
* strange behavior wrt getopt for at least ubiformat:
* you should pass the options first, i.e.
* ubiformat -O 512 /dev/mtd3 *works*
* ubiformat /dev/mtd3 -O 512 *fails*
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch')
| -rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch | 13 |
1 files changed, 11 insertions, 2 deletions
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 e60385904b..97c4fa3abf 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 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | --- a/ubi-utils/libubi.c 2012-04-29 21:44:52.000000000 +0200 | 1 | --- a/ubi-utils/libubi.c 2012-05-01 01:57:51.000000000 +0200 |
| 2 | +++ b/ubi-utils/libubi.c 2012-04-29 21:43:52.000000000 +0200 | 2 | +++ b/ubi-utils/libubi.c 2012-05-01 01:55:14.000000000 +0200 |
| 3 | @@ -36,6 +36,26 @@ | 3 | @@ -36,6 +36,26 @@ |
| 4 | #include "libubi_int.h" | 4 | #include "libubi_int.h" |
| 5 | #include "common.h" | 5 | #include "common.h" |
| @@ -49,6 +49,15 @@ | |||
| 49 | 49 | ||
| 50 | if (minor != 0) { | 50 | if (minor != 0) { |
| 51 | errno = EINVAL; | 51 | errno = EINVAL; |
| 52 | @@ -686,7 +706,7 @@ | ||
| 53 | * success and %-1 in case of failure. @r->ubi_num contains newly created UBI | ||
| 54 | * device number. | ||
| 55 | */ | ||
| 56 | -static int do_attach(const char *node, const struct ubi_attach_req *r) | ||
| 57 | +static int do_attach(const char *node, struct ubi_attach_req *r) | ||
| 58 | { | ||
| 59 | int fd, ret; | ||
| 60 | |||
| 52 | @@ -757,8 +777,8 @@ | 61 | @@ -757,8 +777,8 @@ |
| 53 | mtd_dev_node); | 62 | mtd_dev_node); |
| 54 | } | 63 | } |
