2019-12-03 17:23:00 +00:00
|
|
|
# Maintainer: Alexey Min <alexey.min@gmail.com>
|
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sdm660"
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-$_flavor
|
2021-03-04 17:24:36 +00:00
|
|
|
pkgver=5.10_rc6
|
2022-03-05 19:20:38 +00:00
|
|
|
pkgrel=5
|
2021-03-04 17:24:36 +00:00
|
|
|
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon 660 SoC"
|
|
|
|
arch="aarch64"
|
2019-12-03 17:23:00 +00:00
|
|
|
url="https://kernel.org/"
|
|
|
|
license="GPL-2.0-only"
|
2021-07-19 21:26:29 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-nftables
|
|
|
|
"
|
2019-12-03 17:23:00 +00:00
|
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
|
2022-01-18 03:00:57 +00:00
|
|
|
_commit="68c4e52cf35374e4b654f252b62accadad759ca5"
|
2019-12-03 17:23:00 +00:00
|
|
|
|
|
|
|
source="
|
2022-03-05 19:20:38 +00:00
|
|
|
linux-sdm660-mainline-$_commit.tar.gz::https://github.com/sdm660-mainline/linux/archive/$_commit.tar.gz
|
2019-12-03 17:23:00 +00:00
|
|
|
config-$_flavor.aarch64
|
|
|
|
"
|
|
|
|
|
|
|
|
_carch="arm64"
|
|
|
|
|
2022-03-05 19:20:38 +00:00
|
|
|
builddir="$srcdir/linux-$_commit"
|
2019-12-03 17:23:00 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp -v "$srcdir/config-$_flavor.$CARCH" "$builddir"/.config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# bootloader requires compressed kernel
|
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
2021-08-25 19:35:59 +00:00
|
|
|
"$pkgdir/boot/vmlinuz"
|
2019-12-03 17:23:00 +00:00
|
|
|
|
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
|
|
|
|
make modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2021-03-04 17:24:36 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
2019-12-03 17:23:00 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
|
|
}
|
|
|
|
|
2021-07-19 21:26:29 +00:00
|
|
|
sha512sums="
|
2022-03-05 19:20:38 +00:00
|
|
|
70a8b39b6b38789e2f831301006a2d2a4607c1d9cd48b658110ef8f7bc7aa81d6183d6e3d4b5fe97378bd3d829772dae3338b6e12718e8348b07ffe232676a25 linux-sdm660-mainline-68c4e52cf35374e4b654f252b62accadad759ca5.tar.gz
|
|
|
|
953de399270a4947bd5be6ce5e257ee7eb64897fd974227d4462c081a7b4bc4f0a4701ff6d2597aa55b899226d36f6338067ed1414c5b2bddf4ad6c649bb20be config-postmarketos-qcom-sdm660.aarch64
|
2021-07-19 21:26:29 +00:00
|
|
|
"
|