2019-11-23 02:48:41 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm/configs/m470_v2_dopa1_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-hisense-m470bsa
|
2019-11-23 02:48:41 +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=1
|
2019-11-23 02:48:41 +00:00
|
|
|
pkgdesc="Hisense Sero 7 Pro kernel fork"
|
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
|
|
|
_flavor="hisense-m470bsa"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2019-11-23 02:48:41 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev gcc6 xz"
|
|
|
|
|
|
|
|
# Compiler: GCC 6 (doesn't boot when compiled with newer versions)
|
|
|
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
|
|
|
CC="gcc6-$CC"
|
|
|
|
HOSTCC="gcc6-gcc"
|
|
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_hisense_m470bsa"
|
|
|
|
_commit="7af4a85198eb80cdb6964bd0550f6f5ea722274c"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-11-23 02:48:41 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/dolorespark/$_repository/archive/$_commit.tar.gz
|
2019-11-23 02:48:41 +00:00
|
|
|
$_config
|
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2019-11-23 02:48:41 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2019-11-23 02:48:41 +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" \
|
2020-02-28 10:17:04 +00:00
|
|
|
CFLAGS_MODULE=-fno-pic modules
|
2019-11-23 02:48:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2019-11-23 02:48:41 +00:00
|
|
|
|
|
|
|
echo "--[ Installing modules ]--"
|
|
|
|
install -Dm644 "$builddir/drivers/net/wireless/bcmdhd/bcmdhd.ko" \
|
|
|
|
"$pkgdir/lib/modules/3.1.10-postmarketos/bcmdhd.ko"
|
|
|
|
install -Dm644 "$builddir/drivers/net/usb/raw_ip_net.ko" \
|
|
|
|
"$pkgdir/lib/modules/3.1.10-postmarketos/raw_ip_net.ko"
|
|
|
|
install -Dm644 "$builddir/net/mac80211/mac80211.ko" \
|
|
|
|
"$pkgdir/lib/modules/3.1.10-postmarketos/mac80211.ko"
|
|
|
|
install -Dm644 "$builddir/net/wireless/cfg80211.ko" \
|
|
|
|
"$pkgdir/lib/modules/3.1.10-postmarketos/cfg80211.ko"
|
|
|
|
install -Dm644 "$builddir/net/wireless/lib80211.ko" \
|
|
|
|
"$pkgdir/lib/modules/3.1.10-postmarketos/lib80211.ko"
|
|
|
|
install -Dm644 "$builddir/drivers/scsi/scsi_wait_scan.ko" \
|
|
|
|
"$pkgdir/lib/modules/3.1.10-postmarketos/scsi_wait_scan.ko"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="e9089411df58f64e0cb1ff8c2027cc4262f6bc1bc3bedebcc69d8417c99ab24d1520f2668287ed79bd84f45bfd660dee5199271504ce574beb8d9c7d089ae651 linux-hisense-m470bsa-7af4a85198eb80cdb6964bd0550f6f5ea722274c.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
|
|
|
de1cafbae98a7624c6a62cdc310ad2bec6f0129f462b401d387e734dabbfdad5ae60db4f9fd1c8b4bd6b64e27d5de4c47f51589f16acb00f056b16002770711c config-hisense-m470bsa.armv7"
|