2022-01-22 12:44:03 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sm8250"
|
|
|
|
pkgname=linux-$_flavor
|
2022-08-08 03:04:21 +00:00
|
|
|
pkgver=5.19.0
|
2022-01-22 12:44:03 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Mainline kernel fork for SM8250"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
url="https://github.com/lujianhua/linux"
|
|
|
|
license="GPL-2.0-only"
|
2022-07-04 11:46:12 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-nftables
|
|
|
|
"
|
2022-01-22 12:44:03 +00:00
|
|
|
makedepends="
|
|
|
|
bash
|
|
|
|
bison
|
2022-07-04 11:46:12 +00:00
|
|
|
findutils
|
2022-01-22 12:44:03 +00:00
|
|
|
flex
|
2022-07-04 11:46:12 +00:00
|
|
|
installkernel
|
2022-01-22 12:44:03 +00:00
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
"
|
|
|
|
|
|
|
|
# Source
|
2022-08-08 03:04:21 +00:00
|
|
|
_commit="858fabb41e9eedca992616d4dc191483a3c8b2c1"
|
2022-01-22 12:44:03 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz
|
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/linux-$_commit"
|
|
|
|
_outdir="out"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2022-07-04 11:46:12 +00:00
|
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
2022-01-22 12:44:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2022-07-04 11:46:12 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
2022-01-22 12:44:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-07-04 11:46:12 +00:00
|
|
|
mkdir -p "$pkgdir"/boot
|
2022-01-22 12:44:03 +00:00
|
|
|
|
2022-07-04 11:46:12 +00:00
|
|
|
make zinstall modules_install dtbs_install \
|
2022-01-22 12:44:03 +00:00
|
|
|
ARCH="$_carch" \
|
2022-07-04 11:46:12 +00:00
|
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
2022-01-22 12:44:03 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2022-07-04 11:46:12 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
2022-01-22 12:44:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2022-08-08 03:04:21 +00:00
|
|
|
3ef691a4f0162942fc0ca393ba51fcc43657562e0744dd33601cbcea9248ede5282cfb674717402d6e20dbe7ae5b0f060201d50418f6d682e8921d0eb00afde1 linux-postmarketos-qcom-sm8250-858fabb41e9eedca992616d4dc191483a3c8b2c1.tar.gz
|
|
|
|
16580485bd471e6436964cb22800f64b1bdc88f0a0e6af8dde3b5f6e7c21aa41eeb44f1c6867fc0e50cb5675f03e1f7735587b3b5648945da4ccb49464dfbf22 config-postmarketos-qcom-sm8250.aarch64
|
2022-01-22 12:44:03 +00:00
|
|
|
"
|