pmaports/device/testing/linux-samsung-codina/APKBUILD
Oliver Smith 0cfcc52e0d
*/linux-*: enable CONFIG_CRYPTO_XTS (MR 1405)
Enable CONFIG_CRYPTO_XTS for each kernel, so we can switch to using
aes-xts-plain64 as default cipher for cryptsetup (override with
"pmbootstrap --cipher"), instead of aes-cbc-plain64 (pmbootstrap#1940).

I have executed "pmbootstrap kconfig edit" on each kernel, and manually
toggled the option. The diff is not always clean, because for some
kernels it is apparently the first time, that menuconfig was executed on
the configs like that. In a few instances, it turned out that
CONFIG_ANDROID_PARANOID_NETWORK needed to be disabled too (this is
already a requirement, but as the config was incomplete, it was not
visible that this option was enabled). Very few times, I had to enable
CONFIG_EXPERIMENTAL in order to see and enable CONFIG_CRYPTO_XTS.

It would be great if we could automate such mass kconfig edits in the
future, see pmbootstrap#1942.

[skip ci]: I have verified, that every single one of these kernels builds.
           CI will likely run out of time while downloading source tarballs.
2020-07-11 15:26:35 +02:00

55 lines
2 KiB
Text

# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/GT-I8160_defconfig
pkgname=linux-samsung-codina
pkgver=3.0.101
pkgrel=1
pkgdesc="Samsung Galaxy Ace 2 kernel"
arch="armv7"
_carch="arm"
_flavor="samsung-codina"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl gcc4"
# Source
_repository="Samsung_STE_Kernel"
_commit="ada5cb730330749534576adcaad0df8ac9062e5a"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/TeamCanjica/$_repository/archive/$_commit.tar.gz
$_config
00_fix_return_address.patch
01_reduce_lzo_compression.patch
02_fix_fb_rgb_mode.patch
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
if [ "${CC:0:5}" != "gcc4-" ]; then
CC="gcc4-$CC"
HOSTCC="gcc4-gcc"
CROSS_COMPILE="gcc4-$CROSS_COMPILE"
fi
prepare() {
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
}
sha512sums="b436eeab728ba4ab3f536b89c7e3e7ac282836030daf8c37116df3ebb76b114f1111ec6392f8389e0729439ded09c04a4416491cc04b6a56d903b52e84aebb88 linux-samsung-codina-ada5cb730330749534576adcaad0df8ac9062e5a.tar.gz
b5406827db30a18e90ecf67ecfd6b2e324364952020cebab2bf6f7edc8fcb4b9b3f3727e6f2ffed519122203d4ecba31c29416546b967f90d531a892c38aa532 config-samsung-codina.armv7
ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 00_fix_return_address.patch
30ac7171fe2a5aa90c15e56465b35bfc84015079296df2ebbb4287a2848ac5e8cf8e0dbb00dfdf84acb6692587eefdfc338e65ef3170a1a3e5b279b317ba43f3 01_reduce_lzo_compression.patch
3a78bb5e250637a1c9dbba1b31a539f98d89c1ccaab54f100ca3c39345c99aa2243f700f38c06f71164a898914a2bf8c2de1ccee187922b062056c6a5ad3acbb 02_fix_fb_rgb_mode.patch"