From 9d57d4402c1bf1ff3468a989961fcec8de58c796 Mon Sep 17 00:00:00 2001 From: DroidFreak32 Date: Sat, 6 May 2023 11:09:08 +0530 Subject: [PATCH 1/3] zstd: Allow to build zstd cmdline tools Test: mka zstd Change-Id: Ic5f3e9bf2ff7e9188c1974d1b0ec81204e9cbd91 --- Android.bp | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Android.bp b/Android.bp index a8913ed9..319b5717 100644 --- a/Android.bp +++ b/Android.bp @@ -41,6 +41,49 @@ license { ], } +cc_binary { + name: "zstd", + + cflags: [ + "-DZSTD_GZCOMPRESS", + "-DZSTD_GZDECOMPRESS", + "-DZSTD_LZ4COMPRESS", + "-DZSTD_LZ4DECOMPRESS", + "-DZSTD_MULTITHREAD", + "-Wall", + "-Werror", + ], + + shared_libs: [ + "liblz4", + "libz", + "libzstd", + ], + + srcs: ["programs/*.c"], + system_ext_specific: true, + + required: ["zstdgrep", "zstdless"], + + symlinks: [ + "zstdcat", + "zstdmt", + "unzstd", + ], +} + +sh_binary { + name: "zstdgrep", + src: "programs/zstdgrep", + system_ext_specific: true, +} + +sh_binary { + name: "zstdless", + src: "programs/zstdless", + system_ext_specific: true, +} + cc_library { name: "libzstd", min_sdk_version: "apex_inherit", @@ -118,6 +161,7 @@ cc_defaults { "lib/dictBuilder", "tests/fuzz", ], + system_ext_specific: true, cflags: [ "-Wno-error", "-Wno-pointer-arith", From ad0e5e9ed22dac1d3591dafddd8e283c629a2032 Mon Sep 17 00:00:00 2001 From: DroidFreak32 Date: Sun, 18 Dec 2022 18:49:57 +0530 Subject: [PATCH 2/3] zstd: Android.bp: Allow rsync to add zstd compression support Change-Id: Ic92ad997f9b8dd4686df1e1fa5d0dfb88fdab345 --- Android.bp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Android.bp b/Android.bp index 319b5717..fc144cb0 100644 --- a/Android.bp +++ b/Android.bp @@ -104,6 +104,7 @@ cc_library { "//external/dwarves:__subpackages__", "//external/elfutils:__subpackages__", "//external/libbpf:__subpackages__", + "//external/rsync:__subpackages__", "//external/squashfs-tools/squashfs-tools:__subpackages__", "//external/stg:__subpackages__", "//frameworks/libs/binary_translation/tools:__subpackages__", @@ -120,6 +121,7 @@ cc_library { product_available: true, recovery_available: true, vendor_available: true, + system_ext_specific: true, host_supported: true, native_bridge_supported: true, ramdisk_available: true, From 5ef7f720eff5839e2bfc91026c7f7b49816db8be Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 17:52:34 +0000 Subject: [PATCH 3/3] Bump github/codeql-action from 3.24.7 to 3.28.10 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.7 to 3.28.10. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/3ab4101902695724f9365a384f86c1074d94e18c...b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/scorecards.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index a5d5f02a..a282566c 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -59,6 +59,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard. - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@3ab4101902695724f9365a384f86c1074d94e18c # tag=v3.24.7 + uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # tag=v3.28.10 with: sarif_file: results.sarif