700756cad2
These options are required by `iwd`. Make use of the `kconfigcheck-iwd` APKBUILD option to ensure the required config options remain selected. [ci:skip-build] already built successfully in CI
59 lines
1.7 KiB
Text
59 lines
1.7 KiB
Text
# Maintainer: Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
_flavor="postmarketos-qcom-msm8996"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.18.1
|
|
pkgrel=1
|
|
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8996 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://gitlab.com/msm8996-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-nftables
|
|
pmb:kconfigcheck-anbox
|
|
pmb:kconfigcheck-containers
|
|
pmb:kconfigcheck-iwd
|
|
pmb:kconfigcheck-zram
|
|
"
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
# Source
|
|
_tag=v${pkgver//_/-}-msm8996
|
|
source="
|
|
linux-$_tag.tar.gz::$url/-/archive/$_tag/linux-$_tag.tar.gz
|
|
config-$_flavor.$arch
|
|
"
|
|
builddir="$srcdir/linux-$_tag"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/boot
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
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" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
|
}
|
|
sha512sums="
|
|
909d9735623b9cf20e1efa735e520eed579751bcbb45f95821d489d993424c8ac3699f3fdbdd339c70188acb5b6315fee4a7dd9087f098e5dc23c1498277cc56 linux-v5.18.1-msm8996.tar.gz
|
|
289a080aa4977141d2d36c5e2cc459d23241fbc59c3754768b08f93de6311950607379eac00dc84acd25c1974f495c508cb17b2111a08b53cd8dabb09b39abaa config-postmarketos-qcom-msm8996.aarch64
|
|
"
|