Skip to contentSkip to conversation

add idevicerestore support

PATCH New Potin Lai 1 participant 5 messages Mar 31, 2022

lore
Share & tools
lore

Potin Lai

author
#0 lore raw

v3 cover add idevicerestore support

This patch series adds idevicerestore package and dependent libraries.

Changes v2 --> v3:
- update license to follow SPDX format
- set PV information

Changes v1 --> v2:
- add patch for libimobiledevice-glue to fix undefined bswap error

Potin Lai (4):
libimobiledevice-glue: add recipe
libimobiledevice-glue: fix undefined bswap error
libirecovery: add recipe
idevicerestore: add recipe

 ...wap32-and-bswap64-errors-for-MIPS-ma.patch | 32 +++++++++++++++++++
 .../libimobiledevice-glue_git.bb              | 20 ++++++++++++
 .../libirecovery/libirecovery_git.bb          | 17 ++++++++++
 .../idevicerestore/idevicerestore_git.bb      | 17 ++++++++++
 4 files changed, 86 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/libimobiledevice-glue/files/0001-fix-undefined-bswap32-and-bswap64-errors-for-MIPS-ma.patch
 create mode 100644 meta-oe/recipes-connectivity/libimobiledevice-glue/libimobiledevice-glue_git.bb
 create mode 100644 meta-oe/recipes-connectivity/libirecovery/libirecovery_git.bb
 create mode 100644 meta-oe/recipes-support/idevicerestore/idevicerestore_git.bb
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH v3 1/4 libimobiledevice-glue: add recipe

libimobiledevice-glue is the library with common code used by the libraries and tools around the libimobiledevice project.

---
 .../libimobiledevice-glue_git.bb                | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/libimobiledevice-glue/libimobiledevice-glue_git.bb
meta-oe/recipes-connectivity/libimobiledevice-glue/libimobiledevice-glue_git.bb new file +17 -0
new file mode 100644
index 000000000..831d32cdb
@@ -0,0 +1,17 @@
+SUMMARY = "Library with common code used by the libraries and tools around the libimobiledevice project"
+LICENSE = "LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "\
+    file://COPYING;md5=6ab17b41640564434dda85c06b7124f7 \
+"
+
+HOMEPAGE = "http://www.libimobiledevice.org/"
+
+DEPENDS = "libplist"
+
+PV = "1.0.0+git${SRCPV}"
+
+SRCREV = "ecb0996fd2a3b0539153dd3ef901d137bf498ffe"
+SRC_URI = "git://github.com/libimobiledevice/libimobiledevice-glue;protocol=https;branch=master"
+
+S = "${WORKDIR}/git"
+inherit autotools pkgconfig
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH v3 2/4 libimobiledevice-glue: fix undefined bswap error

In reply to Potin Lai

Add patch for fixing undefiened bswap32 & bswap64 error on MIPS machine

---
 ...wap32-and-bswap64-errors-for-MIPS-ma.patch | 32 +++++++++++++++++++
 .../libimobiledevice-glue_git.bb              |  5 ++-
 2 files changed, 36 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-connectivity/libimobiledevice-glue/files/0001-fix-undefined-bswap32-and-bswap64-errors-for-MIPS-ma.patch
