2019-02-17 06:00:28 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
# APKBUILD based on linux-postmarketos-mainline
|
|
|
|
# See: https://gitlab.com/postmarketOS/pmaports/issues/153
|
|
|
|
|
|
|
|
_flavor=google-crosshatch-mainline
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$CARCH"
|
2019-02-17 06:00:28 +00:00
|
|
|
|
2020-02-28 09:59:56 +00:00
|
|
|
pkgname=linux-$_flavor
|
2019-08-25 01:44:33 +00:00
|
|
|
pkgver=5.3_rc5
|
2023-02-16 16:48:49 +00:00
|
|
|
pkgrel=5
|
2019-02-17 06:00:28 +00:00
|
|
|
arch="aarch64"
|
2023-02-16 16:48:49 +00:00
|
|
|
_carch="arm64"
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Google Pixel 3 XL kernel fork, close to mainline"
|
2019-02-17 06:00:28 +00:00
|
|
|
url="https://kernel.org/"
|
2023-02-16 16:48:49 +00:00
|
|
|
license="GPL2-2.0-only"
|
2019-02-17 06:00:28 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev openssl-dev file bison flex"
|
2023-02-16 16:48:49 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-community"
|
2019-02-17 06:00:28 +00:00
|
|
|
|
|
|
|
_repository="linux"
|
2019-08-25 01:44:33 +00:00
|
|
|
_commit="9c9b87cec239101274451cc9c086da60108f9fda"
|
2019-02-17 06:00:28 +00:00
|
|
|
|
|
|
|
source="
|
2020-02-28 10:17:04 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/Pixel3Dev/$_repository/archive/$_commit.tar.gz
|
2020-02-28 09:59:56 +00:00
|
|
|
config-$_flavor.aarch64
|
2023-02-16 16:48:49 +00:00
|
|
|
0001-linux4.17-gcc10-extern_YYLOC_global_declaration.patch
|
2019-02-17 06:00:28 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
builddir="$srcdir/linux-$_commit"
|
|
|
|
|
|
|
|
prepare() {
|
2023-02-16 16:48:49 +00:00
|
|
|
default_prepare
|
|
|
|
cp "$srcdir"/$_config .config
|
2019-02-17 06:00:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2023-02-16 16:48:49 +00:00
|
|
|
# V=1: workaround for pma#1990
|
2019-02-17 06:00:28 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2020-02-28 09:59:56 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
|
2023-02-16 16:48:49 +00:00
|
|
|
CFLAGS_MODULE=-fno-pic V=1
|
2019-02-17 06:00:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
2023-02-16 16:48:49 +00:00
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
|
|
"$pkgdir/boot/vmlinuz"
|
2019-02-17 06:00:28 +00:00
|
|
|
|
2023-02-16 16:48:49 +00:00
|
|
|
make modules_install dtbs_install \
|
2019-02-17 06:00:28 +00:00
|
|
|
ARCH="$_carch" \
|
2023-02-16 16:48:49 +00:00
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
2019-02-17 06:00:28 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2019-02-17 06:00:28 +00:00
|
|
|
|
2023-02-16 16:48:49 +00:00
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
2019-02-17 06:00:28 +00:00
|
|
|
|
2023-02-16 16:48:49 +00:00
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
2019-02-17 06:00:28 +00:00
|
|
|
}
|
2023-02-16 16:48:49 +00:00
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
1ce235689d7ce0b40be203cb16c1bdfe9bc7b2c5e793a942afc5ea4f3268a0a15b684d9c4017a87916d989d8592a96a4223976c95bf7fcca603e71d2f20fee86 linux-google-crosshatch-mainline-9c9b87cec239101274451cc9c086da60108f9fda.tar.gz
|
|
|
|
dd0e65335ce8583ef216b1efde4fc46450dc9ff5173dca3207f4743602a8a45b54cd0d3bdaf550820328f112b4e6581a31bd3d8814f90e409a5892cd3cdf4b62 config-google-crosshatch-mainline.aarch64
|
|
|
|
27827877040007fc1c4c719f7e2e19e5c272d44972415cfc53feba0313d87e4074f8204bdb13cbc5fe21ea61bf595314b68f10c081e7b7bac3c888b60f008acf 0001-linux4.17-gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
"
|