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.
57 lines
1.9 KiB
Text
57 lines
1.9 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Kernel config is based on arch/arm64/configs/douglas_debug_defconfig
|
|
#
|
|
# However, this didn't seem to work initially as the generated config
|
|
# file via pmbootstrap was somehow missing CONFIG_USB_G_ANDROID. I then
|
|
# output of the kernel build script provided by Amazon, which printed
|
|
# out the .config used for building the kernel.
|
|
|
|
pkgname=linux-amazon-douglas
|
|
pkgver=3.18.19
|
|
pkgrel=1
|
|
pkgdesc="Amazon Fire HD 8 (2017) kernel fork"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
_flavor="amazon-douglas"
|
|
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 gcc6"
|
|
|
|
# Compiler: GCC 6
|
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
|
CC="gcc6-$CC"
|
|
HOSTCC="gcc6-gcc"
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
fi
|
|
|
|
# Source
|
|
_repository="kernel_douglas"
|
|
_commit="4ff2b5a4534e275748920ba4ad105af36495bf89"
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$_commit.tar.gz::https://github.com/shuhaowu/$_repository/archive/$_commit.tar.gz
|
|
$_config
|
|
disable-sound.patch
|
|
"
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
_outdir="out"
|
|
|
|
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="eb3804fcbadb268429640a5171ea4788cf8974444a1aa1005801902dbce1c4d67d88cb43d0cee259dc082161a92b285de0a0d18d721220f6d2dff84a179a7dc5 linux-amazon-douglas-4ff2b5a4534e275748920ba4ad105af36495bf89.tar.gz
|
|
f3e03036a91e94f38db75b8cbcb664cf68d30f1e47289f729fb5bedc660347121abf2d49fe2a03fe174ab4da2f3ddfd701fc4275f70cc971a2b672c00520fc97 config-amazon-douglas.aarch64
|
|
aed9fd018a6367214dd00aad9c376c93ed356efbd74e21b49316ab0a21bc372a2077eeed8810f66464544c5bbc7bca6c46985ef42e6cb8f95ad94a1644130d1c disable-sound.patch"
|