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-27 05:51:43 +00:00
|
|
|
pkgver=6.3.0_rc1
|
|
|
|
pkgrel=0
|
2022-01-22 12:44:03 +00:00
|
|
|
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-27 05:51:43 +00:00
|
|
|
_commit="ddc806a03ff96274f95436371eefa1873f283080"
|
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"
|
|
|
|
|
|
|
|
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 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2022-07-04 11:46:12 +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
|
2022-01-22 12:44:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2022-08-27 05:51:43 +00:00
|
|
|
61cd62a648b73d5e166824d31f7a3a292bc8773631fca80aeca2c6ac4285a09d0aac11d1b5b84af4e8c97564e98662c1a0f2847160a9c10df18ab40c759873a9 linux-postmarketos-qcom-sm8250-ddc806a03ff96274f95436371eefa1873f283080.tar.gz
|
|
|
|
ce768ad8e3302d4b8b99f8233c817cc4680ae13aa5ef558ed1d81f6efb05baf1208baab81c454b02e45e4663817316a6efe2bc22c692f4f006b30edc7d6b1c76 config-postmarketos-qcom-sm8250.aarch64
|
2022-01-22 12:44:03 +00:00
|
|
|
"
|