diff options
Diffstat (limited to 'dynamic-layers/selinux/android-tools/android-tools_10.0.0.r36.bb')
-rw-r--r-- | dynamic-layers/selinux/android-tools/android-tools_10.0.0.r36.bb | 87 |
1 files changed, 53 insertions, 34 deletions
diff --git a/dynamic-layers/selinux/android-tools/android-tools_10.0.0.r36.bb b/dynamic-layers/selinux/android-tools/android-tools_10.0.0.r36.bb index 0d7a972..b943a5d 100644 --- a/dynamic-layers/selinux/android-tools/android-tools_10.0.0.r36.bb +++ b/dynamic-layers/selinux/android-tools/android-tools_10.0.0.r36.bb | |||
@@ -26,25 +26,59 @@ SRC_URI = " \ | |||
26 | git://${ANDROID_MIRROR}/platform/hardware/libhardware;name=libhardware;protocol=https;nobranch=1;destsuffix=git/hardware/libhardware \ | 26 | git://${ANDROID_MIRROR}/platform/hardware/libhardware;name=libhardware;protocol=https;nobranch=1;destsuffix=git/hardware/libhardware \ |
27 | git://salsa.debian.org/android-tools-team/android-platform-build.git;name=build;protocol=https;nobranch=1;destsuffix=git/build \ | 27 | git://salsa.debian.org/android-tools-team/android-platform-build.git;name=build;protocol=https;nobranch=1;destsuffix=git/build \ |
28 | git://salsa.debian.org/android-tools-team/android-platform-external-libunwind.git;protocol=https;name=libunwind;nobranch=1;destsuffix=git/external/libunwind \ | 28 | git://salsa.debian.org/android-tools-team/android-platform-external-libunwind.git;protocol=https;name=libunwind;nobranch=1;destsuffix=git/external/libunwind \ |
29 | file://adb_mk_change_out_dir.patch \ | 29 | " |
30 | file://libadb_mk_change_out_dir.patch \ | 30 | |
31 | file://fastboot_compile_remove_gtest.patch \ | 31 | # Patches copied from android-platform-system-core/debian/patches |
32 | file://fastboot_mk_change_out_dir.patch \ | 32 | # and applied in the order defined by the "series" file |
33 | file://fastboot_dont_use_sparse_file_import_auto_in_load_buf_fd.patch \ | 33 | SRC_URI += " \ |
34 | file://libbase_mk_change_out_dir.patch \ | 34 | file://core-debian/move-log-file-to-proper-dir.patch;patchdir=system/core \ |
35 | file://libext4_utils_mk_change_out_dir.patch \ | 35 | file://core-debian/Added-missing-headers.patch;patchdir=system/core \ |
36 | file://libcrypto_mk_change_out_dir.patch \ | 36 | file://core-debian/libusb-header-path.patch;patchdir=system/core \ |
37 | file://libcrypto_utils_mk_change_out_dir.patch \ | 37 | file://core-debian/stdatomic.patch;patchdir=system/core \ |
38 | file://libcutils_mk_change_out_dir.patch \ | 38 | file://core-debian/Nonnull.patch;patchdir=system/core \ |
39 | file://libfec_mk_change_out_dir.patch \ | 39 | file://core-debian/Vector-cast.patch;patchdir=system/core \ |
40 | file://img2simg_change_out_dir.patch \ | 40 | file://core-debian/use-Python-3-for-mkbootimg.patch;patchdir=system/core \ |
41 | file://simg2img_change_out_dir.patch \ | 41 | file://core-debian/throw-exception-on-unknown-os.patch;patchdir=system/core \ |
42 | file://liblog_mk_change_out_dir.patch \ | 42 | file://core-debian/simg_dump-python3.patch;patchdir=system/core \ |
43 | file://libsparse_mk_change_out_dir.patch \ | 43 | file://core-debian/fix-attribute-issue-with-gcc.patch;patchdir=system/core \ |
44 | file://libziparchive_mk_change_out_dir.patch \ | 44 | file://core-debian/workaround-error-expected-primary-expression-before-.-token.patch;patchdir=system/core \ |
45 | file://libbacktrace_mk_change_out_dir.patch \ | 45 | file://core-debian/fix-gettid-exception-declaration.patch;patchdir=system/core \ |
46 | file://libunwind_mk_change_out_dir.patch \ | 46 | file://core-debian/fix-build-on-non-x86.patch;patchdir=system/core \ |
47 | file://use_name_space_std_to_compile_libbacktrace.patch \ | 47 | file://core-debian/add-missing-headers.patch;patchdir=system/core \ |
48 | file://core-debian/hard-code-build-number.patch;patchdir=system/core \ | ||
49 | file://core-debian/fix-gcc-11-ftbfs.patch;patchdir=system/core \ | ||
50 | file://core-debian/fix-gnu-hurd.patch;patchdir=system/core \ | ||
51 | " | ||
52 | |||
53 | # Patches copied from android-platform-external-libunwind/debian/patches | ||
54 | # and applied in the order defined by the "series" file | ||
55 | SRC_URI += " \ | ||
56 | file://libunwind-debian/user_pt_regs.patch;patchdir=external/libunwind \ | ||
57 | file://libunwind-debian/legacy_built-in_sync_functions.patch;patchdir=external/libunwind \ | ||
58 | file://libunwind-debian/20150704-CVE-2015-3239_dwarf_i.h.patch;patchdir=external/libunwind \ | ||
59 | " | ||
60 | |||
61 | # meta-clang specific patches + files: | ||
62 | SRC_URI += " \ | ||
63 | file://core/0001-patching-adb.mk-to-build-in-yocto-environment.patch;patchdir=system/core \ | ||
64 | file://core/0002-libadb.mk-modifications-to-make-it-build-in-yocto-en.patch;patchdir=system/core \ | ||
65 | file://core/0003-socket.h-removing-dependency-of-gtest.patch;patchdir=system/core \ | ||
66 | file://core/0004-patching-fastboot.mk-to-build-in-yocto-environment.patch;patchdir=system/core \ | ||
67 | file://core/0005-fastboot-don-t-use-sparse_file_import_auto-in-load_b.patch;patchdir=system/core \ | ||
68 | file://core/0006-libbase.mk-modifications-to-make-it-build-in-yocto-e.patch;patchdir=system/core \ | ||
69 | file://core/0007-libcrypto_utils.mk-modifications-to-make-it-build-in.patch;patchdir=system/core \ | ||
70 | file://core/0008-libcutils-modifications-to-make-it-build-in-yocto-en.patch;patchdir=system/core \ | ||
71 | file://core/0009-patching-img2simg.mk-to-build-in-yocto-environment.patch;patchdir=system/core \ | ||
72 | file://core/0010-patching-simg2img.mk-to-build-in-yocto-environment.patch;patchdir=system/core \ | ||
73 | file://core/0011-patching-liblog.mk-to-build-in-yocto-environment.patch;patchdir=system/core \ | ||
74 | file://core/0012-patching-libsparse.mk-to-build-in-yocto-environment.patch;patchdir=system/core \ | ||
75 | file://core/0013-patching-libziparchive.mk-to-build-in-yocto-environm.patch;patchdir=system/core \ | ||
76 | file://core/0014-patching-libbacktrace.mk-to-build-in-yocto-environme.patch;patchdir=system/core \ | ||
77 | file://core/0015-Use-namespace-std-to-compile-libbacktrace.patch;patchdir=system/core \ | ||
78 | file://0001-libcrypto.mk-modifications-to-make-it-build-in-yocto.patch;patchdir=external/boringssl \ | ||
79 | file://0001-patching-libundwind-to-build-in-yocto-environment.patch;patchdir=external/libunwind \ | ||
80 | file://0001-libext4_utils.mk-modifications-to-make-it-build-in-y.patch;patchdir=system/extras \ | ||
81 | file://0002-libfec-change-out_dir-in-makefile.patch;patchdir=system/extras \ | ||
48 | file://rules_yocto.mk;subdir=git \ | 82 | file://rules_yocto.mk;subdir=git \ |
49 | file://android-tools-adbd.service \ | 83 | file://android-tools-adbd.service \ |
50 | " | 84 | " |
@@ -52,21 +86,6 @@ SRC_URI = " \ | |||
52 | S = "${WORKDIR}/git" | 86 | S = "${WORKDIR}/git" |
53 | B = "${WORKDIR}/${BPN}" | 87 | B = "${WORKDIR}/${BPN}" |
54 | 88 | ||
55 | #apply all the patches maintained in the debian version. | ||
56 | do_unpack_and_patch_debian() { | ||
57 | cd ${S}/system/core | ||
58 | for i in `find ${S}/system/core/debian/patches -name "*.patch"`; do | ||
59 | patch -p1 < $i | ||
60 | done | ||
61 | #a patch with no .patch extention, lets apply that | ||
62 | patch -p1 < ${S}/system/core/debian/patches/Added-missing-headers | ||
63 | cd ${S}/external/libunwind | ||
64 | for i in `find ${S}/external/libunwind/debian/patches -name "*.patch"`; do | ||
65 | patch -p1 < $i | ||
66 | done | ||
67 | } | ||
68 | addtask unpack_and_patch_debian after do_unpack before do_patch | ||
69 | |||
70 | # http://errors.yoctoproject.org/Errors/Details/1debian881/ | 89 | # http://errors.yoctoproject.org/Errors/Details/1debian881/ |
71 | ARM_INSTRUCTION_SET:armv4 = "arm" | 90 | ARM_INSTRUCTION_SET:armv4 = "arm" |
72 | ARM_INSTRUCTION_SET:armv5 = "arm" | 91 | ARM_INSTRUCTION_SET:armv5 = "arm" |