2020-11-16 13:16:16 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2017-07-31 18:02:44 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/cyanogenmod_n7100_defconfig
|
|
|
|
|
2020-11-16 13:16:16 +00:00
|
|
|
pkgname=linux-samsung-n7100
|
2017-07-31 18:02:44 +00:00
|
|
|
pkgver=3.0.64
|
2020-11-16 13:16:16 +00:00
|
|
|
pkgrel=10
|
|
|
|
pkgdesc="Samsung Galaxy Note II kernel fork"
|
2017-07-31 18:02:44 +00:00
|
|
|
arch="armhf"
|
|
|
|
_carch="arm"
|
2020-11-16 13:16:16 +00:00
|
|
|
_flavor="samsung-n7100"
|
|
|
|
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"
|
2018-10-01 06:44:18 +00:00
|
|
|
|
|
|
|
# Compiler: this kernel was only tested with GCC6. Feel free to make a merge
|
|
|
|
# request if you find out that it is booting working with newer GCCs as
|
|
|
|
# well. See <https://postmarketos.org/vendorkernel> for instructions.
|
|
|
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
|
|
|
CC="gcc6-$CC"
|
2018-11-30 20:56:06 +00:00
|
|
|
HOSTCC="gcc6-gcc"
|
2018-10-01 06:44:18 +00:00
|
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
|
|
fi
|
2017-07-31 18:02:44 +00:00
|
|
|
|
2020-11-16 13:16:16 +00:00
|
|
|
# Source
|
|
|
|
_repository="android_kernel_samsung_smdk4412"
|
|
|
|
_commit="5790cd7defee9cb6f9b392af4e3569e51230917a"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/bigbiff/$_repository/archive/$_commit.tar.gz
|
|
|
|
$_config
|
|
|
|
timeconst.pl-Eliminate-Perl-warning.patch
|
|
|
|
extdsp_inline.patch
|
|
|
|
fimc_lite.patch
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
_outdir="out"
|
2017-07-31 18:02:44 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-11-16 13:16:16 +00:00
|
|
|
default_prepare
|
|
|
|
. downstreamkernel_prepare
|
2017-07-31 18:02:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2020-11-16 13:16:16 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2017-07-31 18:02:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-11-16 13:16:16 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
2017-07-31 18:02:44 +00:00
|
|
|
}
|
2020-11-16 13:16:16 +00:00
|
|
|
|
2017-09-14 18:16:16 +00:00
|
|
|
sha512sums="02dc37618cee9366ad34ca3e435253323d19cc687d6f25dc15fef1ba8ef9b637f96231ce05991979ff250b8f547fde6c54d64eaa8a9d3369d4a896339524bb98 linux-samsung-n7100-5790cd7defee9cb6f9b392af4e3569e51230917a.tar.gz
|
*/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 13:24:19 +00:00
|
|
|
05e40dc9d1d0c27a73a8c30fd5dfef82baf7a0b6612b79d792d8857e9fae8c58c234ae93ce75eb7e57ba69ef0a630159730dc980046a5a026597e161b1eebacc config-samsung-n7100.armhf
|
2020-11-09 10:06:09 +00:00
|
|
|
1fcfb5f06a2bfdcc55d53054ca80d1b989599a39a5379d057a0724fc405187d74da4309a650e70b9c79d39444e81923cfc5c9199ed8c0a77c83dcd7998446bb7 timeconst.pl-Eliminate-Perl-warning.patch
|
2020-11-16 13:16:16 +00:00
|
|
|
54b345e988b20078260c859d047fc67eec4de0a82cc4c7a19537dac3a797cfc7adbcd41f2af51814d7a6b5d93c5825078381aa7207b5db0cc2b671e495682140 extdsp_inline.patch
|
|
|
|
fe682960d8d8534e14712a4d2bf9e41abed34ec3a29dcaace0fc1115cda08f6bc4c83cd130413d92cda2091be711e3ded91767c30f080a6d9cf7952f068f052c fimc_lite.patch"
|