0cfcc52e0d
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.
51 lines
1.8 KiB
Text
51 lines
1.8 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Kernel config based on: arch/arm/configs/cyanogen_expressatt_defconfig
|
|
|
|
pkgname=linux-samsung-expressatt
|
|
pkgver=3.4.106
|
|
pkgrel=1
|
|
pkgdesc="Samsung Galaxy S3 SGHI437 kernel fork"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
_flavor="samsung-expressatt"
|
|
url="https://kernel.org"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev gcc4 xz"
|
|
|
|
# Compiler: GCC 4 (doesn't boot when compiled with newer versions)
|
|
if [ "${CC:0:5}" != "gcc4-" ]; then
|
|
CC="gcc4-$CC"
|
|
HOSTCC="gcc4-gcc"
|
|
CROSS_COMPILE="gcc4-$CROSS_COMPILE"
|
|
fi
|
|
|
|
# Source
|
|
_repository="android_kernel_samsung_d2"
|
|
_commit="0dbe2b56847b304d30b809dfd08ba3b4a61d9af8"
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
|
$_config
|
|
kernel-use-the-gnu89-standard-explicitly.patch
|
|
"
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
. downstreamkernel_prepare
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
}
|
|
|
|
package() {
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
|
}
|
|
|
|
sha512sums="b9ac45ce753c83d1875ef0f55cedf0c998a2ad58ac4e1a667869980b21e70dd0e7c0781e8108c454fe45ed5a4bf76a3f79d68b70f38467470899acf4dc7daa47 linux-samsung-expressatt-0dbe2b56847b304d30b809dfd08ba3b4a61d9af8.tar.gz
|
|
1fd217f451fcbc68e018c9d63e32daa77083530a0976ae8e13cffabbf073005debeb280462bc327171715355b52ce1763a4d7539d3deb81511163e97fdd27c74 config-samsung-expressatt.armv7
|
|
ad0182a483791fc88e058838bc331b2f04a75ba291e763767babdb815efadfc3b4fda97e69e2e3f00a426cabea088e35297a92bd287592597d1e309be68ee92c kernel-use-the-gnu89-standard-explicitly.patch"
|