2018-01-08 21:49:08 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/tf101-linux_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-asus-tf101
|
2018-01-08 21:49:08 +00:00
|
|
|
pkgver=3.1.10
|
*/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=4
|
2018-01-08 21:49:08 +00:00
|
|
|
pkgdesc="Asus Eee Pad Transformer kernel fork"
|
2020-08-25 22:33:43 +00:00
|
|
|
arch="armv7"
|
2018-01-08 21:49:08 +00:00
|
|
|
_carch="arm"
|
|
|
|
_flavor="asus-tf101"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL2"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-02-18 08:34:06 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev xz 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
|
2018-01-08 21:49:08 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="TF101-GNU-kernel"
|
|
|
|
_commit="5ddd9654ec52599fbef71657ad2e03b3cdacee31"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2018-01-08 21:49:08 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/jmrohwer/$_repository/archive/$_commit.tar.gz
|
2018-01-08 21:49:08 +00:00
|
|
|
compiler-gcc6.h
|
2019-02-06 03:51:51 +00:00
|
|
|
00-fix_return_address.patch
|
2018-01-08 21:49:08 +00:00
|
|
|
01-fix-alignment.patch
|
2019-02-06 03:51:51 +00:00
|
|
|
02-fix_static_vma_address.patch
|
|
|
|
04-Revert-Update-TF101.patch
|
|
|
|
05-Revert-Update-TF101.patch
|
|
|
|
06-Enable-USB-Networking.patch
|
|
|
|
07-Added-Parameters-to-Atmel-TouchScreen-Drivers.patch
|
|
|
|
$_config
|
2018-01-08 21:49:08 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2018-01-08 21:49:08 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2018-01-08 21:49:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" modules
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2018-01-08 21:49:08 +00:00
|
|
|
|
|
|
|
# Modules
|
|
|
|
unset LDFLAGS
|
2019-02-06 03:51:51 +00:00
|
|
|
make modules_install \
|
|
|
|
ARCH="$_carch" \
|
2018-01-08 21:49:08 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \
|
2019-02-06 03:51:51 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1
|
2018-01-08 21:49:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="44a2bccef4f5d9258aee8d7c8cdb2572f7136cf1a3487e6290457a21de28ecc4201951f5ea89d9392a44d0980f66a590cf23696209639b63dafefd4d39662902 linux-asus-tf101-5ddd9654ec52599fbef71657ad2e03b3cdacee31.tar.gz
|
|
|
|
d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h
|
2019-02-06 03:51:51 +00:00
|
|
|
ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 00-fix_return_address.patch
|
2018-01-08 21:49:08 +00:00
|
|
|
cdddc37d3c173c931631037d7c337e45589420eba956231436b8d3b857b942db7fd33e4800d0badaa6f09d33a5373a9f0bf173748e8e72b237bd7d699e7fe4a8 01-fix-alignment.patch
|
2019-02-06 03:51:51 +00:00
|
|
|
59231af0dee68fc424d1ad78f62c491ace795d4cc4af4c26e59b08da5c10cfc406dfc980305f851254bbfa7f03b1bc75f8072f4b4d0f06629ebdbb9ca5a6fea9 02-fix_static_vma_address.patch
|
|
|
|
3644b617593740112732fdfda50814889e0d23bed1b53666138efa2eaae2c73568c8d60c4eda7a5d3a041eb81baaef5935421548791ee92f53868314f58f3242 04-Revert-Update-TF101.patch
|
|
|
|
bc8d62c7bf3de7074b5526906716326dede61f7358278b0a88f33e8fa235dc5305e0fbb45e751817db2aec1fca9ea116962527a2d772fe3892e176a07a8635bd 05-Revert-Update-TF101.patch
|
|
|
|
60067a14f1b8f71c7cd32f7eaf09c086b0641240ffee55cf4363ba050526625f55e1601fc4702b115f0a301e4526effe487fd1b6cfa85790b20e26fb09ca4f08 06-Enable-USB-Networking.patch
|
|
|
|
59d9c2b365123acd6eca7b78403a893d8d78867db182ddc1fda2c521e85bb86f871fcb32ecc3ae5248a2cbb93a644a9d665085defe07987ece70326323329953 07-Added-Parameters-to-Atmel-TouchScreen-Drivers.patch
|
2020-08-25 22:33:43 +00:00
|
|
|
931782f11112f03dea5771214382ecc8bab9a2fbb4beb73c4813d2a94bf3bb10ef108dbbc472d65ddeaf482c74147e1153015964428070ee8940034186c913c1 config-asus-tf101.armv7"
|