add idevicerestore support
v2 cover add idevicerestore support
This patch series adds idevicerestore package and dependent libraries.
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 | 18 +++++++++++ .../libirecovery/libirecovery_git.bb | 15 +++++++++ .../idevicerestore/idevicerestore_git.bb | 15 +++++++++ 4 files changed, 80 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
PATCH v2 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 | 15 +++++++++++++++ 1 file changed, 15 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 +15 -0
@@ -0,0 +1,15 @@ +SUMMARY = "Library with common code used by the libraries and tools around the libimobiledevice project" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=6ab17b41640564434dda85c06b7124f7 \ +" + +HOMEPAGE = "http://www.libimobiledevice.org/" + +DEPENDS = "libplist" + +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
Re: [meta-oe][PATCH v2 1/4] libimobiledevice-glue: add recipe
Quoted 16 lines · Potin Lai
libimobiledevice-glue is the library with common code used by the libraries and tools around the libimobiledevice project.
Signed-off-by Potin Lai <[email protected]>--- .../libimobiledevice-glue_git.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-oe/recipes-connectivity/libimobiledevice-glue/libimobiledevice-glue_git.bbmeta-oe/recipes-connectivity/libimobiledevice-glue/libimobiledevice-glue_git.bb new file +0
-0
meta-oe/recipes-connectivity/libimobiledevice-glue/libimobiledevice-glue_git.bb line 2
Quoted 2 lines
meta-oe/recipes-connectivity/libimobiledevice-glue/libimobiledevice-glue_git.bb new file +2
-0@@ -0,0 +1,15 @@ +SUMMARY = "Library with common code used by the libraries and tools around the libimobiledevice project" +LICENSE = "LGPL-2.1"
can we use SPDX notation here please this would be LGPL-2.1-or-later
meta-oe/recipes-connectivity/libimobiledevice-glue/libimobiledevice-glue_git.bb line 15
Quoted 13 lines
meta-oe/recipes-connectivity/libimobiledevice-glue/libimobiledevice-glue_git.bb new file +13
-0+LIC_FILES_CHKSUM = "\ + file://COPYING;md5=6ab17b41640564434dda85c06b7124f7 \ +" + +HOMEPAGE = "http://www.libimobiledevice.org/" + +DEPENDS = "libplist" + +SRCREV = "ecb0996fd2a3b0539153dd3ef901d137bf498ffe" +SRC_URI = "git://github.com/libimobiledevice/libimobiledevice-glue;protocol=https;branch=master" + +S = "${WORKDIR}/git" +inherit autotools pkgconfig
I also set PV to something definitive I see that its using 1.0.0 in AC_INIT see
https://github.com/libimobiledevice/libimobiledevice-glue/blob/master/configure.ac#L5
so perhaps use
PV = "1.0.0+git${SRCPV}"
Quoted 3 lines
--
2.17.1
PATCH v2 2/4 libimobiledevice-glue: fix undefined bswap error
In reply to Potin LaiAdd 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
@@ -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
@@ -9,7 +9,10 @@ HOMEPAGE = "http://www.libimobiledevice.org/" DEPENDS = "libplist" 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
PATCH v2 3/4 libirecovery: add recipe
In reply to Potin Lailibirecovery is a cross-platform library which implements communication to iBoot/iBSS found on Apple's iOS devices via USB.
--- .../libirecovery/libirecovery_git.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-oe/recipes-connectivity/libirecovery/libirecovery_git.bb
meta-oe/recipes-connectivity/libirecovery/libirecovery_git.bb new file +15 -0
@@ -0,0 +1,15 @@ +SUMMARY = "The libirecovery library allows communication with iBoot/iBSS of iOS devices via USB" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=23c2a5e0106b99d75238986559bb5fc6 \ +" + +HOMEPAGE = "http://www.libimobiledevice.org/" + +DEPENDS = "libimobiledevice-glue libusb1" + +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
PATCH v2 4/4 idevicerestore: add recipe
In reply to Potin LaiA command-line application to restore firmware files to iOS devices.
--- .../idevicerestore/idevicerestore_git.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-oe/recipes-support/idevicerestore/idevicerestore_git.bb
meta-oe/recipes-support/idevicerestore/idevicerestore_git.bb new file +15 -0
@@ -0,0 +1,15 @@ +SUMMARY = "A command-line application to restore firmware files to iOS devices" +LICENSE = "LGPL-3.0" +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02 \ +" + +HOMEPAGE = "http://www.libimobiledevice.org/" + +DEPENDS = "libirecovery libimobiledevice libzip curl" + +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