5e17ea3aed
The device fulfils the requirements for community category, and I plan to maintain and develop this device further going forward. Move it! [ci:skip-vercheck]: linux pkg was moved [ci:skip-build]: already built successfully in CI
61 lines
1.7 KiB
Text
61 lines
1.7 KiB
Text
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
_flavor="postmarketos-qcom-sm6350"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.0.0_rc1
|
|
pkgrel=0
|
|
pkgdesc="Mainline Kernel fork for SM6350 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://github.com/z3ntu/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-nftables
|
|
"
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
|
|
|
_repo="linux"
|
|
_config="config-$_flavor.$arch"
|
|
_commit="4a7a900c7bc482b752cf0d2a25a384233c5250d8"
|
|
|
|
# Source
|
|
source="
|
|
$_repo-$_commit.tar.gz::https://github.com/z3ntu/$_repo/archive/$_commit/$_repo-$_commit.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/$_repo-$_commit"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
make modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
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
|
|
}
|
|
|
|
sha512sums="
|
|
2f57c4e319368fcc793a4c54c45b9cf6b5a985d77ee4c4211b656319d40baae687788ace9c2d990af86e2cbd687fc3214c0cc68aa89d4d2a1f8ee20077917a94 linux-4a7a900c7bc482b752cf0d2a25a384233c5250d8.tar.gz
|
|
82cf0fe8851116e9d4c03ebd53c3359a90522167ed772af9582e666362b20de60f82b6f56acd949c43b71cf43da150465f6c8d8b433f36dbbf71c5855324f3db config-postmarketos-qcom-sm6350.aarch64
|
|
"
|