2018-09-27 17:54:56 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/zc500tg_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-asus-z00vd
|
2018-09-27 17:54:56 +00:00
|
|
|
pkgver=3.18.41
|
*/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
|
|
|
pkgrel=3
|
2018-09-27 17:54:56 +00:00
|
|
|
pkgdesc="ASUS Zenfone Go kernel fork"
|
2019-07-17 05:32:47 +00:00
|
|
|
arch="armv7"
|
2018-09-27 17:54:56 +00:00
|
|
|
_carch="arm"
|
|
|
|
_flavor="asus-z00vd"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL2"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2019-10-31 02:52:19 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev python3"
|
2018-09-27 17:54:56 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="ZC500TG"
|
|
|
|
_commit="7957ae0b17bb46d56a5cddd1d313aec76296aee8"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2018-09-27 17:54:56 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/Danct12/$_repository/archive/$_commit.tar.gz
|
2018-09-27 17:54:56 +00:00
|
|
|
$_config
|
|
|
|
01_fix_warnings.patch
|
|
|
|
02_gcc8_error.patch
|
2019-10-31 02:52:19 +00:00
|
|
|
03_perf_python3.patch
|
|
|
|
04_dct_python3.patch
|
2018-09-27 17:54:56 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2020-07-09 18:35:30 +00:00
|
|
|
_outdir="out"
|
2018-09-27 17:54:56 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
# Remove -Werror from all makefiles
|
|
|
|
local i
|
|
|
|
local makefiles="$(find . -type f -name Makefile)
|
|
|
|
$(find . -type f -name Kbuild)"
|
|
|
|
for i in $makefiles; do
|
|
|
|
sed -i 's/-Werror-/-W/g' "$i"
|
|
|
|
sed -i 's/-Werror//g' "$i"
|
|
|
|
done
|
|
|
|
|
2019-07-17 05:32:47 +00:00
|
|
|
# Requires a out folder for some reason
|
2020-07-09 18:35:30 +00:00
|
|
|
mkdir "$_outdir"
|
2018-09-27 17:54:56 +00:00
|
|
|
|
|
|
|
# Clean up kernel source
|
2020-07-09 18:35:30 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" ARCH_MTK_PLATFORM="mt6580" clean
|
|
|
|
make O="$_outdir" ARCH="$_carch" ARCH_MTK_PLATFORM="mt6580" mrproper
|
2018-09-27 17:54:56 +00:00
|
|
|
|
|
|
|
# Prepare kernel config ('yes ""' for kernels lacking olddefconfig)
|
2019-07-17 05:32:47 +00:00
|
|
|
cp "$srcdir"/$_config "$builddir"/out/.config
|
2020-07-09 18:35:30 +00:00
|
|
|
yes "" | make O="$_outdir" ARCH="$_carch" ARCH_MTK_PLATFORM="mt6580" oldconfig
|
2018-09-27 17:54:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2020-07-09 18:35:30 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" ARCH_MTK_PLATFORM="mt6580" \
|
2018-09-27 17:54:56 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# kernel.release
|
2020-07-09 18:35:30 +00:00
|
|
|
install -D "$_outdir/include/config/kernel.release" \
|
2018-09-27 17:54:56 +00:00
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
|
|
|
|
# zImage (find the right one)
|
2020-07-09 18:35:30 +00:00
|
|
|
cd "$_outdir/arch/$_carch/boot"
|
2018-09-27 17:54:56 +00:00
|
|
|
_target="$pkgdir/boot/vmlinuz-$_flavor"
|
|
|
|
for _zimg in zImage-dtb Image.gz-dtb *zImage Image; do
|
|
|
|
[ -e "$_zimg" ] || continue
|
|
|
|
msg "zImage found: $_zimg"
|
|
|
|
install -Dm644 "$_zimg" "$_target"
|
|
|
|
break
|
|
|
|
done
|
|
|
|
if ! [ -e "$_target" ]; then
|
|
|
|
error "Could not find zImage in $PWD!"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="eb4575d8d3603097141991bc207a51f3ed9281d6e1432570666aeeb3299c86574e80724e27721e2f64844fe9efdfd99df898138e1d2053f143132d1b0e89414b linux-asus-z00vd-7957ae0b17bb46d56a5cddd1d313aec76296aee8.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
|
|
|
2e25cf89aeef67cd3fd17dc2ce14571a2ac71fe2933cbb7f5a4f33800352359cbcf2c71a8217553f9cd7afa176ec0211aac4e1dec0f0a5710cf1cea9817c0998 config-asus-z00vd.armv7
|
2018-09-27 17:54:56 +00:00
|
|
|
1db0eb57279ab2b0ad70e0f93dfe6faa0d807cf24832c2e55b2c726b43cdece84edfc614e6455cddddbce890de1df80e37fd1805b9fd6ccc259047c5ef7a6ba6 01_fix_warnings.patch
|
2019-10-31 02:52:19 +00:00
|
|
|
f60b91c7cffd1704e6ac51d1c352b87f74432fc645deff2ff4feeeffff3c441af425191254f871a999555b3abcd1d199eeba0c12dbef4d9364f4d70df4484976 02_gcc8_error.patch
|
|
|
|
c64bbad5e6f33e086d35e8f4e08ffc840b3bfb09fba49f635dd2eb671301cb8e5fd2915b3406a8bb7fce2de6638ce0337adcd14182316b7a5941ff84352744de 03_perf_python3.patch
|
|
|
|
b1aef615711138992101466b7fea4762698ba87620a55f748bd66f20a2114122678e85c3bb85ef0ae0d394552d2f4577535086a5d80a878459aadc9a9fb42ce0 04_dct_python3.patch"
|