diff options
Diffstat (limited to 'meta-oe')
21 files changed, 264 insertions, 205 deletions
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/remove-selinux-android.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0001-adb-remove-selinux-extensions.patch index bc0dd4a2e..7d20c5068 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/remove-selinux-android.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0001-adb-remove-selinux-extensions.patch | |||
@@ -1,10 +1,21 @@ | |||
1 | Subject: drop useless includes of Android SELINUX extensions; avoids having to clone another module; this should be sent upstream | 1 | From 7b7200727413ca4a9bb132221c543ec033dffafa Mon Sep 17 00:00:00 2001 |
2 | Author: Sergio Schvezov <sergio.schvezov@canonical.com> | 2 | From: Sergio Schvezov <sergio.schvezov@canonical.com> |
3 | Date: Wed, 7 Sep 2016 12:58:47 +0300 | ||
4 | Subject: [PATCH] adb: remove selinux extensions | ||
5 | |||
6 | * drop useless includes of Android SELINUX extensions | ||
7 | * avoids having to clone another module | ||
8 | * this should be sent upstream | ||
3 | 9 | ||
4 | Upstream-Status: Inappropriate | 10 | Upstream-Status: Inappropriate |
11 | |||
12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
5 | --- | 13 | --- |
6 | adb/file_sync_service.c | 3 --- | 14 | adb/file_sync_service.c | 3 --- |
15 | 1 file changed, 3 deletions(-) | ||
7 | 16 | ||
17 | diff --git a/adb/file_sync_service.c b/adb/file_sync_service.c | ||
18 | index 7933858516..3cbd0cd863 100644 | ||
8 | --- a/adb/file_sync_service.c | 19 | --- a/adb/file_sync_service.c |
9 | +++ b/adb/file_sync_service.c | 20 | +++ b/adb/file_sync_service.c |
10 | @@ -26,7 +26,6 @@ | 21 | @@ -26,7 +26,6 @@ |
@@ -23,7 +34,7 @@ Upstream-Status: Inappropriate | |||
23 | } | 34 | } |
24 | *x++ = '/'; | 35 | *x++ = '/'; |
25 | } | 36 | } |
26 | @@ -251,7 +249,6 @@ static int handle_send_file(int s, char | 37 | @@ -251,7 +249,6 @@ static int handle_send_file(int s, char *path, uid_t uid, |
27 | if(fd >= 0) { | 38 | if(fd >= 0) { |
28 | struct utimbuf u; | 39 | struct utimbuf u; |
29 | adb_close(fd); | 40 | adb_close(fd); |
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/use-local-socket.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0002-adb-Use-local-sockets-where-appropriate.patch index 0ff37e038..3627110ad 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/use-local-socket.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0002-adb-Use-local-sockets-where-appropriate.patch | |||
@@ -1,13 +1,17 @@ | |||
1 | Subject: adb: Use local sockets where appropriate | 1 | From d855f042ca09a358cebe2d3c1d29d512afd7ebb8 Mon Sep 17 00:00:00 2001 |
2 | Author: Hilko Bengen <bengen@debian.org> | 2 | From: Hilko Bengen <bengen@debian.org> |
3 | Date: Wed, 7 Sep 2016 12:58:47 +0300 | ||
4 | Subject: [PATCH] adb: Use local sockets where appropriate | ||
3 | 5 | ||
4 | Upstream-Status: Inappropriate | 6 | Upstream-Status: Inappropriate |
5 | --- | 7 | --- |
6 | adb/adb.c | 6 +++++- | 8 | adb/adb.c | 6 +++++- |
7 | adb/adb_client.c | 5 +++-- | 9 | adb/adb_client.c | 5 +++-- |
8 | adb/transport_local.c | 3 ++- | 10 | adb/transport_local.c | 3 ++- |
9 | 3 files changed, 10 insertions(+), 4 deletions(-) | 11 | 3 files changed, 10 insertions(+), 4 deletions(-) |
10 | 12 | ||
13 | diff --git a/adb/adb.c b/adb/adb.c | ||
14 | index 10a1e0da26..027edd9359 100644 | ||
11 | --- a/adb/adb.c | 15 | --- a/adb/adb.c |
12 | +++ b/adb/adb.c | 16 | +++ b/adb/adb.c |
13 | @@ -1230,7 +1230,11 @@ int launch_server(int server_port) | 17 | @@ -1230,7 +1230,11 @@ int launch_server(int server_port) |
@@ -23,6 +27,8 @@ Upstream-Status: Inappropriate | |||
23 | } | 27 | } |
24 | 28 | ||
25 | #if !ADB_HOST | 29 | #if !ADB_HOST |
30 | diff --git a/adb/adb_client.c b/adb/adb_client.c | ||
31 | index eb1720d22c..a383faefe3 100644 | ||
26 | --- a/adb/adb_client.c | 32 | --- a/adb/adb_client.c |
27 | +++ b/adb/adb_client.c | 33 | +++ b/adb/adb_client.c |
28 | @@ -185,12 +185,12 @@ int _adb_connect(const char *service) | 34 | @@ -185,12 +185,12 @@ int _adb_connect(const char *service) |
@@ -48,9 +54,11 @@ Upstream-Status: Inappropriate | |||
48 | if(writex(fd, tmp, 4) || writex(fd, service, len)) { | 54 | if(writex(fd, tmp, 4) || writex(fd, service, len)) { |
49 | strcpy(__adb_error, "write failure during connection"); | 55 | strcpy(__adb_error, "write failure during connection"); |
50 | adb_close(fd); | 56 | adb_close(fd); |
57 | diff --git a/adb/transport_local.c b/adb/transport_local.c | ||
58 | index 948cc15812..71582a8c88 100644 | ||
51 | --- a/adb/transport_local.c | 59 | --- a/adb/transport_local.c |
52 | +++ b/adb/transport_local.c | 60 | +++ b/adb/transport_local.c |
53 | @@ -121,7 +121,8 @@ int local_connect_arbitrary_ports(int co | 61 | @@ -121,7 +121,8 @@ int local_connect_arbitrary_ports(int console_port, int adb_port) |
54 | } | 62 | } |
55 | #endif | 63 | #endif |
56 | if (fd < 0) { | 64 | if (fd < 0) { |
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/core/0003-adb-define-shell-command.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0003-adb-define-shell-command.patch new file mode 100644 index 000000000..cf1d9cbc3 --- /dev/null +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0003-adb-define-shell-command.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 4421c2e19946dcd651fd8ac022b96627fc526149 Mon Sep 17 00:00:00 2001 | ||
2 | From: Fathi Boudra <fabo@debian.org> | ||
3 | Date: Wed, 7 Sep 2016 12:58:47 +0300 | ||
4 | Subject: [PATCH] adb: define shell command | ||
5 | |||
6 | we intend to run on Linux system so the shell is always /bin/sh, | ||
7 | for the host or the target. | ||
8 | |||
9 | Upstream-Status: Inappropriate | ||
10 | --- | ||
11 | adb/services.c | 4 ---- | ||
12 | 1 file changed, 4 deletions(-) | ||
13 | |||
14 | diff --git a/adb/services.c b/adb/services.c | ||
15 | index 21b08dc201..d44b0c5068 100644 | ||
16 | --- a/adb/services.c | ||
17 | +++ b/adb/services.c | ||
18 | @@ -299,11 +299,7 @@ static int create_subproc_raw(const char *cmd, const char *arg0, const char *arg | ||
19 | } | ||
20 | #endif /* !ABD_HOST */ | ||
21 | |||
22 | -#if ADB_HOST | ||
23 | #define SHELL_COMMAND "/bin/sh" | ||
24 | -#else | ||
25 | -#define SHELL_COMMAND "/system/bin/sh" | ||
26 | -#endif | ||
27 | |||
28 | #if !ADB_HOST | ||
29 | static void subproc_waiter_service(int fd, void *cookie) | ||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/fix-big-endian-build.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0004-adb-Fix-build-on-big-endian-systems.patch index 2b91c3baf..79e9d4d3b 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/fix-big-endian-build.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0004-adb-Fix-build-on-big-endian-systems.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | Fix build on big endian systems | 1 | From 548b8ca62c64a16305929e2eaf3d546d48de9c25 Mon Sep 17 00:00:00 2001 |
2 | From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | ||
3 | Date: Tue, 21 Feb 2017 19:46:24 +0100 | ||
4 | Subject: [PATCH] adb: Fix build on big endian systems | ||
2 | 5 | ||
3 | The usb_linux_client.c file defines cpu_to_le16/32 by using the C | 6 | The usb_linux_client.c file defines cpu_to_le16/32 by using the C |
4 | library htole16/32 function calls. However, cpu_to_le16/32 are used | 7 | library htole16/32 function calls. However, cpu_to_le16/32 are used |
@@ -14,9 +17,12 @@ To solve this, we simply open-code cpu_to_le16/32 in a way that allows | |||
14 | them to be used when initializing structures. | 17 | them to be used when initializing structures. |
15 | 18 | ||
16 | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 19 | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
20 | --- | ||
21 | adb/usb_linux_client.c | 11 +++++++++-- | ||
22 | 1 file changed, 9 insertions(+), 2 deletions(-) | ||
17 | 23 | ||
18 | Index: b/adb/usb_linux_client.c | 24 | diff --git a/adb/usb_linux_client.c b/adb/usb_linux_client.c |
19 | =================================================================== | 25 | index 8426e0ea14..6e8b5bbbd2 100644 |
20 | --- a/adb/usb_linux_client.c | 26 | --- a/adb/usb_linux_client.c |
21 | +++ b/adb/usb_linux_client.c | 27 | +++ b/adb/usb_linux_client.c |
22 | @@ -34,8 +34,15 @@ | 28 | @@ -34,8 +34,15 @@ |
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/0001-add-base64-implementation.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0005-adb-add-base64-implementation.patch index fa7253a2b..fcd4ae238 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/0001-add-base64-implementation.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0005-adb-add-base64-implementation.patch | |||
@@ -1,19 +1,19 @@ | |||
1 | From bbeb72f11c64f190b23abbed5f44311bd021bdc9 Mon Sep 17 00:00:00 2001 | 1 | From 753bcb5971401b82fb2e6197d31c9e386f6d0392 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 15 Sep 2017 15:46:38 -0700 | 3 | Date: Fri, 15 Sep 2017 15:46:38 -0700 |
4 | Subject: [PATCH 1/2] add base64 implementation | 4 | Subject: [PATCH] adb: add base64 implementation |
5 | 5 | ||
6 | musl needs it | 6 | musl needs it |
7 | 7 | ||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
9 | --- | 9 | --- |
10 | adb/adb_auth_client.c | 2 +- | 10 | adb/adb_auth_client.c | 2 +- |
11 | adb/base64.c | 315 ++++++++++++++++++++++++++++++++++++++ | 11 | adb/base64.c | 315 ++++++++++++++++++++++++++++++++++++++++++ |
12 | 2 files changed, 316 insertions(+), 1 deletion(-) | 12 | 2 files changed, 316 insertions(+), 1 deletion(-) |
13 | create mode 100644 adb/base64.c | 13 | create mode 100644 adb/base64.c |
14 | 14 | ||
15 | diff --git a/adb/adb_auth_client.c b/adb/adb_auth_client.c | 15 | diff --git a/adb/adb_auth_client.c b/adb/adb_auth_client.c |
16 | index 55e9dca..104b413 100644 | 16 | index 55e9dcad19..104b413b8b 100644 |
17 | --- a/adb/adb_auth_client.c | 17 | --- a/adb/adb_auth_client.c |
18 | +++ b/adb/adb_auth_client.c | 18 | +++ b/adb/adb_auth_client.c |
19 | @@ -75,7 +75,7 @@ static void read_keys(const char *file, struct listnode *list) | 19 | @@ -75,7 +75,7 @@ static void read_keys(const char *file, struct listnode *list) |
@@ -27,7 +27,7 @@ index 55e9dca..104b413 100644 | |||
27 | free(key); | 27 | free(key); |
28 | diff --git a/adb/base64.c b/adb/base64.c | 28 | diff --git a/adb/base64.c b/adb/base64.c |
29 | new file mode 100644 | 29 | new file mode 100644 |
30 | index 0000000..95da284 | 30 | index 0000000000..95da284d0d |
31 | --- /dev/null | 31 | --- /dev/null |
32 | +++ b/adb/base64.c | 32 | +++ b/adb/base64.c |
33 | @@ -0,0 +1,315 @@ | 33 | @@ -0,0 +1,315 @@ |
@@ -346,6 +346,3 @@ index 0000000..95da284 | |||
346 | + return (tarindex); | 346 | + return (tarindex); |
347 | +} | 347 | +} |
348 | + | 348 | + |
349 | -- | ||
350 | 2.14.1 | ||
351 | |||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/0002-adb-Musl-fixes.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0006-adb-Musl-fixes.patch index 23feaba81..b5d383f38 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/0002-adb-Musl-fixes.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0006-adb-Musl-fixes.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From f8653ed0ede4aa781ab758fcd44fdc05ffbe0b0a Mon Sep 17 00:00:00 2001 | 1 | From 62d957a1271c88ec08d67984fbe31601f0bd41a9 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 15 Sep 2017 15:50:57 -0700 | 3 | Date: Fri, 15 Sep 2017 15:50:57 -0700 |
4 | Subject: [PATCH 2/2] adb: Musl fixes | 4 | Subject: [PATCH] adb: Musl fixes |
5 | 5 | ||
6 | __nonnull is gcc specific | 6 | __nonnull is gcc specific |
7 | include sys/types.h for size_t | 7 | include sys/types.h for size_t |
@@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
16 | 4 files changed, 20 insertions(+), 14 deletions(-) | 16 | 4 files changed, 20 insertions(+), 14 deletions(-) |
17 | 17 | ||
18 | diff --git a/adb/adb.h b/adb/adb.h | 18 | diff --git a/adb/adb.h b/adb/adb.h |
19 | index 44e5981..bcdc49f 100644 | 19 | index 44e5981bdc..bcdc49f63c 100644 |
20 | --- a/adb/adb.h | 20 | --- a/adb/adb.h |
21 | +++ b/adb/adb.h | 21 | +++ b/adb/adb.h |
22 | @@ -18,7 +18,9 @@ | 22 | @@ -18,7 +18,9 @@ |
@@ -30,7 +30,7 @@ index 44e5981..bcdc49f 100644 | |||
30 | #include "transport.h" /* readx(), writex() */ | 30 | #include "transport.h" /* readx(), writex() */ |
31 | 31 | ||
32 | diff --git a/adb/disable_verity_service.c b/adb/disable_verity_service.c | 32 | diff --git a/adb/disable_verity_service.c b/adb/disable_verity_service.c |
33 | index ed3da52..29fa3d6 100644 | 33 | index ed3da52108..29fa3d65a9 100644 |
34 | --- a/adb/disable_verity_service.c | 34 | --- a/adb/disable_verity_service.c |
35 | +++ b/adb/disable_verity_service.c | 35 | +++ b/adb/disable_verity_service.c |
36 | @@ -14,25 +14,28 @@ | 36 | @@ -14,25 +14,28 @@ |
@@ -68,7 +68,7 @@ index ed3da52..29fa3d6 100644 | |||
68 | { | 68 | { |
69 | char buffer[256]; | 69 | char buffer[256]; |
70 | diff --git a/adb/framebuffer_service.c b/adb/framebuffer_service.c | 70 | diff --git a/adb/framebuffer_service.c b/adb/framebuffer_service.c |
71 | index 8cbe840..8f0ccfb 100644 | 71 | index 8cbe8403cc..8f0ccfb7aa 100644 |
72 | --- a/adb/framebuffer_service.c | 72 | --- a/adb/framebuffer_service.c |
73 | +++ b/adb/framebuffer_service.c | 73 | +++ b/adb/framebuffer_service.c |
74 | @@ -14,6 +14,10 @@ | 74 | @@ -14,6 +14,10 @@ |
@@ -93,7 +93,7 @@ index 8cbe840..8f0ccfb 100644 | |||
93 | #include <sys/ioctl.h> | 93 | #include <sys/ioctl.h> |
94 | #include <sys/mman.h> | 94 | #include <sys/mman.h> |
95 | diff --git a/adb/sysdeps.h b/adb/sysdeps.h | 95 | diff --git a/adb/sysdeps.h b/adb/sysdeps.h |
96 | index cc1f839..ea39ac3 100644 | 96 | index cc1f839e9f..ea39ac39cc 100644 |
97 | --- a/adb/sysdeps.h | 97 | --- a/adb/sysdeps.h |
98 | +++ b/adb/sysdeps.h | 98 | +++ b/adb/sysdeps.h |
99 | @@ -123,8 +123,8 @@ static __inline__ int unix_close(int fd) | 99 | @@ -123,8 +123,8 @@ static __inline__ int unix_close(int fd) |
@@ -129,6 +129,3 @@ index cc1f839..ea39ac3 100644 | |||
129 | 129 | ||
130 | static __inline__ int adb_unlink(const char* path) | 130 | static __inline__ int adb_unlink(const char* path) |
131 | { | 131 | { |
132 | -- | ||
133 | 2.14.1 | ||
134 | |||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/0001-usb_linux.c-fix-build-with-glibc-2.28.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0007-adb-usb_linux.c-fix-build-with-glibc-2.28.patch index 15401d152..e02a95687 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/0001-usb_linux.c-fix-build-with-glibc-2.28.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0007-adb-usb_linux.c-fix-build-with-glibc-2.28.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From cb80906bd3869bba370a088e4634ae4a8093fdd8 Mon Sep 17 00:00:00 2001 | 1 | From de393bba41c8feff932c77d6c30233945f380d42 Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
3 | Date: Sat, 11 Aug 2018 13:23:37 +0000 | 3 | Date: Sat, 11 Aug 2018 13:23:37 +0000 |
4 | Subject: [PATCH] usb_linux.c: fix build with glibc-2.28 | 4 | Subject: [PATCH] adb: usb_linux.c: fix build with glibc-2.28 |
5 | 5 | ||
6 | * include sysmacros for major, minor | 6 | * include sysmacros for major, minor |
7 | 7 | ||
@@ -11,7 +11,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | |||
11 | 1 file changed, 1 insertion(+) | 11 | 1 file changed, 1 insertion(+) |
12 | 12 | ||
13 | diff --git a/adb/usb_linux.c b/adb/usb_linux.c | 13 | diff --git a/adb/usb_linux.c b/adb/usb_linux.c |
14 | index f16bdd036..c8a773244 100644 | 14 | index f16bdd0361..c8a7732441 100644 |
15 | --- a/adb/usb_linux.c | 15 | --- a/adb/usb_linux.c |
16 | +++ b/adb/usb_linux.c | 16 | +++ b/adb/usb_linux.c |
17 | @@ -22,6 +22,7 @@ | 17 | @@ -22,6 +22,7 @@ |
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/0001-Allow-adbd-to-be-ran-as-root.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0008-adb-Allow-adbd-to-be-ran-as-root.patch index d8f0d4869..7d223e05f 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/0001-Allow-adbd-to-be-ran-as-root.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0008-adb-Allow-adbd-to-be-ran-as-root.patch | |||
@@ -1,17 +1,17 @@ | |||
1 | From 3237f335c5b559c68749173f4343e6475f9eb8c7 Mon Sep 17 00:00:00 2001 | 1 | From 3a788e9168c9b9eac66c4fa479413f4a95c61be4 Mon Sep 17 00:00:00 2001 |
2 | From: Florent Revest <revestflo@gmail.com> | 2 | From: Florent Revest <revestflo@gmail.com> |
3 | Date: Mon, 30 Oct 2017 21:05:46 +0100 | 3 | Date: Mon, 30 Oct 2017 21:05:46 +0100 |
4 | Subject: [PATCH] Allow adbd to be ran as root | 4 | Subject: [PATCH] adb: Allow adbd to be ran as root |
5 | 5 | ||
6 | --- | 6 | --- |
7 | adb/adb.c | 1 + | 7 | adb/adb.c | 1 + |
8 | 1 file changed, 1 insertion(+) | 8 | 1 file changed, 1 insertion(+) |
9 | 9 | ||
10 | diff --git a/adb/adb.c b/adb/adb.c | 10 | diff --git a/adb/adb.c b/adb/adb.c |
11 | index 10a1e0d..a88641f 100644 | 11 | index 027edd9359..e0f7ecde45 100644 |
12 | --- a/adb/adb.c | 12 | --- a/adb/adb.c |
13 | +++ b/adb/adb.c | 13 | +++ b/adb/adb.c |
14 | @@ -1267,6 +1267,7 @@ static int should_drop_privileges() { | 14 | @@ -1271,6 +1271,7 @@ static int should_drop_privileges() { |
15 | int secure = 0; | 15 | int secure = 0; |
16 | char value[PROPERTY_VALUE_MAX]; | 16 | char value[PROPERTY_VALUE_MAX]; |
17 | 17 | ||
@@ -19,6 +19,3 @@ index 10a1e0d..a88641f 100644 | |||
19 | /* run adbd in secure mode if ro.secure is set and | 19 | /* run adbd in secure mode if ro.secure is set and |
20 | ** we are not in the emulator | 20 | ** we are not in the emulator |
21 | */ | 21 | */ |
22 | -- | ||
23 | 2.14.3 | ||
24 | |||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/mkbootimg-Add-dt-parameter-to-specify-DT-image.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0009-mkbootimg-Add-dt-parameter-to-specify-DT-image.patch index 76624d406..a4dc6e1e3 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/mkbootimg-Add-dt-parameter-to-specify-DT-image.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0009-mkbootimg-Add-dt-parameter-to-specify-DT-image.patch | |||
@@ -1,19 +1,19 @@ | |||
1 | From cc5e7b02a3be57709a1aed6e34be100b82a71620 Mon Sep 17 00:00:00 2001 | 1 | From dd195778a9930b7967b21a3b8eb390b70253dbad Mon Sep 17 00:00:00 2001 |
2 | From: David Ng <dave@codeaurora.org> | 2 | From: David Ng <dave@codeaurora.org> |
3 | Date: Fri, 27 Jul 2012 17:15:03 -0700 | 3 | Date: Fri, 27 Jul 2012 17:15:03 -0700 |
4 | Subject: [PATCH 1/2] mkbootimg: Add --dt parameter to specify DT image | 4 | Subject: [PATCH] mkbootimg: Add --dt parameter to specify DT image |
5 | 5 | ||
6 | New optional --dt parameter to specify a kernel device | 6 | New optional --dt parameter to specify a kernel device |
7 | tree image. | 7 | tree image. |
8 | 8 | ||
9 | Change-Id: Ie29a11cbf4138426bfd19ae486d69a5fcbd8f442 | ||
10 | |||
11 | Upstream-Status: Inappropriate | 9 | Upstream-Status: Inappropriate |
12 | --- | 10 | --- |
13 | mkbootimg/bootimg.h | 7 +++++-- | 11 | mkbootimg/bootimg.h | 7 +++++-- |
14 | mkbootimg/mkbootimg.c | 21 +++++++++++++++++++++ | 12 | mkbootimg/mkbootimg.c | 21 +++++++++++++++++++++ |
15 | 2 files changed, 26 insertions(+), 2 deletions(-) | 13 | 2 files changed, 26 insertions(+), 2 deletions(-) |
16 | 14 | ||
15 | diff --git a/mkbootimg/bootimg.h b/mkbootimg/bootimg.h | ||
16 | index 9171d85a7b..308c537d6b 100644 | ||
17 | --- a/mkbootimg/bootimg.h | 17 | --- a/mkbootimg/bootimg.h |
18 | +++ b/mkbootimg/bootimg.h | 18 | +++ b/mkbootimg/bootimg.h |
19 | @@ -41,8 +41,8 @@ struct boot_img_hdr | 19 | @@ -41,8 +41,8 @@ struct boot_img_hdr |
@@ -41,6 +41,8 @@ Upstream-Status: Inappropriate | |||
41 | ** | 41 | ** |
42 | ** 0. all entities are page_size aligned in flash | 42 | ** 0. all entities are page_size aligned in flash |
43 | ** 1. kernel and ramdisk are required (size != 0) | 43 | ** 1. kernel and ramdisk are required (size != 0) |
44 | diff --git a/mkbootimg/mkbootimg.c b/mkbootimg/mkbootimg.c | ||
45 | index fc92b4dc30..658052cdf2 100644 | ||
44 | --- a/mkbootimg/mkbootimg.c | 46 | --- a/mkbootimg/mkbootimg.c |
45 | +++ b/mkbootimg/mkbootimg.c | 47 | +++ b/mkbootimg/mkbootimg.c |
46 | @@ -65,6 +65,7 @@ int usage(void) | 48 | @@ -65,6 +65,7 @@ int usage(void) |
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/core/0010-Use-linux-capability.h-on-linux-systems-too.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0010-Use-linux-capability.h-on-linux-systems-too.patch new file mode 100644 index 000000000..2c607ff67 --- /dev/null +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0010-Use-linux-capability.h-on-linux-systems-too.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | From ef743c9c3c7452ae904a5c343ee2b759ab3a87cb Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Lo=C3=AFc=20Minier?= <loic.minier@ubuntu.com> | ||
3 | Date: Wed, 7 Sep 2016 12:58:47 +0300 | ||
4 | Subject: [PATCH] Use linux/capability.h on linux systems too | ||
5 | |||
6 | Upstream-Status: Inappropriate | ||
7 | --- | ||
8 | include/private/android_filesystem_config.h | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h | ||
12 | index 2f528b95c8..3e0b00928e 100644 | ||
13 | --- a/include/private/android_filesystem_config.h | ||
14 | +++ b/include/private/android_filesystem_config.h | ||
15 | @@ -27,7 +27,7 @@ | ||
16 | #include <sys/types.h> | ||
17 | #include <stdint.h> | ||
18 | |||
19 | -#ifdef HAVE_ANDROID_OS | ||
20 | +#if defined(HAVE_ANDROID_OS) || defined(__linux__) | ||
21 | #include <linux/capability.h> | ||
22 | #else | ||
23 | #include "android_filesystem_capability.h" | ||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/remove-bionic-android.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0011-Remove-bionic-specific-calls.patch index 93b30cab6..5b18f461a 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/remove-bionic-android.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0011-Remove-bionic-specific-calls.patch | |||
@@ -1,13 +1,17 @@ | |||
1 | Description: remove bionic specific calls | 1 | From 9eff8799831961c0edf6e37e5d4cbf43baa7c748 Mon Sep 17 00:00:00 2001 |
2 | Author: Fathi Boudra <fabo@debian.org> | 2 | From: Fathi Boudra <fabo@debian.org> |
3 | Date: Wed, 7 Sep 2016 12:58:47 +0300 | ||
4 | Subject: [PATCH] Remove bionic specific calls | ||
3 | 5 | ||
4 | Upstream-Status: Inappropriate | 6 | Upstream-Status: Inappropriate |
5 | --- | 7 | --- |
6 | include/cutils/properties.h | 1 - | 8 | include/cutils/properties.h | 1 - |
7 | libcutils/properties.c | 2 +- | 9 | libcutils/properties.c | 2 +- |
8 | liblog/logd_write.c | 5 +++++ | 10 | liblog/logd_write.c | 5 +++++ |
9 | 3 files changed, 6 insertions(+), 2 deletions(-) | 11 | 3 files changed, 6 insertions(+), 2 deletions(-) |
10 | 12 | ||
13 | diff --git a/include/cutils/properties.h b/include/cutils/properties.h | ||
14 | index 798db8b36f..7d01f28d6e 100644 | ||
11 | --- a/include/cutils/properties.h | 15 | --- a/include/cutils/properties.h |
12 | +++ b/include/cutils/properties.h | 16 | +++ b/include/cutils/properties.h |
13 | @@ -19,7 +19,6 @@ | 17 | @@ -19,7 +19,6 @@ |
@@ -18,6 +22,24 @@ Upstream-Status: Inappropriate | |||
18 | #include <stdint.h> | 22 | #include <stdint.h> |
19 | 23 | ||
20 | #ifdef __cplusplus | 24 | #ifdef __cplusplus |
25 | diff --git a/libcutils/properties.c b/libcutils/properties.c | ||
26 | index b283658aa4..4151e7882c 100644 | ||
27 | --- a/libcutils/properties.c | ||
28 | +++ b/libcutils/properties.c | ||
29 | @@ -104,10 +104,10 @@ int32_t property_get_int32(const char *key, int32_t default_value) { | ||
30 | return (int32_t)property_get_imax(key, INT32_MIN, INT32_MAX, default_value); | ||
31 | } | ||
32 | |||
33 | +#undef HAVE_LIBC_SYSTEM_PROPERTIES | ||
34 | #ifdef HAVE_LIBC_SYSTEM_PROPERTIES | ||
35 | |||
36 | #define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_ | ||
37 | -#include <sys/_system_properties.h> | ||
38 | |||
39 | int property_set(const char *key, const char *value) | ||
40 | { | ||
41 | diff --git a/liblog/logd_write.c b/liblog/logd_write.c | ||
42 | index b2668cedb7..f5a44fe901 100644 | ||
21 | --- a/liblog/logd_write.c | 43 | --- a/liblog/logd_write.c |
22 | +++ b/liblog/logd_write.c | 44 | +++ b/liblog/logd_write.c |
23 | @@ -23,6 +23,7 @@ | 45 | @@ -23,6 +23,7 @@ |
@@ -28,7 +50,7 @@ Upstream-Status: Inappropriate | |||
28 | #include <sys/types.h> | 50 | #include <sys/types.h> |
29 | #if (FAKE_LOG_DEVICE == 0) | 51 | #if (FAKE_LOG_DEVICE == 0) |
30 | #include <sys/socket.h> | 52 | #include <sys/socket.h> |
31 | @@ -205,7 +206,11 @@ static int __write_to_log_kernel(log_id_ | 53 | @@ -205,7 +206,11 @@ static int __write_to_log_kernel(log_id_t log_id, struct iovec *vec, size_t nr) |
32 | realtime_ts.tv_nsec = ts.tv_nsec; | 54 | realtime_ts.tv_nsec = ts.tv_nsec; |
33 | 55 | ||
34 | log_id_buf = log_id; | 56 | log_id_buf = log_id; |
@@ -40,17 +62,3 @@ Upstream-Status: Inappropriate | |||
40 | 62 | ||
41 | newVec[0].iov_base = (unsigned char *) &log_id_buf; | 63 | newVec[0].iov_base = (unsigned char *) &log_id_buf; |
42 | newVec[0].iov_len = sizeof_log_id_t; | 64 | newVec[0].iov_len = sizeof_log_id_t; |
43 | --- a/libcutils/properties.c | ||
44 | +++ b/libcutils/properties.c | ||
45 | @@ -104,10 +104,10 @@ int32_t property_get_int32(const char *k | ||
46 | return (int32_t)property_get_imax(key, INT32_MIN, INT32_MAX, default_value); | ||
47 | } | ||
48 | |||
49 | +#undef HAVE_LIBC_SYSTEM_PROPERTIES | ||
50 | #ifdef HAVE_LIBC_SYSTEM_PROPERTIES | ||
51 | |||
52 | #define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_ | ||
53 | -#include <sys/_system_properties.h> | ||
54 | |||
55 | int property_set(const char *key, const char *value) | ||
56 | { | ||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/implicit-declaration-function-strlcat-strlcopy.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0012-Fix-implicit-declaration-of-stlcat-strlcopy-function.patch index f26e5d0cf..b0feb6592 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/implicit-declaration-function-strlcat-strlcopy.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0012-Fix-implicit-declaration-of-stlcat-strlcopy-function.patch | |||
@@ -1,13 +1,29 @@ | |||
1 | Description: fix implicit declaration of stlcat/strlcopy functions. | 1 | From cd4525d760c6f88c9bf85f7bf488da79cd0d3264 Mon Sep 17 00:00:00 2001 |
2 | Author: Fathi Boudra <fabo@debian.org> | 2 | From: Fathi Boudra <fabo@debian.org> |
3 | Date: Wed, 7 Sep 2016 12:58:47 +0300 | ||
4 | Subject: [PATCH] Fix implicit declaration of stlcat/strlcopy functions | ||
3 | 5 | ||
4 | Upstream-Status: Inappropriate | 6 | Upstream-Status: Inappropriate |
5 | --- | 7 | --- |
6 | adb/adb.c | 1 + | 8 | adb/adb.c | 1 + |
7 | fs_mgr/fs_mgr_fstab.c | 2 +- | 9 | fs_mgr/fs_mgr_fstab.c | 2 +- |
8 | include/cutils/sockets.h | 2 +- | 10 | include/cutils/sockets.h | 2 +- |
9 | 3 files changed, 3 insertions(+), 2 deletions(-) | 11 | 3 files changed, 3 insertions(+), 2 deletions(-) |
10 | 12 | ||
13 | diff --git a/adb/adb.c b/adb/adb.c | ||
14 | index e0f7ecde45..aaefd9b401 100644 | ||
15 | --- a/adb/adb.c | ||
16 | +++ b/adb/adb.c | ||
17 | @@ -41,6 +41,7 @@ | ||
18 | #include <sys/prctl.h> | ||
19 | #include <getopt.h> | ||
20 | #include <selinux/selinux.h> | ||
21 | +#include <grp.h> | ||
22 | #else | ||
23 | #include "usb_vendors.h" | ||
24 | #endif | ||
25 | diff --git a/fs_mgr/fs_mgr_fstab.c b/fs_mgr/fs_mgr_fstab.c | ||
26 | index edd9591164..9ddb4643b5 100644 | ||
11 | --- a/fs_mgr/fs_mgr_fstab.c | 27 | --- a/fs_mgr/fs_mgr_fstab.c |
12 | +++ b/fs_mgr/fs_mgr_fstab.c | 28 | +++ b/fs_mgr/fs_mgr_fstab.c |
13 | @@ -17,7 +17,7 @@ | 29 | @@ -17,7 +17,7 @@ |
@@ -19,6 +35,8 @@ Upstream-Status: Inappropriate | |||
19 | #include <sys/mount.h> | 35 | #include <sys/mount.h> |
20 | 36 | ||
21 | #include "fs_mgr_priv.h" | 37 | #include "fs_mgr_priv.h" |
38 | diff --git a/include/cutils/sockets.h b/include/cutils/sockets.h | ||
39 | index daf43ec944..d3270c69e7 100644 | ||
22 | --- a/include/cutils/sockets.h | 40 | --- a/include/cutils/sockets.h |
23 | +++ b/include/cutils/sockets.h | 41 | +++ b/include/cutils/sockets.h |
24 | @@ -19,7 +19,7 @@ | 42 | @@ -19,7 +19,7 @@ |
@@ -30,13 +48,3 @@ Upstream-Status: Inappropriate | |||
30 | #include <stdbool.h> | 48 | #include <stdbool.h> |
31 | 49 | ||
32 | #ifdef HAVE_WINSOCK | 50 | #ifdef HAVE_WINSOCK |
33 | --- a/adb/adb.c | ||
34 | +++ b/adb/adb.c | ||
35 | @@ -41,6 +41,7 @@ | ||
36 | #include <sys/prctl.h> | ||
37 | #include <getopt.h> | ||
38 | #include <selinux/selinux.h> | ||
39 | +#include <grp.h> | ||
40 | #else | ||
41 | #include "usb_vendors.h" | ||
42 | #endif | ||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/define-shell-command.patch b/meta-oe/recipes-devtools/android-tools/android-tools/define-shell-command.patch deleted file mode 100644 index 64edd0d11..000000000 --- a/meta-oe/recipes-devtools/android-tools/android-tools/define-shell-command.patch +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | Description: we intend to run on Linux system so the shell is always /bin/sh, | ||
2 | for the host or the target. | ||
3 | Author: Fathi Boudra <fabo@debian.org> | ||
4 | |||
5 | Upstream-Status: Inappropriate | ||
6 | --- | ||
7 | adb/services.c | 4 ---- | ||
8 | 1 file changed, 4 deletions(-) | ||
9 | |||
10 | --- a/adb/services.c | ||
11 | +++ b/adb/services.c | ||
12 | @@ -299,11 +299,7 @@ static int create_subproc_raw(const char | ||
13 | } | ||
14 | #endif /* !ABD_HOST */ | ||
15 | |||
16 | -#if ADB_HOST | ||
17 | #define SHELL_COMMAND "/bin/sh" | ||
18 | -#else | ||
19 | -#define SHELL_COMMAND "/system/bin/sh" | ||
20 | -#endif | ||
21 | |||
22 | #if !ADB_HOST | ||
23 | static void subproc_waiter_service(int fd, void *cookie) | ||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/extras/0001-ext4_utils-remove-selinux-extensions.patch b/meta-oe/recipes-devtools/android-tools/android-tools/extras/0001-ext4_utils-remove-selinux-extensions.patch new file mode 100644 index 000000000..4a19a5d65 --- /dev/null +++ b/meta-oe/recipes-devtools/android-tools/android-tools/extras/0001-ext4_utils-remove-selinux-extensions.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 354604da9d152f1931e91991d3f34197fc8fc759 Mon Sep 17 00:00:00 2001 | ||
2 | From: Sergio Schvezov <sergio.schvezov@canonical.com> | ||
3 | Date: Tue, 2 Oct 2018 16:36:54 +0000 | ||
4 | Subject: [PATCH] ext4_utils: remove selinux extensions | ||
5 | |||
6 | * drop useless includes of Android SELINUX extensions | ||
7 | * avoids having to clone another module | ||
8 | * this should be sent upstream | ||
9 | |||
10 | Upstream-Status: Inappropriate | ||
11 | --- | ||
12 | ext4_utils/make_ext4fs.c | 1 - | ||
13 | ext4_utils/make_ext4fs_main.c | 1 - | ||
14 | 2 files changed, 2 deletions(-) | ||
15 | |||
16 | diff --git a/ext4_utils/make_ext4fs.c b/ext4_utils/make_ext4fs.c | ||
17 | index 2f89ae8a0..732afbed7 100644 | ||
18 | --- a/ext4_utils/make_ext4fs.c | ||
19 | +++ b/ext4_utils/make_ext4fs.c | ||
20 | @@ -62,7 +62,6 @@ | ||
21 | |||
22 | #include <selinux/selinux.h> | ||
23 | #include <selinux/label.h> | ||
24 | -#include <selinux/android.h> | ||
25 | |||
26 | #define O_BINARY 0 | ||
27 | |||
28 | diff --git a/ext4_utils/make_ext4fs_main.c b/ext4_utils/make_ext4fs_main.c | ||
29 | index a6c5f6160..f8e7b9da9 100644 | ||
30 | --- a/ext4_utils/make_ext4fs_main.c | ||
31 | +++ b/ext4_utils/make_ext4fs_main.c | ||
32 | @@ -32,7 +32,6 @@ | ||
33 | #ifndef USE_MINGW | ||
34 | #include <selinux/selinux.h> | ||
35 | #include <selinux/label.h> | ||
36 | -#include <selinux/android.h> | ||
37 | #else | ||
38 | struct selabel_handle; | ||
39 | #endif | ||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/preserve-ownership.patch b/meta-oe/recipes-devtools/android-tools/android-tools/extras/0002-ext4_utils-add-o-argument-to-preserve-ownership.patch index 5c9039719..3b50ffbf3 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/preserve-ownership.patch +++ b/meta-oe/recipes-devtools/android-tools/android-tools/extras/0002-ext4_utils-add-o-argument-to-preserve-ownership.patch | |||
@@ -1,24 +1,21 @@ | |||
1 | From aa669312a380611d280d126cb509fa282080707e Mon Sep 17 00:00:00 2001 | 1 | From b9254539811ce912bfd16dd1d185eba7a10cceff Mon Sep 17 00:00:00 2001 |
2 | From: Markus Mayer <mmayer@mmayer.net> | 2 | From: Markus Mayer <mmayer@mmayer.net> |
3 | Date: Wed, 7 Sep 2016 12:58:47 +0300 | 3 | Date: Wed, 7 Sep 2016 12:58:47 +0300 |
4 | Subject: [PATCH] android-tools: add recipe from AOSP tag android-5.1.1_r37 | 4 | Subject: [PATCH] ext4_utils: add -o argument to preserve ownership |
5 | |||
6 | Description: add -o argument to preserve ownership | ||
7 | 5 | ||
8 | See also https://android-review.googlesource.com/#/c/100312/ | 6 | See also https://android-review.googlesource.com/#/c/100312/ |
9 | 7 | ||
10 | Upstream-Status: Inappropriate | 8 | Upstream-Status: Inappropriate |
11 | |||
12 | --- | 9 | --- |
13 | ext4_utils/make_ext4fs.c | 6 ++++++ | 10 | ext4_utils/make_ext4fs.c | 6 ++++++ |
14 | ext4_utils/make_ext4fs_main.c | 10 ++++++++-- | 11 | ext4_utils/make_ext4fs_main.c | 10 ++++++++-- |
15 | 2 files changed, 14 insertions(+), 2 deletions(-) | 12 | 2 files changed, 14 insertions(+), 2 deletions(-) |
16 | 13 | ||
17 | diff --git a/ext4_utils/make_ext4fs.c b/ext4_utils/make_ext4fs.c | 14 | diff --git a/ext4_utils/make_ext4fs.c b/ext4_utils/make_ext4fs.c |
18 | index 2f89ae8a..cc41d623 100644 | 15 | index 732afbed7..2cbf04399 100644 |
19 | --- a/ext4_utils/make_ext4fs.c | 16 | --- a/ext4_utils/make_ext4fs.c |
20 | +++ b/ext4_utils/make_ext4fs.c | 17 | +++ b/ext4_utils/make_ext4fs.c |
21 | @@ -68,6 +68,8 @@ | 18 | @@ -67,6 +67,8 @@ |
22 | 19 | ||
23 | #endif | 20 | #endif |
24 | 21 | ||
@@ -27,7 +24,7 @@ index 2f89ae8a..cc41d623 100644 | |||
27 | /* TODO: Not implemented: | 24 | /* TODO: Not implemented: |
28 | Allocating blocks in the same block group as the file inode | 25 | Allocating blocks in the same block group as the file inode |
29 | Hash or binary tree directories | 26 | Hash or binary tree directories |
30 | @@ -186,6 +188,10 @@ static u32 build_directory_structure(const char *full_path, const char *dir_path | 27 | @@ -185,6 +187,10 @@ static u32 build_directory_structure(const char *full_path, const char *dir_path |
31 | } else { | 28 | } else { |
32 | dentries[i].mtime = fixed_time; | 29 | dentries[i].mtime = fixed_time; |
33 | } | 30 | } |
@@ -39,10 +36,10 @@ index 2f89ae8a..cc41d623 100644 | |||
39 | if (fs_config_func != NULL) { | 36 | if (fs_config_func != NULL) { |
40 | #ifdef ANDROID | 37 | #ifdef ANDROID |
41 | diff --git a/ext4_utils/make_ext4fs_main.c b/ext4_utils/make_ext4fs_main.c | 38 | diff --git a/ext4_utils/make_ext4fs_main.c b/ext4_utils/make_ext4fs_main.c |
42 | index a6c5f616..7af0dddf 100644 | 39 | index f8e7b9da9..e82d43277 100644 |
43 | --- a/ext4_utils/make_ext4fs_main.c | 40 | --- a/ext4_utils/make_ext4fs_main.c |
44 | +++ b/ext4_utils/make_ext4fs_main.c | 41 | +++ b/ext4_utils/make_ext4fs_main.c |
45 | @@ -48,13 +48,15 @@ struct selabel_handle; | 42 | @@ -47,13 +47,15 @@ struct selabel_handle; |
46 | extern struct fs_info info; | 43 | extern struct fs_info info; |
47 | 44 | ||
48 | 45 | ||
@@ -59,7 +56,7 @@ index a6c5f616..7af0dddf 100644 | |||
59 | fprintf(stderr, " <filename> [<directory>]\n"); | 56 | fprintf(stderr, " <filename> [<directory>]\n"); |
60 | } | 57 | } |
61 | 58 | ||
62 | @@ -80,7 +82,7 @@ int main(int argc, char **argv) | 59 | @@ -79,7 +81,7 @@ int main(int argc, char **argv) |
63 | struct selinux_opt seopts[] = { { SELABEL_OPT_PATH, "" } }; | 60 | struct selinux_opt seopts[] = { { SELABEL_OPT_PATH, "" } }; |
64 | #endif | 61 | #endif |
65 | 62 | ||
@@ -68,7 +65,7 @@ index a6c5f616..7af0dddf 100644 | |||
68 | switch (opt) { | 65 | switch (opt) { |
69 | case 'l': | 66 | case 'l': |
70 | info.len = parse_num(optarg); | 67 | info.len = parse_num(optarg); |
71 | @@ -143,6 +145,10 @@ int main(int argc, char **argv) | 68 | @@ -142,6 +144,10 @@ int main(int argc, char **argv) |
72 | } | 69 | } |
73 | #endif | 70 | #endif |
74 | break; | 71 | break; |
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/.gitignore b/meta-oe/recipes-devtools/android-tools/android-tools/gitignore index b034c10a1..b034c10a1 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools/.gitignore +++ b/meta-oe/recipes-devtools/android-tools/android-tools/gitignore | |||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/libselinux/0001-Remove-bionic-specific-calls.patch b/meta-oe/recipes-devtools/android-tools/android-tools/libselinux/0001-Remove-bionic-specific-calls.patch new file mode 100644 index 000000000..9de2593df --- /dev/null +++ b/meta-oe/recipes-devtools/android-tools/android-tools/libselinux/0001-Remove-bionic-specific-calls.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 36654a4484117e5f4d63a810c0d94bc9c7ee3a83 Mon Sep 17 00:00:00 2001 | ||
2 | From: Fathi Boudra <fabo@debian.org> | ||
3 | Date: Tue, 2 Oct 2018 16:36:54 +0000 | ||
4 | Subject: [PATCH] Remove bionic specific calls | ||
5 | |||
6 | Upstream-Status: Inappropriate | ||
7 | |||
8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
9 | --- | ||
10 | src/procattr.c | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/src/procattr.c b/src/procattr.c | ||
14 | index f350808..761cf8e 100644 | ||
15 | --- a/src/procattr.c | ||
16 | +++ b/src/procattr.c | ||
17 | @@ -8,7 +8,7 @@ | ||
18 | #include "selinux_internal.h" | ||
19 | #include "policy.h" | ||
20 | |||
21 | -#ifdef HOST | ||
22 | +#ifndef __BIONIC__ | ||
23 | static pid_t gettid(void) | ||
24 | { | ||
25 | return syscall(__NR_gettid); | ||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/remove-bionic-android-libselinux.patch b/meta-oe/recipes-devtools/android-tools/android-tools/remove-bionic-android-libselinux.patch deleted file mode 100644 index 7bfb98c44..000000000 --- a/meta-oe/recipes-devtools/android-tools/android-tools/remove-bionic-android-libselinux.patch +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | Description: remove bionic specific calls | ||
2 | Author: Fathi Boudra <fabo@debian.org> | ||
3 | |||
4 | Upstream-Status: Inappropriate | ||
5 | --- | ||
6 | --- a/src/procattr.c | ||
7 | +++ b/src/procattr.c | ||
8 | @@ -8,7 +8,7 @@ | ||
9 | #include "selinux_internal.h" | ||
10 | #include "policy.h" | ||
11 | |||
12 | -#ifdef HOST | ||
13 | +#ifndef __BIONIC__ | ||
14 | static pid_t gettid(void) | ||
15 | { | ||
16 | return syscall(__NR_gettid); | ||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/remove-selinux-android-extras.patch b/meta-oe/recipes-devtools/android-tools/android-tools/remove-selinux-android-extras.patch deleted file mode 100644 index c52d935f5..000000000 --- a/meta-oe/recipes-devtools/android-tools/android-tools/remove-selinux-android-extras.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | Subject: drop useless includes of Android SELINUX extensions; avoids having to clone another module; this should be sent upstream | ||
2 | Author: Sergio Schvezov <sergio.schvezov@canonical.com> | ||
3 | |||
4 | Upstream-Status: Inappropriate | ||
5 | --- | ||
6 | ext4_utils/make_ext4fs.c | 1 - | ||
7 | ext4_utils/make_ext4fs_main.c | 1 - | ||
8 | |||
9 | --- a/ext4_utils/make_ext4fs.c | ||
10 | +++ b/ext4_utils/make_ext4fs.c | ||
11 | @@ -62,7 +62,6 @@ | ||
12 | |||
13 | #include <selinux/selinux.h> | ||
14 | #include <selinux/label.h> | ||
15 | -#include <selinux/android.h> | ||
16 | |||
17 | #define O_BINARY 0 | ||
18 | |||
19 | --- a/ext4_utils/make_ext4fs_main.c | ||
20 | +++ b/ext4_utils/make_ext4fs_main.c | ||
21 | @@ -32,7 +32,6 @@ | ||
22 | #ifndef USE_MINGW | ||
23 | #include <selinux/selinux.h> | ||
24 | #include <selinux/label.h> | ||
25 | -#include <selinux/android.h> | ||
26 | #else | ||
27 | struct selabel_handle; | ||
28 | #endif | ||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/use-capability.patch b/meta-oe/recipes-devtools/android-tools/android-tools/use-capability.patch deleted file mode 100644 index aef2ac2c1..000000000 --- a/meta-oe/recipes-devtools/android-tools/android-tools/use-capability.patch +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | Subject: use linux/capability.h on linux systems too | ||
2 | Author: Loïc Minier <loic.minier@ubuntu.com> | ||
3 | |||
4 | Upstream-Status: Inappropriate | ||
5 | --- | ||
6 | include/private/android_filesystem_config.h | 2 +- | ||
7 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
8 | |||
9 | --- a/include/private/android_filesystem_config.h | ||
10 | +++ b/include/private/android_filesystem_config.h | ||
11 | @@ -27,7 +27,7 @@ | ||
12 | #include <sys/types.h> | ||
13 | #include <stdint.h> | ||
14 | |||
15 | -#ifdef HAVE_ANDROID_OS | ||
16 | +#if defined(HAVE_ANDROID_OS) || defined(__linux__) | ||
17 | #include <linux/capability.h> | ||
18 | #else | ||
19 | #include "android_filesystem_capability.h" | ||
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb b/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb index 1478c1205..2604f65e1 100644 --- a/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb +++ b/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb | |||
@@ -11,11 +11,6 @@ DEPENDS = "libbsd libpcre zlib libcap" | |||
11 | DEPENDS_append_class-target = " openssl10" | 11 | DEPENDS_append_class-target = " openssl10" |
12 | 12 | ||
13 | ANDROID_MIRROR = "android.googlesource.com" | 13 | ANDROID_MIRROR = "android.googlesource.com" |
14 | CORE_REPO = "${ANDROID_MIRROR}/platform/system/core" | ||
15 | EXTRAS_REPO = "${ANDROID_MIRROR}/platform/system/extras" | ||
16 | LIBHARDWARE_REPO = "${ANDROID_MIRROR}/platform/hardware/libhardware" | ||
17 | LIBSELINUX_REPO = "${ANDROID_MIRROR}/platform/external/libselinux" | ||
18 | BUILD_REPO = "${ANDROID_MIRROR}/platform/build" | ||
19 | 14 | ||
20 | # matches with android-5.1.1_r37 | 15 | # matches with android-5.1.1_r37 |
21 | SRCREV_core = "2314b110bdebdbfd2d94c502282f9e57c849897e" | 16 | SRCREV_core = "2314b110bdebdbfd2d94c502282f9e57c849897e" |
@@ -25,28 +20,28 @@ SRCREV_libselinux = "07e9e1339ad1ba608acfba9dce2d0f474b252feb" | |||
25 | SRCREV_build = "16e987def3d7d8f7d30805eb95cef69e52a87dbc" | 20 | SRCREV_build = "16e987def3d7d8f7d30805eb95cef69e52a87dbc" |
26 | 21 | ||
27 | SRC_URI = " \ | 22 | SRC_URI = " \ |
28 | git://${CORE_REPO};name=core;protocol=https;nobranch=1;destsuffix=git/system/core \ | 23 | git://${ANDROID_MIRROR}/platform/system/core;name=core;protocol=https;nobranch=1;destsuffix=git/system/core \ |
29 | git://${EXTRAS_REPO};name=extras;protocol=https;nobranch=1;destsuffix=git/system/extras \ | 24 | git://${ANDROID_MIRROR}/platform/system/extras;name=extras;protocol=https;nobranch=1;destsuffix=git/system/extras \ |
30 | git://${LIBHARDWARE_REPO};name=libhardware;protocol=https;nobranch=1;destsuffix=git/hardware/libhardware \ | 25 | git://${ANDROID_MIRROR}/platform/hardware/libhardware;name=libhardware;protocol=https;nobranch=1;destsuffix=git/hardware/libhardware \ |
31 | git://${LIBSELINUX_REPO};name=libselinux;protocol=https;nobranch=1;destsuffix=git/external/libselinux \ | 26 | git://${ANDROID_MIRROR}/platform/external/libselinux;name=libselinux;protocol=https;nobranch=1;destsuffix=git/external/libselinux \ |
32 | git://${BUILD_REPO};name=build;protocol=https;nobranch=1;destsuffix=git/build \ | 27 | git://${ANDROID_MIRROR}/platform/build;name=build;protocol=https;nobranch=1;destsuffix=git/build \ |
33 | file://remove-selinux-android.patch;patchdir=system/core \ | 28 | file://core/0001-adb-remove-selinux-extensions.patch;patchdir=system/core \ |
34 | file://use-capability.patch;patchdir=system/core \ | 29 | file://core/0002-adb-Use-local-sockets-where-appropriate.patch;patchdir=system/core \ |
35 | file://use-local-socket.patch;patchdir=system/core \ | 30 | file://core/0003-adb-define-shell-command.patch;patchdir=system/core \ |
36 | file://mkbootimg-Add-dt-parameter-to-specify-DT-image.patch;patchdir=system/core \ | 31 | file://core/0004-adb-Fix-build-on-big-endian-systems.patch;patchdir=system/core \ |
37 | file://remove-bionic-android.patch;patchdir=system/core \ | 32 | file://core/0005-adb-add-base64-implementation.patch;patchdir=system/core \ |
38 | file://define-shell-command.patch;patchdir=system/core \ | 33 | file://core/0006-adb-Musl-fixes.patch;patchdir=system/core \ |
39 | file://implicit-declaration-function-strlcat-strlcopy.patch;patchdir=system/core \ | 34 | file://core/0007-adb-usb_linux.c-fix-build-with-glibc-2.28.patch;patchdir=system/core \ |
40 | file://fix-big-endian-build.patch;patchdir=system/core \ | 35 | file://core/0008-adb-Allow-adbd-to-be-ran-as-root.patch;patchdir=system/core \ |
41 | file://0001-add-base64-implementation.patch;patchdir=system/core \ | 36 | file://core/0009-mkbootimg-Add-dt-parameter-to-specify-DT-image.patch;patchdir=system/core \ |
42 | file://0002-adb-Musl-fixes.patch;patchdir=system/core \ | 37 | file://core/0010-Use-linux-capability.h-on-linux-systems-too.patch;patchdir=system/core \ |
43 | file://0001-usb_linux.c-fix-build-with-glibc-2.28.patch;patchdir=system/core \ | 38 | file://core/0011-Remove-bionic-specific-calls.patch;patchdir=system/core \ |
44 | file://0001-Allow-adbd-to-be-ran-as-root.patch;patchdir=system/core \ | 39 | file://core/0012-Fix-implicit-declaration-of-stlcat-strlcopy-function.patch;patchdir=system/core \ |
45 | file://remove-selinux-android-extras.patch;patchdir=system/extras \ | 40 | file://extras/0001-ext4_utils-remove-selinux-extensions.patch;patchdir=system/extras \ |
46 | file://preserve-ownership.patch;patchdir=system/extras \ | 41 | file://extras/0002-ext4_utils-add-o-argument-to-preserve-ownership.patch;patchdir=system/extras \ |
47 | file://remove-bionic-android-libselinux.patch;patchdir=external/libselinux \ | 42 | file://libselinux/0001-Remove-bionic-specific-calls.patch;patchdir=external/libselinux \ |
48 | file://android-tools-adbd.service \ | 43 | file://android-tools-adbd.service \ |
49 | file://.gitignore;subdir=git \ | 44 | file://gitignore \ |
50 | file://adb.mk;subdir=${BPN} \ | 45 | file://adb.mk;subdir=${BPN} \ |
51 | file://adbd.mk;subdir=${BPN} \ | 46 | file://adbd.mk;subdir=${BPN} \ |
52 | file://ext4_utils.mk;subdir=${BPN} \ | 47 | file://ext4_utils.mk;subdir=${BPN} \ |
@@ -54,6 +49,7 @@ SRC_URI = " \ | |||
54 | file://mkbootimg.mk;subdir=${BPN} \ | 49 | file://mkbootimg.mk;subdir=${BPN} \ |
55 | " | 50 | " |
56 | 51 | ||
52 | |||
57 | S = "${WORKDIR}/git" | 53 | S = "${WORKDIR}/git" |
58 | B = "${WORKDIR}/${BPN}" | 54 | B = "${WORKDIR}/${BPN}" |
59 | 55 | ||
@@ -76,6 +72,8 @@ TOOLS_class-native = "fastboot ext4_utils mkbootimg" | |||
76 | TOOLS_class-nativesdk = "fastboot ext4_utils mkbootimg" | 72 | TOOLS_class-nativesdk = "fastboot ext4_utils mkbootimg" |
77 | 73 | ||
78 | do_compile() { | 74 | do_compile() { |
75 | cp ${WORKDIR}/gitignore ${S}/.gitignore | ||
76 | |||
79 | # Setting both variables below causing our makefiles to not work with | 77 | # Setting both variables below causing our makefiles to not work with |
80 | # implicit make rules | 78 | # implicit make rules |
81 | unset CFLAGS | 79 | unset CFLAGS |