2019-03-21 10:07:55 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2019-08-27 14:05:41 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/montana_defconfig
|
2019-03-21 10:07:55 +00:00
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-motorola-montana
|
2019-08-27 14:05:41 +00:00
|
|
|
pkgver=3.18.140
|
2021-09-03 16:55:26 +00:00
|
|
|
pkgrel=2
|
2019-03-21 10:07:55 +00:00
|
|
|
pkgdesc="Motorola Moto G5s kernel fork"
|
2019-08-27 14:05:41 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2019-03-21 10:07:55 +00:00
|
|
|
_flavor="motorola-montana"
|
|
|
|
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-03-21 10:07:55 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev dtbtool xz"
|
|
|
|
|
|
|
|
# Source
|
2019-08-27 14:05:41 +00:00
|
|
|
_repository="android_kernel_motorola_msm8937"
|
|
|
|
_commit="1e8993177823e4ddf3b5d91da6335d75ad513dec"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-03-21 10:07:55 +00:00
|
|
|
source="
|
2020-02-28 10:17:04 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/MontanaDevelopment/$_repository/archive/$_commit.tar.gz
|
2019-03-21 10:07:55 +00:00
|
|
|
$_config
|
2020-11-04 12:48:12 +00:00
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
2019-03-21 10:07:55 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2019-03-21 10:07:55 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2019-03-21 10:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
|
|
|
|
# Generate master DTB (deviceinfo_bootimg_qcdt)
|
|
|
|
dtbTool -s 2048 -p "scripts/dtc/" -o "arch/arm/boot/dt.img" "arch/arm/boot/"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-03-05 12:28:36 +00:00
|
|
|
KERNEL_IMAGE_NAME="Image.gz" downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2019-03-21 10:07:55 +00:00
|
|
|
}
|
|
|
|
|
2019-08-27 14:05:41 +00:00
|
|
|
sha512sums="369dfffb8088958226b1a259705f4af1e5e9b02d32fde4cd9f9c50f2165658a187f5aa74badff77761a02c2c088484789267db6afbcc3e802dd62b1e819553c0 linux-motorola-montana-1e8993177823e4ddf3b5d91da6335d75ad513dec.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
cb16e1957261970752e28b2bfd33bbab8c3e4dc72ea6a590c560ef4dc510aa8f08d05f30e5410d37a40776464310ddd5cfb8f4045f821e06d8c13d1435d18e3b config-motorola-montana.aarch64
|
2020-11-04 12:48:12 +00:00
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch"
|