meta-oe/recipes-connectivity/libimobiledevice-glue/files/0001-fix-undefined-bswap32-and-bswap64-errors-for-MIPS-ma.patch new file +32 -0
new file mode 100644
index 000000000..cff37fb5d
@@ -0,0 +1,32 @@
+From 73fcf0b54f4c1fc07a2aa003dddaeb5a97177cce Mon Sep 17 00:00:00 2001
+From: Potin Lai <[email protected]>
+Date: Thu, 31 Mar 2022 08:44:31 +0800
+Subject: [PATCH 1/1] fix undefined bswap32 and bswap64 errors for MIPS machine
+
+Replace bswap32 and bswap64 with internal defined version (__bswap_X)
+
+Upstream Status: Submitted [[email protected]]
+
+Signed-off-by: Potin Lai <[email protected]>
+---
+ include/endianness.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/include/endianness.h b/include/endianness.h
+index 099877a..88b63db 100644
+--- a/include/endianness.h
++++ b/include/endianness.h
+@@ -113,8 +113,8 @@
+      && !defined(__FLOAT_WORD_ORDER__)) \
+  || (defined(__FLOAT_WORD_ORDER__) \
+      && __FLOAT_WORD_ORDER__ == __ORDER_BIG_ENDIAN__)
+-#define float_bswap64(x) bswap64(x)
+-#define float_bswap32(x) bswap32(x)
++#define float_bswap64(x) __bswap_64(x)
++#define float_bswap32(x) __bswap_32(x)
+ #else
+ #define float_bswap64(x) (x)
+ #define float_bswap32(x) (x)
+-- 
+2.17.1
+
meta-oe/recipes-connectivity/libimobiledevice-glue/libimobiledevice-glue_git.bb +4 -1
index 831d32cdb..d5d90ea13 100644
@@ -11,7 +11,10 @@ DEPENDS = "libplist"
 PV = "1.0.0+git${SRCPV}"
 
 SRCREV = "ecb0996fd2a3b0539153dd3ef901d137bf498ffe"
-SRC_URI = "git://github.com/libimobiledevice/libimobiledevice-glue;protocol=https;branch=master"
+SRC_URI = "\
+    git://github.com/libimobiledevice/libimobiledevice-glue;protocol=https;branch=master \
+    file://0001-fix-undefined-bswap32-and-bswap64-errors-for-MIPS-ma.patch \
+"
 
 S = "${WORKDIR}/git"
 inherit autotools pkgconfig
Signature · 1 line
2.17.1
author
#3 lore raw

PATCH v3 3/4 libirecovery: add recipe

In reply to Potin Lai

libirecovery is a cross-platform library which implements communication to iBoot/iBSS found on Apple's iOS devices via USB.

---
 .../libirecovery/libirecovery_git.bb            | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/libirecovery/libirecovery_git.bb
meta-oe/recipes-connectivity/libirecovery/libirecovery_git.bb new file +17 -0
new file mode 100644
index 000000000..c36837aca
@@ -0,0 +1,17 @@
+SUMMARY = "The libirecovery library allows communication with iBoot/iBSS of iOS devices via USB"
+LICENSE = "LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "\
+    file://COPYING;md5=23c2a5e0106b99d75238986559bb5fc6 \
+"
+
+HOMEPAGE = "http://www.libimobiledevice.org/"
+
+DEPENDS = "libimobiledevice-glue libusb1"
+
+PV = "1.0.1+git${SRCPV}"
+
+SRCREV = "e19094594552b7bed60418ffe6f46f455e6bb78f"
+SRC_URI = "git://github.com/libimobiledevice/libirecovery;protocol=https;branch=master"
+
+S = "${WORKDIR}/git"
+inherit autotools pkgconfig
Signature · 1 line
2.17.1
author
#4 lore raw

PATCH v3 4/4 idevicerestore: add recipe

In reply to Potin Lai

A command-line application to restore firmware files to iOS devices.

---
 .../idevicerestore/idevicerestore_git.bb        | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-oe/recipes-support/idevicerestore/idevicerestore_git.bb
meta-oe/recipes-support/idevicerestore/idevicerestore_git.bb new file +17 -0
new file mode 100644
index 000000000..fc07c6e69
@@ -0,0 +1,17 @@
+SUMMARY = "A command-line application to restore firmware files to iOS devices"
+LICENSE = "LGPL-3.0-or-later"
+LIC_FILES_CHKSUM = "\
+    file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02 \
+"
+
+HOMEPAGE = "http://www.libimobiledevice.org/"
+
+DEPENDS = "libirecovery libimobiledevice libzip curl"
+
+PV = "1.0.1+git${SRCPV}"
+
+SRCREV = "280575bb95977241e240ed081a2602d68746443e"
+SRC_URI = "git://github.com/libimobiledevice/idevicerestore;protocol=https;branch=master"
+
+S = "${WORKDIR}/git"
+inherit autotools pkgconfig
Signature · 1 line
2.17.1