diff options
-rw-r--r-- | meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0002-android-tools-modifications-to-make-it-build-in-yoct.patch | 66 |
1 files changed, 64 insertions, 2 deletions
diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0002-android-tools-modifications-to-make-it-build-in-yoct.patch b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0002-android-tools-modifications-to-make-it-build-in-yoct.patch index fd2a092bd0..5ce375134c 100644 --- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0002-android-tools-modifications-to-make-it-build-in-yoct.patch +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/0002-android-tools-modifications-to-make-it-build-in-yoct.patch | |||
@@ -14,12 +14,17 @@ Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com> | |||
14 | 14 | ||
15 | - fix warning: library search path "/usr/lib/p7zip" is unsafe for cross-compilation | 15 | - fix warning: library search path "/usr/lib/p7zip" is unsafe for cross-compilation |
16 | 16 | ||
17 | - fix error: include location "/usr/include/android" is unsafe for cross-compilation | ||
18 | |||
17 | Upstream-Status: Pending | 19 | Upstream-Status: Pending |
18 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 20 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
19 | --- | 21 | --- |
22 | debian/development/etc1tool.mk | 1 - | ||
20 | debian/external/boringssl/libcrypto.mk | 1 + | 23 | debian/external/boringssl/libcrypto.mk | 1 + |
24 | debian/libnativehelper/libnativehelper.mk | 1 - | ||
25 | debian/system/core/adb.mk | 1 - | ||
21 | debian/system/core/append2simg.mk | 2 +- | 26 | debian/system/core/append2simg.mk | 2 +- |
22 | debian/system/core/fastboot.mk | 2 +- | 27 | debian/system/core/fastboot.mk | 3 +-- |
23 | debian/system/core/img2simg.mk | 2 +- | 28 | debian/system/core/img2simg.mk | 2 +- |
24 | debian/system/core/libbacktrace.mk | 10 ++++------ | 29 | debian/system/core/libbacktrace.mk | 10 ++++------ |
25 | debian/system/core/libbase.mk | 5 +++-- | 30 | debian/system/core/libbase.mk | 5 +++-- |
@@ -30,11 +35,24 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
30 | debian/system/core/libziparchive.mk | 5 +++-- | 35 | debian/system/core/libziparchive.mk | 5 +++-- |
31 | debian/system/core/simg2img.mk | 2 +- | 36 | debian/system/core/simg2img.mk | 2 +- |
32 | debian/system/core/simg2simg.mk | 2 +- | 37 | debian/system/core/simg2simg.mk | 2 +- |
38 | debian/system/extras/libext4_utils.mk | 1 - | ||
33 | frameworks/native/libs/adbd_auth/adbd_auth.cpp | 2 ++ | 39 | frameworks/native/libs/adbd_auth/adbd_auth.cpp | 2 ++ |
34 | system/core/adb/adb_listeners.cpp | 12 ++++++------ | 40 | system/core/adb/adb_listeners.cpp | 12 ++++++------ |
35 | system/core/adb/transport_local.cpp | 2 +- | 41 | system/core/adb/transport_local.cpp | 2 +- |
36 | 16 files changed, 35 insertions(+), 29 deletions(-) | 42 | 20 files changed, 35 insertions(+), 34 deletions(-) |
37 | 43 | ||
44 | diff --git a/debian/development/etc1tool.mk b/debian/development/etc1tool.mk | ||
45 | index 2d787e98bb86..e03ac5f0048c 100644 | ||
46 | --- a/debian/development/etc1tool.mk | ||
47 | +++ b/debian/development/etc1tool.mk | ||
48 | @@ -4,7 +4,6 @@ SOURCES = development/tools/etc1tool/etc1tool.cpp | ||
49 | |||
50 | CXXFLAGS += -std=gnu++2a | ||
51 | CPPFLAGS += \ | ||
52 | - -I/usr/include/android \ | ||
53 | -Idevelopment/include \ | ||
54 | -Iframeworks/native/opengl/include \ | ||
55 | |||
38 | diff --git a/debian/external/boringssl/libcrypto.mk b/debian/external/boringssl/libcrypto.mk | 56 | diff --git a/debian/external/boringssl/libcrypto.mk b/debian/external/boringssl/libcrypto.mk |
39 | index c0ea54f4..b3a77bfd 100644 | 57 | index c0ea54f4..b3a77bfd 100644 |
40 | --- a/debian/external/boringssl/libcrypto.mk | 58 | --- a/debian/external/boringssl/libcrypto.mk |
@@ -47,6 +65,30 @@ index c0ea54f4..b3a77bfd 100644 | |||
47 | -Iexternal/boringssl/src/crypto \ | 65 | -Iexternal/boringssl/src/crypto \ |
48 | -Iexternal/boringssl/src/include \ | 66 | -Iexternal/boringssl/src/include \ |
49 | 67 | ||
68 | diff --git a/debian/libnativehelper/libnativehelper.mk b/debian/libnativehelper/libnativehelper.mk | ||
69 | index 7a0c94a6b7b5..880b2fdf9154 100644 | ||
70 | --- a/debian/libnativehelper/libnativehelper.mk | ||
71 | +++ b/debian/libnativehelper/libnativehelper.mk | ||
72 | @@ -11,7 +11,6 @@ OBJECTS = $(SOURCES:.cpp=.o) | ||
73 | |||
74 | CXXFLAGS += -std=gnu++2a | ||
75 | CPPFLAGS += \ | ||
76 | - -I/usr/include/android \ | ||
77 | -Ilibnativehelper/header_only_include \ | ||
78 | -Ilibnativehelper/include \ | ||
79 | -Ilibnativehelper/include_jni \ | ||
80 | diff --git a/debian/system/core/adb.mk b/debian/system/core/adb.mk | ||
81 | index 9769b68ab793..58c9a63bd225 100644 | ||
82 | --- a/debian/system/core/adb.mk | ||
83 | +++ b/debian/system/core/adb.mk | ||
84 | @@ -19,7 +19,6 @@ CPPFLAGS += \ | ||
85 | -D_GNU_SOURCE \ | ||
86 | -DADB_HOST=1 \ | ||
87 | -DADB_VERSION='"$(DEB_VERSION)"' \ | ||
88 | - -I/usr/include/android \ | ||
89 | -Iexternal/boringssl/include \ | ||
90 | -Isystem/core/adb \ | ||
91 | -Isystem/core/base/include \ | ||
50 | diff --git a/debian/system/core/append2simg.mk b/debian/system/core/append2simg.mk | 92 | diff --git a/debian/system/core/append2simg.mk b/debian/system/core/append2simg.mk |
51 | index 1599bdb8..598c751d 100644 | 93 | index 1599bdb8..598c751d 100644 |
52 | --- a/debian/system/core/append2simg.mk | 94 | --- a/debian/system/core/append2simg.mk |
@@ -64,6 +106,14 @@ diff --git a/debian/system/core/fastboot.mk b/debian/system/core/fastboot.mk | |||
64 | index d5c9a285..a59ba1a4 100644 | 106 | index d5c9a285..a59ba1a4 100644 |
65 | --- a/debian/system/core/fastboot.mk | 107 | --- a/debian/system/core/fastboot.mk |
66 | +++ b/debian/system/core/fastboot.mk | 108 | +++ b/debian/system/core/fastboot.mk |
109 | @@ -30,7 +30,6 @@ CXXFLAGS += -std=gnu++2a -fpermissive | ||
110 | CPPFLAGS += \ | ||
111 | -D_FILE_OFFSET_BITS=64 \ | ||
112 | -DPLATFORM_TOOLS_VERSION='"$(PLATFORM_TOOLS_VERSION)"' \ | ||
113 | - -I/usr/include/android \ | ||
114 | -Iexternal/boringssl/include \ | ||
115 | -Iexternal/avb \ | ||
116 | -Isystem/core/adb \ | ||
67 | @@ -49,7 +49,7 @@ CPPFLAGS += \ | 117 | @@ -49,7 +49,7 @@ CPPFLAGS += \ |
68 | 118 | ||
69 | LDFLAGS += \ | 119 | LDFLAGS += \ |
@@ -291,6 +341,18 @@ index ed53b04c..646ab030 100644 | |||
291 | -lbase \ | 341 | -lbase \ |
292 | -llog \ | 342 | -llog \ |
293 | -lpthread \ | 343 | -lpthread \ |
344 | diff --git a/debian/system/extras/libext4_utils.mk b/debian/system/extras/libext4_utils.mk | ||
345 | index 264bb95ad36a..99125097c8e3 100644 | ||
346 | --- a/debian/system/extras/libext4_utils.mk | ||
347 | +++ b/debian/system/extras/libext4_utils.mk | ||
348 | @@ -25,7 +25,6 @@ CPPFLAGS += \ | ||
349 | -D_LARGEFILE64_SOURCE \ | ||
350 | -DFEC_NO_KLOG \ | ||
351 | -DSQUASHFS_NO_KLOG \ | ||
352 | - -I/usr/include/android \ | ||
353 | -Isystem/core/base/include \ | ||
354 | -Isystem/core/libcutils/include \ | ||
355 | -Isystem/core/libsparse/include \ | ||
294 | diff --git a/frameworks/native/libs/adbd_auth/adbd_auth.cpp b/frameworks/native/libs/adbd_auth/adbd_auth.cpp | 356 | diff --git a/frameworks/native/libs/adbd_auth/adbd_auth.cpp b/frameworks/native/libs/adbd_auth/adbd_auth.cpp |
295 | index a9c23110..6ca334ba 100644 | 357 | index a9c23110..6ca334ba 100644 |
296 | --- a/frameworks/native/libs/adbd_auth/adbd_auth.cpp | 358 | --- a/frameworks/native/libs/adbd_auth/adbd_auth.cpp |