2020-11-16 10:40:37 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2017-09-04 17:11:42 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/lineageos_angler_defconfig
|
|
|
|
|
2020-11-16 10:40:37 +00:00
|
|
|
pkgname=linux-huawei-angler
|
2017-09-04 17:11:42 +00:00
|
|
|
pkgver=3.10.73
|
2021-09-03 16:55:26 +00:00
|
|
|
pkgrel=12
|
2020-11-16 10:40:37 +00:00
|
|
|
pkgdesc="Google Nexus 6P kernel fork"
|
2017-09-04 17:11:42 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2020-11-16 10:40:37 +00:00
|
|
|
_flavor="huawei-angler"
|
|
|
|
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-09-04 17:11:42 +00:00
|
|
|
|
2020-11-16 10:40:37 +00:00
|
|
|
# Source
|
|
|
|
_repository="android_kernel_huawei_angler"
|
|
|
|
_commit="04d1557af1259b211609fa41adbe852b5f9cf2da"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
|
|
|
$_config
|
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
kernel-use-the-gnu89-standard-explicitly.patch
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
_outdir="out"
|
2017-09-04 17:11:42 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-11-16 10:40:37 +00:00
|
|
|
default_prepare
|
|
|
|
. downstreamkernel_prepare
|
2017-09-04 17:11:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2020-11-16 10:40:37 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2017-09-04 17:11:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-11-16 10:40:37 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
2017-09-04 17:11:42 +00:00
|
|
|
}
|
|
|
|
|
2017-09-14 18:16:16 +00:00
|
|
|
sha512sums="de3f5ab1c6609b94d416b0eebd5ae948698f0f6ec81e84fbee152df7c2778d8df94cec43b5abca583fe5977bb28037b3b6d2c3ff652a50493a1f24da31dadd7f linux-huawei-angler-04d1557af1259b211609fa41adbe852b5f9cf2da.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
d684cda4b1dbc0733796df6947724271e754727be06079c0a18bafedbbedb2835d4e1475ddd159842647287d791073b6c138279b0f177f9b47c985176b663b74 config-huawei-angler.aarch64
|
2020-11-16 10:40:37 +00:00
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
ad0182a483791fc88e058838bc331b2f04a75ba291e763767babdb815efadfc3b4fda97e69e2e3f00a426cabea088e35297a92bd287592597d1e309be68ee92c kernel-use-the-gnu89-standard-explicitly.patch"
|