diff --git a/device/community/linux-postmarketos-qcom-sc7180/APKBUILD b/device/community/linux-postmarketos-qcom-sc7180/APKBUILD index 061bbe729..09d2603e6 100644 --- a/device/community/linux-postmarketos-qcom-sc7180/APKBUILD +++ b/device/community/linux-postmarketos-qcom-sc7180/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Jenneron pkgname=linux-postmarketos-qcom-sc7180 pkgver=6.6.28 -pkgrel=0 +pkgrel=1 pkgdesc="Mainline kernel fork for Qualcomm Snapdragon 7c devices" arch="aarch64" _carch="arm64" @@ -61,8 +61,21 @@ build() { } package() { - mkdir -p "$pkgdir"/boot - make zinstall modules_install dtbs_install \ + if [ -e "$builddir/arch/$_carch/boot/vmlinuz.efi" ]; then + # ZBOOT EFI decompressor for EFI booting + install -Dm644 "$builddir/arch/$_carch/boot/vmlinuz.efi" \ + "$pkgdir/boot/linux.efi" + + # Old GZIP'd kernel image for boot.img/crOS compatibility + install -Dm644 "$builddir/arch/$_carch/boot/vmlinuz" \ + "$pkgdir/boot/vmlinuz" + else + echo "WARNING: CONFIG_ZBOOT not enabled!" + install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \ + "$pkgdir/boot/vmlinuz" + fi + + make modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_PATH="$pkgdir"/boot \ INSTALL_MOD_PATH="$pkgdir" \ @@ -87,5 +100,5 @@ a4d8bbf39575e61d228b3b66fa692b207c1ee011e6030fdd097936a1ad28b1d5b01816d989adcb80 08c6cace24a207f4a64a85b17e97646f62a8590b502cd5b6945489d0aeded352e21f0e1b0ec541ae2e61ec7fd4f6bc1e5bf1d5d32f2c6616eb41d39d66f0bab5 0009-platform-arm64-Add-Acer-Aspire-1-embedded-controller.patch 69cfb699990ea7994089016b29cc248cb03483ad3f7620cbba63a779b2ed8928e6fde68484d29b6b8dfd1a8a6fa8d84c441f30180c7a257520ced442dab33876 0010-arm64-dts-qcom-acer-aspire1-Add-embedded-controller.patch c5edcd74f898b08bc663766668632d351aea40426b3563d53a4b8c6856dd82627f4794d60450e41171c990ebb3649056b36ef432c14c8783168e8060a2e3b094 0011-HACK-clk-Delay-disabling-unused-clocks-by-10s.patch -2ca01552118f2eedc9ac3818612008c58fe54a0838096a95489ee3380ac43be210d39371b1633af059a9b78f9bd3937e12a861cb72fa1bcac277ffa55bac2606 config-postmarketos-qcom-sc7180.aarch64 +4963c0d9c1bdb017a015fc69730a9f80ec879b38d2a4c45da1d1fc19ca25eb5733d81a3631f3ea9bb4f6eb41eb1452b5841ed31a4ef83ca687cf35f415481e1b config-postmarketos-qcom-sc7180.aarch64 " diff --git a/device/community/linux-postmarketos-qcom-sc7180/config-postmarketos-qcom-sc7180.aarch64 b/device/community/linux-postmarketos-qcom-sc7180/config-postmarketos-qcom-sc7180.aarch64 index 8ddfde3c5..d506cc9c0 100644 --- a/device/community/linux-postmarketos-qcom-sc7180/config-postmarketos-qcom-sc7180.aarch64 +++ b/device/community/linux-postmarketos-qcom-sc7180/config-postmarketos-qcom-sc7180.aarch64 @@ -30,6 +30,18 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_BUILD_SALT="" +CONFIG_HAVE_KERNEL_GZIP=y +CONFIG_HAVE_KERNEL_LZMA=y +CONFIG_HAVE_KERNEL_XZ=y +CONFIG_HAVE_KERNEL_LZO=y +CONFIG_HAVE_KERNEL_LZ4=y +CONFIG_HAVE_KERNEL_ZSTD=y +CONFIG_KERNEL_GZIP=y +# CONFIG_KERNEL_LZMA is not set +# CONFIG_KERNEL_XZ is not set +# CONFIG_KERNEL_LZO is not set +# CONFIG_KERNEL_LZ4 is not set +# CONFIG_KERNEL_ZSTD is not set CONFIG_DEFAULT_INIT="" CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SYSVIPC=y @@ -1917,7 +1929,7 @@ CONFIG_EFI_ESRT=y CONFIG_EFI_PARAMS_FROM_FDT=y CONFIG_EFI_RUNTIME_WRAPPERS=y CONFIG_EFI_GENERIC_STUB=y -# CONFIG_EFI_ZBOOT is not set +CONFIG_EFI_ZBOOT=y CONFIG_EFI_ARMSTUB_DTB_LOADER=y # CONFIG_EFI_BOOTLOADER_CONTROL is not set CONFIG_EFI_CAPSULE_LOADER=y