f7cf971e40
Signed-off-by: Aboothahir U <aboothahirpkd@gmail.com>
72 lines
1.9 KiB
Text
72 lines
1.9 KiB
Text
# Maintainer: Alexey Minnekhanov <alexeymin@postmarketos.org>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
_flavor="postmarketos-qcom-sdm660"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.0.5
|
|
pkgrel=0
|
|
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon 660 SoC"
|
|
arch="aarch64"
|
|
url="https://kernel.org/"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-waydroid
|
|
pmb:kconfigcheck-containers
|
|
pmb:kconfigcheck-iwd
|
|
pmb:kconfigcheck-nftables
|
|
pmb:kconfigcheck-zram
|
|
"
|
|
makedepends="
|
|
bash
|
|
bison
|
|
findutils
|
|
flex
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
"
|
|
|
|
_tag="v$pkgver-sdm660"
|
|
|
|
source="
|
|
linux-$_tag.tar.gz::https://github.com/sdm660-mainline/linux/archive/refs/tags/$_tag.tar.gz
|
|
config-$_flavor.aarch64
|
|
"
|
|
|
|
_carch="arm64"
|
|
|
|
# for some reason, the directory inside .tar.gz does not match tag name: leading
|
|
# "v" is missing, so we can't use $_tag here
|
|
builddir="$srcdir/linux-$pkgver-sdm660"
|
|
|
|
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() {
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
}
|
|
|
|
sha512sums="
|
|
e657b96be3bc5f4835955e2aa70055d18eb1b9434d6d5ef1aabd3f555ba315f2abd08a39a35a3aea6b394a353f84b1962fe4421c49abda2e538e46bf6b155934 linux-v6.0.5-sdm660.tar.gz
|
|
10004279a10bb1821e469137fe20436df59e089865338f6ebfe48b0cf882205e3446bc236dd127f5b9cffe38d6faeef2533c6a005bf425ebc2f14efa67d5fc11 config-postmarketos-qcom-sdm660.aarch64
|
|
"
|