2022-08-04 04:03:43 +00:00
|
|
|
# Maintainer: Alexey Minnekhanov <alexeymin@postmarketos.org>
|
2019-12-03 17:23:00 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sdm660"
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-$_flavor
|
2022-11-28 11:01:53 +00:00
|
|
|
pkgver=6.0.10
|
2023-04-23 13:04:59 +00:00
|
|
|
pkgrel=1
|
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
|
2022-10-08 18:36:46 +00:00
|
|
|
pmb:kconfigcheck-waydroid
|
2022-08-04 04:03:43 +00:00
|
|
|
pmb:kconfigcheck-containers
|
|
|
|
pmb:kconfigcheck-iwd
|
2021-07-19 21:26:29 +00:00
|
|
|
pmb:kconfigcheck-nftables
|
2022-08-04 04:03:43 +00:00
|
|
|
pmb:kconfigcheck-zram
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
bash
|
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
2021-07-19 21:26:29 +00:00
|
|
|
"
|
2019-12-03 17:23:00 +00:00
|
|
|
|
2022-11-05 10:46:41 +00:00
|
|
|
_tag="v$pkgver-sdm660"
|
2019-12-03 17:23:00 +00:00
|
|
|
|
|
|
|
source="
|
2022-04-24 14:07:06 +00:00
|
|
|
linux-$_tag.tar.gz::https://github.com/sdm660-mainline/linux/archive/refs/tags/$_tag.tar.gz
|
2019-12-03 17:23:00 +00:00
|
|
|
config-$_flavor.aarch64
|
|
|
|
"
|
|
|
|
|
|
|
|
_carch="arm64"
|
|
|
|
|
2022-04-24 14:07:06 +00:00
|
|
|
# for some reason, the directory inside .tar.gz does not match tag name: leading
|
|
|
|
# "v" is missing, so we can't use $_tag here
|
2022-11-05 10:46:41 +00:00
|
|
|
builddir="$srcdir/linux-$pkgver-sdm660"
|
2019-12-03 17:23:00 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp -v "$srcdir/config-$_flavor.$CARCH" "$builddir"/.config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2023-04-23 18:44:02 +00:00
|
|
|
# V=1: workaround for pma#1990
|
2019-12-03 17:23:00 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2023-04-23 18:44:02 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
|
|
|
|
V=1
|
2019-12-03 17:23:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-08-04 04:03:43 +00:00
|
|
|
mkdir -p "$pkgdir"/boot
|
2019-12-03 17:23:00 +00:00
|
|
|
|
2022-08-04 04:03:43 +00:00
|
|
|
make zinstall modules_install dtbs_install \
|
2019-12-03 17:23:00 +00:00
|
|
|
ARCH="$_carch" \
|
2022-08-04 04:03:43 +00:00
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
2019-12-03 17:23:00 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2021-03-04 17:24:36 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2022-08-04 04:03:43 +00:00
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
2019-12-03 17:23:00 +00:00
|
|
|
}
|
|
|
|
|
2021-07-19 21:26:29 +00:00
|
|
|
sha512sums="
|
2022-11-28 11:01:53 +00:00
|
|
|
cf71a37ad587805fc5393ac5eaf65ffd4fc98fd85fdd2bd5e4ee1b825ccee43194e45f6d54b4485b3c04f661a174a7fefc300004ae428b5b250b66603f388e14 linux-v6.0.10-sdm660.tar.gz
|
2023-04-23 13:04:59 +00:00
|
|
|
ac5f076165727416d4b7063cef82a3f606dbe32feefa67c4dd52e766ac105aced27e393b84f6ba4f59a662dfd6e0aaaf3cf8d8a143a25f30cdd6957f76fcc496 config-postmarketos-qcom-sdm660.aarch64
|
2021-07-19 21:26:29 +00:00
|
|
|
"
|