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.
71 lines
2 KiB
Text
71 lines
2 KiB
Text
# Kernel config based on: arch/arm/configs/tegra_defconfig
|
|
|
|
pkgname=linux-samsung-p4wifi
|
|
pkgver=5.0
|
|
pkgrel=1
|
|
pkgdesc="Galaxy Tab 10.1 kernel"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
_flavor="samsung-p4wifi"
|
|
url="https://kernel.org"
|
|
license="GPL2"
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev xz flex bison openssl-dev"
|
|
|
|
# Source
|
|
_repository="linux"
|
|
_rev="8de8fd48d3a4765b7cef982e550cc06b806d5977"
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$_rev.tar.gz::https://github.com/decatf/$_repository/archive/$_rev.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/$_repository-$_rev"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
mkdir -p "$srcdir"/build
|
|
cp -v "$srcdir"/$_config "$srcdir"/build/.config
|
|
make -C "$builddir" O="$srcdir"/build ARCH="$_carch" \
|
|
olddefconfig
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir"/build
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
|
|
CFLAGS_MODULE=-fno-pic
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/build/arch/$_carch/boot"
|
|
|
|
if [ "$CARCH" == "aarch64" ]; then
|
|
install -Dm644 "$srcdir/build/arch/$_carch/boot/Image" \
|
|
"$pkgdir/boot/vmlinuz-$_flavor"
|
|
else
|
|
install -Dm644 "$srcdir/build/arch/$_carch/boot/"*zImage \
|
|
"$pkgdir/boot/vmlinuz-$_flavor"
|
|
fi
|
|
|
|
install -D "$srcdir/build/include/config/kernel.release" \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
cd "$srcdir"/build
|
|
|
|
local _install
|
|
case "$CARCH" in
|
|
aarch64*|arm*) _install="modules_install dtbs_install" ;;
|
|
*) _install="modules_install" ;;
|
|
esac
|
|
|
|
make -j1 $_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
}
|
|
|
|
sha512sums="2fdcb7ecefc09dfe763f58bae085740b0279ec255e082f663b49e5d324f5af83a5691d681204a0ff07d3e89d0666728007ce620aa921f79c43f5b3481756320b linux-samsung-p4wifi-8de8fd48d3a4765b7cef982e550cc06b806d5977.tar.gz
|
|
4f801d078c836094267b9c41dd4db98b679c5aed5661da85f52e7b92c9bb7fddff9e32203ab47d8fe8a0d8ffed14056fda1a0a96a561134a63bc01f83c12ccbf config-samsung-p4wifi.armv7"
|