From b17df00654d3ab847c934e27a66d8f8b1b0c888e Mon Sep 17 00:00:00 2001 From: Newbyte Date: Sat, 7 Aug 2021 13:16:46 +0200 Subject: [PATCH] main/linux-postmarketos-exynos4: compress with xz (MR 2410) gzip results in a boot.img that's too big (over 8 MB) for e.g. samsung-i9300, so let's replace it with something that produces smaller kernels. With this, the entire boot.img is 6,3 MB (down from 8MiB, or 8.5458944 MB) which leaves plenty of space on the 8 MB partition and prevents the recovery from being overwritten when this kernel is flashed. Tested and works on samsung-i9300. [ci:skip-build] already built successfully in CI --- main/linux-postmarketos-exynos4/APKBUILD | 4 ++-- .../config-postmarketos-exynos4.armv7 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/linux-postmarketos-exynos4/APKBUILD b/main/linux-postmarketos-exynos4/APKBUILD index be227873a..6e7c1fa9b 100644 --- a/main/linux-postmarketos-exynos4/APKBUILD +++ b/main/linux-postmarketos-exynos4/APKBUILD @@ -4,7 +4,7 @@ pkgname=linux-postmarketos-exynos4 pkgver=5.12.8 -pkgrel=2 +pkgrel=3 pkgdesc="Mainline kernel fork for Samsung Exynos4 devices" arch="armv7" _carch="arm" @@ -73,7 +73,7 @@ package() { sha512sums=" 8a5f1774bee223445ad147d2f83a7b3a2c19ea620d0f3964344bb33d003fec17d36279b522745c03467e361ebd61479a4f7122e5911bb6b817ff52ee55c736d9 linux-5.12.8.tar.xz -4ec79f1d149fceb2ecf0352c917f2332469aa503af50f81d0570b7475cc4ddc2234649993327f601134b11510434bebca6eb8ae0bfd6c325b7883c9206d71f89 config-postmarketos-exynos4.armv7 +203a6265a0f7671c726d7525949f1913d37a9f3ba27460279cb8e9593bdca3b231258e8afeb2608fb9190aa944a2b5859e12c4225929bfb391c0155d5fbb9c92 config-postmarketos-exynos4.armv7 4bb111db4396a1981ad0883737c6594ca93701699846298b940d2ea202c666be0158a0f9ddc5b95b9147fa4cfe62639512ae78e9315f8d975b379ccc4e15da36 0001-ARM-decompressor-Flush-tlb-before-swiching-domain-0-.patch dffe9934281e81b20e158ce9b80c6f1a91c5eaa06eb92ee655ee9430dba8aa066dd70a9fb163007f37556ea696ae0256a58f87408c8b7571d6d20f99c9492db2 0002-extcon-max8997-Add-CHGINS-and-CHGRM-interrupt-handli.patch b70e8afa3779d471835bbdda4c8ddcf882bce58752993314655596961210235558e87dce3d1f07810ab5bb3d0471e89933a8008d7b97d8ebd05a408ffc947054 0003-ARM-dts-exynos-Add-charger-supply-for-I9100.patch diff --git a/main/linux-postmarketos-exynos4/config-postmarketos-exynos4.armv7 b/main/linux-postmarketos-exynos4/config-postmarketos-exynos4.armv7 index f6cd5fc94..1ba8df4a8 100644 --- a/main/linux-postmarketos-exynos4/config-postmarketos-exynos4.armv7 +++ b/main/linux-postmarketos-exynos4/config-postmarketos-exynos4.armv7 @@ -27,9 +27,9 @@ CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y -CONFIG_KERNEL_GZIP=y +# CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_LZMA is not set -# CONFIG_KERNEL_XZ is not set +CONFIG_KERNEL_XZ=y # CONFIG_KERNEL_LZO is not set # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_INIT=""